LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   not able to boot rhel4 (https://www.linuxquestions.org/questions/linux-desktop-74/not-able-to-boot-rhel4-472107/)

pothi 08-08-2006 06:12 PM

not able to boot rhel4
 
Urgent help needed!!!!!!!!!

when I boot my computer OS/2 with windows xp and RHEL4

I get Checking root file system
fsck.ext2: Is a directory while trying to open/ [FAILED]

***An error occured during the file system check
***Droping you to shell, the system ill reboot
***when ou leve the shell.
***warning -- SELinux is active
***Disabling security enforcement for system recovery.
***Run 'setenforce 1' to reenable

Give root Password for maintenance
(or type Control-D to Continue):

1) if I press Control-D the computer rebootss and same error message again

2) if I give the root passord, it goes to shell
(Repair file system)1#

I am really new to linux, so detailed help would be really appreciated. Thankx in advance. looking to hear as soon as possible.

- pothi

Lenard 08-09-2006 04:13 PM

Fix the file system by using fsck as suggested by the message, after providing root's password;

Which partitions are which; fdisk -l (that the lowercase letter 'L')

Then use fsck on each Linux partition except swap; fsck -A -y /dev/hdaX
;where X is the partition number for each Linux partition.

Your partition devices may be different then shown in the example above, use the output from the fdisk command to guide you.

pothi 08-09-2006 06:31 PM

thankx for helping me out. but still there is problem, here is what I did.

I got the output of fdisk -l

output in short. I have two drives,

on first drive

/dev/hda1 HPFS/NTFS
/dev/hda2 Linux LVM

on the second drive

/dev/hdb1 HPFS/NTFS
/dev/hdb2 Linux
/dev/hdb3 Linux LVM


then I typed fsck -A -y /dev/hdb2

I am not sure if I have to run the above on /dev/hda2 and /dev/hdb3

I got

fsck.ext3: Unable to resolve '/LABEL=/boot'

the /Label=/boot is my first line in /etc/fstab
what should I do now?

pothi 08-09-2006 06:44 PM

Hi again, I edited /etc/fstab first line from /LABEL=/boot to /dev/hdb2 which is here my boot is. no I am able to run

fsck -A - /dev/hdb2

the output as

fsck 1.35 (28-Feb-2004)
2efsck 1.35 (28-Feb-2004)
/boot : clean, 35/26208 Files, 12440/104420 blocks

then I typed reboot

nothing happened, the same old error log and message. :(

Lenard 08-09-2006 07:10 PM

Yes, of course..............

You forgot to mention that you had LVM partitions, and you did not fix the root partition (where the problem is) by fsck /dev/hdb2 (the /boot partition).

Try again this time use; vgck -v

shakumafu 08-09-2006 07:23 PM

unrelated the errors, but dual booting is not os/2. os/2 is an old OS that was created by ibm and is about to be completely discontinued and unsupported(http://en.wikipedia.org/wiki/OS/2). do not enable os/2 in the bios

pothi 08-09-2006 07:44 PM

I am sorry, its not the OS2 operating operating system, to operating system windos xp and RHEL4.

I will try vgck -v

pothi 08-09-2006 07:54 PM

when I run vgck -v
I got

File descriptor 21 left open
Locking type 1 initialisation failed

:( any more ideas

Lenard 08-10-2006 06:13 AM

Well then try using fsck of both /dev/hdb3 and /dev/hda3.

Stange that no swap parition is shown????

Example from my laptop (CentOS-4.3 custom and Windows XP);

Code:

$ fdisk -l

Disk /dev/hda: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/hda1              1        261    2096451  16  Hidden FAT16
/dev/hda2  *        262        6258    48170902+  7  HPFS/NTFS
/dev/hda3            6259        6271      104422+  83  Linux
/dev/hda4            6272      12161    47311425    5  Extended
/dev/hda5            6272        8882    20972826  83  Linux
/dev/hda6            8883      10447    12570831  83  Linux
/dev/hda7          10448      10708    2096451  82  Linux swap / Solaris
/dev/hda8          10709      12161    11671191  83  Linux


pothi 08-14-2006 07:59 PM

hi,

this took so long and was not able to fix the problem. so i backed the importnt data using usb and I formatted.

thankx for our help and I reall appreciate it. This time I have a swap and I don't have lmv :)


All times are GMT -5. The time now is 05:12 PM.