Boot Messages changed after mondorestore

Hello All,

I backed up my RHEL 4 as an image.
Then I restored the image (by mondorestore) on my machine. Everything went fine but I dont get the normal boot sequence as it used to come when I freshly installed RHEL4.

The messages that are shown when the system boots are something like-
" .....
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
kjournald starting. Commit interval 5
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
"

At this point, system waits for a while and then login prompt comes up normally. Everything in the system is working fine.

I just need to understand how this boot sequence got changed.
Is there anyway by which I can restore the normal boot sequence which used to get previously...
something like (may not be exactly similar)-

*** Welcome to Red Hat Linux Enterprise ***

Starting cups ..... [OK]
Starting NFS ...... [OK]
Starting *** ..... [OK]
Starting eth0 [OK]
....etc

Can anybody please tell me how do I get this kind of boot sequence again ??

This also occurs even if I restore a simple image instead of mondo image(thru mondorestore)

Regards,
Shamik.

Linux startup service scripts are found in the directory /etc/rc.d/rc#.d/ (for Rehdat) where the symbol # represents the run level.
i.e. the run level "3" will run all the scripts in the directory /etc/rc.d/rc3.d/ which start with the letter "S" during system boot. This starts the background processes required by the system. Services start in numerical order. S20abc is run before S30xyz. These S# and K# files are just links to the actual scripts in /etc/init.d

Note: K is for kill or shutdown. Those scripts are executed when you shutdown the system.

If you are in runlevel 5, then have a look at /etc/rc.d/rc5.d and see how the scripts have been numbered. You can change the numbering, but that should only done if you know what you are doing! Otherwise some services may not start as they are dependent on other. :eek:

-Nitin

Yes, i totally agree with what is said.

The problem is all the services get started as usual, but i dont see any messages like which services got started and which failed to start.

After observing boot log I came to know that the messages-
"EXT3-fs: write access will be enabled during recovery.
kjournald starting. Commit interval 5
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
"

also come in normal unimaged system, and since they are very quick, we just cant read those. After the last message shown above, another message comes saying-
"switching to new root"

and thereafter the desired messages-

*** Welcome to Red Hat Linux Enterprise ***

Starting cups ..... [OK]
Starting NFS ...... [OK]
Starting *** ..... [OK]
Starting eth0 [OK]
....etc

start coming up.

But in the problem case described here, after image restore, the system doesnt show these messages. It stops for sometime at-
"EXT3-fs: mounted filesystem with ordered data mode."

and then normal login prompt appears.

How can I get those messages to appear again as before ?

What runlevel are you booting into? Sounds like you are booting into single user.

Runlevel-3

Okay,

So reboot the box, append to the end of grub "single" and boot the os; after you are at the bash prompt run fsck /dev/sda1 (or w/e your drives are) and make sure they pass an fsck. If all is good after that mount the drive and double check you dont have any .autofsck files on the fs. Then reboot and see what happens.

The boot loader is LILO and not GRUB

Also,

whenever I try to run the fsck after the system boots up completely, it does nothing. Just shows the version of fsck and exits-

#root# fsck
fsck 1.35 (28-Feb-2004)
#root#

I dont know what to do now. M totally blank and running out of options and clues.

What I deduce till now is kernel is booting fine, system is also booting fine, but after the kernel boot up messages, Init messages are not shown on the console, it just finishes running in the background and gives the login prompt.

The init messages are not shown even during shutdown process.

You have to tell fsck which partition to check, it doesn't know. See 'man fsck'. And you cannot fsck a mounted partition anyway, you'd have to do so from a recovery disk or somesuch.

you must boot into single user mode,

then run fdisk -l, this will give you a list of your disks, then fsck the disk... they could be like /dev/sda or /dev/hda.

the reason you dont see anything is because it appears the fs is readonly can you confirm?

If that would be the case then I would not be able to write to any file or create new files on the fs, but I can easily do that.

But still fsck in single user mode returns same result (fsck version) as mentioned in my previous msg.

LILO :confused: I thought RHEL4 used GRUB?
Anyhow, your /etc/fstab has all the file systems that are mounted at boot time. When you boot in to single user mode:

root@linux # fsck /dev/sda1

Note: /dev/sda1 is an example. Your boot disk might be different.

nitin I was thinking the same thing but he is probably running Red Hat Linux 4 and not RHEL4

This is surely RHEL 4 and its customized.

Ok, I tried fsck, but the problem still persists.

Kindly help,

  • Shamik.