grub problen

2009-05-12 Thread Barry Marchant

I am trying to set up grub, 2 of the entries in /boot/grub/menu.1st being...

title linux-2008
kernel (hd0,5)/boot/vmlinuz BOOT_IMAGE=linux-2008
root=UUID=21f45c8c-0029-4450-bc80-9c8de0584966
append=resume=/dev/hda11 vga=788
initrd (hd0,5)/boot/initrd.img


title linux-2007
kernel (hd1,6)/boot/vmlinuz BOOT_IMAGE=linux-2007
root=UUID=6f1868a0-99b7-11db-96d0-cd1076410762  vga=788
initrd (hd1,6)/boot/initrd.img

The 1st entry boots no problems, the 2nd crashes with msgs
mount error 6 mounting ext3 flags default
pivotroot  failed 2
kernel panic not syncing no init found
Both ptns are ext3. All appropriate files appear to be present

The 2nd will boot using a system rescue dvd but of course this has its
own kernel

Any ideas why the 2nd fails will be welcome

TIA

Barry





Re: grub problen

2009-05-12 Thread Christopher Sawtell
2009/5/13 Barry Marchant barr...@paradise.net.nz

 I am trying to set up grub, 2 of the entries in /boot/grub/menu.1st
 being...

 title linux-2008
 kernel (hd0,5)/boot/vmlinuz BOOT_IMAGE=linux-2008
 root=UUID=21f45c8c-0029-4450-bc80-9c8de0584966
 append=resume=/dev/hda11 vga=788
 initrd (hd0,5)/boot/initrd.img


 title linux-2007
 kernel (hd1,6)/boot/vmlinuz BOOT_IMAGE=linux-2007
 root=UUID=6f1868a0-99b7-11db-96d0-cd1076410762  vga=788
 initrd (hd1,6)/boot/initrd.img

 The 1st entry boots no problems, the 2nd crashes with msgs
mount error 6 mounting ext3 flags default
pivotroot  failed 2
kernel panic not syncing no init found


It might just be that the system is telling you the truth when it says:-
  no init found

Are you able to confirm the presence of the file (hd1,6)/boot/initrd.img ?

Remember that grub starts counting from zero so you are looking for the file
in the seventh partition of your slave drive.

Possibly using your system rescue boot CD.

mkdir /mnt/b7
mount /dev/hdb7 /mnt/b7

ls -l /mnt/b7/boot

what happens?

You should see something somewhat akin to this:-

abi-2.6.27-11-generic memtest86+.bin
abi-2.6.27-7-generic  sarge.bmp
abi-2.6.27-9-generic  sid.bmp
abi-2.6.28-11-generic System.map-2.6.27-11-generic
coffee.bmp  System.map-2.6.27-7-generic
config-2.6.27-11-generic  System.map-2.6.27-9-generic
config-2.6.27-7-generic   System.map-2.6.28-11-generic
config-2.6.27-9-generic   vmcoreinfo-2.6.27-11-generic
config-2.6.28-11-generic  vmcoreinfo-2.6.27-7-generic
debian.bmp  vmcoreinfo-2.6.27-9-generic
debianlilo.bmp vmcoreinfo-2.6.28-11-generic
grub vmlinuz-2.6.27-11-generic
initrd.img-2.6.27-11-generic  vmlinuz-2.6.27-7-generic
initrd.img-2.6.27-7-generic   vmlinuz-2.6.27-9-generic
initrd.img-2.6.27-9-generic   vmlinuz-2.6.28-11-generic
initrd.img-2.6.28-11-generic

This is from a much updated  Ubuntu system, your Mandrivle ( ? ) will be
different, yet similar.

Make sure the initrd.img file and kernel file mentioned in the boot config
file  are from the same - identical - version, release and patch-level.

TIA

No problem, such civility wins the day.

-- 
Sincerely etc.
Christopher Sawtell