OK, let me tell you what happened:
RHEL4 Dell poweredge 2850 with hardware mirrored pair of internal disks.
Partitions of /, /boot, /home and swap
One of the disks in the mirror went so we got a replacement.
Grub.conf says root=LABEL=/
and similar for /etc/fstab.
When the mirror has rebuilt, it sems all the fs labels have gone, so I thought OK, I'll boot with a live CD and alter grub.conf and fstab.
I boot up the liveCD and see I now have /dev/sda1, sda2, sda3 and sda4. Ah, that look good.
I modify grub.conf to reference /dev/sda2 as the root instead of LABEL=/ and do the same for ther relevant lines in fstab.
Sorted - it should boot now.
However, wen I try to boot up, it mounts the root filesystem then tries to run /sbin/init.
This fails and I get a kernel panic.
It actually finds /sbin/init, but cannot execute it.
I have tried booting into a live CD and going into a chroot by issuing,
but I get cannot execute /bin/bash (or/bin/sh) if I leave the /bin/bash bit off.
So I have valid filesystems, all have had an fsck annd all are clean.
Why would things be non-executable?
Any ideas would be greatly appreciated.
------------------------------------------
Somethings come from nothing, nothing seems to come from somethings - SFA - Guerilla
roycrom
RHEL4 Dell poweredge 2850 with hardware mirrored pair of internal disks.
Partitions of /, /boot, /home and swap
One of the disks in the mirror went so we got a replacement.
Grub.conf says root=LABEL=/
and similar for /etc/fstab.
When the mirror has rebuilt, it sems all the fs labels have gone, so I thought OK, I'll boot with a live CD and alter grub.conf and fstab.
I boot up the liveCD and see I now have /dev/sda1, sda2, sda3 and sda4. Ah, that look good.
I modify grub.conf to reference /dev/sda2 as the root instead of LABEL=/ and do the same for ther relevant lines in fstab.
Sorted - it should boot now.
However, wen I try to boot up, it mounts the root filesystem then tries to run /sbin/init.
This fails and I get a kernel panic.
It actually finds /sbin/init, but cannot execute it.
I have tried booting into a live CD and going into a chroot by issuing,
Code:
chroot /mnt/sysimage /bin/bash
So I have valid filesystems, all have had an fsck annd all are clean.
Why would things be non-executable?
Any ideas would be greatly appreciated.
------------------------------------------
Somethings come from nothing, nothing seems to come from somethings - SFA - Guerilla
roycrom