After a power cut, our Red Hat Linux ES4 does not complete the boot process and keeps rebooting itself.
We have two hard drives connected to SCSI channel A on the onboard Adaptec AIC-7899 SCSI adapter. There is no RAID. The drives are:
Fujitsu MAP3367NP (Main drive with MBR)
Seagate ST318417W
We got a chance to note some of the errors it gives before it reboots and starts the process over again.
Checking root filesystem
[/sbin/fsck.ext2 (1) -- /] fsck.ext2 - a /
WARNING: couldn't open /etc/fstat: no such file or directory
ext2fs_check_if_mount/:
The superblock could not read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device>
: No such file or directory while determining whether / is mounted.
fsck.ext2: Is a directory while trying to open /
/etc/rc.d/rc.sysinit : line 415: failure: command not found.
*** An error occurred during the filesystem check
*** Dropping you to a shell; the system will reboot
*** when you leave the shell
*** WARNING -- SELinux is active
*** Disabling security enforcement for system recovery
*** Run 'setenforce 1' to reenable
sulogin: cannot open password database!
Unmounting filesystems
We have tried the following:
Boot with the Red Hat Linux ES4 Disk 1. At the boot prompt typed "linux rescue".
After going through the boot process we get the message. "The rescue environment will now attempt to find your Linux installation and mount it under directory /mnt/sysimage."
We then press OK to continue.
We then get a subsequent message "Error mounting filesystem on sdb1: Invalid Argument".
We then press OK and get another message "You don't have any Linux partitions. Press return to get a shell. The system will reboot automatically when you exit from the shell".
We then get the command line prompt: "-/bin/sh-3.00#"
We then type "fdisk -l" and get the following listing:
Disk /dev/sda: 36.7 GB, 36748945408 bytes
255 heads, 63 sectors/track, 4467 cylinders
Units = cylinders of 16065 x 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 4467 35776755 8e Linux LVM
Disk /dev/sdb: 18.4 GB, 18400000000 bytes
255 heads, 63 sectors/track, 2237 cylinders
Units = cylinders of 16065 x 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 2237 57968671 c W95 FAT32 (LBA)
Can anyone tell us how we can repair our filesystem so that Linux can boot successfully?
We have two hard drives connected to SCSI channel A on the onboard Adaptec AIC-7899 SCSI adapter. There is no RAID. The drives are:
Fujitsu MAP3367NP (Main drive with MBR)
Seagate ST318417W
We got a chance to note some of the errors it gives before it reboots and starts the process over again.
Checking root filesystem
[/sbin/fsck.ext2 (1) -- /] fsck.ext2 - a /
WARNING: couldn't open /etc/fstat: no such file or directory
ext2fs_check_if_mount/:
The superblock could not read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device>
: No such file or directory while determining whether / is mounted.
fsck.ext2: Is a directory while trying to open /
/etc/rc.d/rc.sysinit : line 415: failure: command not found.
*** An error occurred during the filesystem check
*** Dropping you to a shell; the system will reboot
*** when you leave the shell
*** WARNING -- SELinux is active
*** Disabling security enforcement for system recovery
*** Run 'setenforce 1' to reenable
sulogin: cannot open password database!
Unmounting filesystems
We have tried the following:
Boot with the Red Hat Linux ES4 Disk 1. At the boot prompt typed "linux rescue".
After going through the boot process we get the message. "The rescue environment will now attempt to find your Linux installation and mount it under directory /mnt/sysimage."
We then press OK to continue.
We then get a subsequent message "Error mounting filesystem on sdb1: Invalid Argument".
We then press OK and get another message "You don't have any Linux partitions. Press return to get a shell. The system will reboot automatically when you exit from the shell".
We then get the command line prompt: "-/bin/sh-3.00#"
We then type "fdisk -l" and get the following listing:
Disk /dev/sda: 36.7 GB, 36748945408 bytes
255 heads, 63 sectors/track, 4467 cylinders
Units = cylinders of 16065 x 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 4467 35776755 8e Linux LVM
Disk /dev/sdb: 18.4 GB, 18400000000 bytes
255 heads, 63 sectors/track, 2237 cylinders
Units = cylinders of 16065 x 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 2237 57968671 c W95 FAT32 (LBA)
Can anyone tell us how we can repair our filesystem so that Linux can boot successfully?