Re: Unable to boot into CompactFlash card - card not found by initrd
Hi,
thanks for the reply.
Thus spoketh Scott Ferguson <prettyfly.productions@gmail.com>
unto us on Wed, 18 Jan 2012 11:23:35 +1100:
>
> At the grub prompt hit 'e' to enter edit mode.
> What where does GRUB expect the root to be? (should not be hd0, probably
> should be hd1,1).
the grub.cfg entry:
menuentry 'CFcard' --class debian --class gnu-linux --class gnu --class
os { insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 7329bb28-71ea-4060-96a1-accaeef453f5
echo 'Loading Linux 2.6.32-5-686 ...'
linux /vmlinuz-2.6.32-5-686 root=LABEL=CFCARD ro
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.32-5-686
}
where both (hd0,msdos1) and 7329bb28-71ea-4060-96a1-accaeef453f5 point
to /boot on /dev/sda1.
The grub menuentry was one of my first suspects, too, especially as I am
not familiar with grub2 at all and good docs on it are hard to find. I
admit that I don't know what the "set root=..." line does at all, when I
change it into set root='(hd1,msdos1)' or '(hd1,1)' I can't see any
difference. However, when I edited the grub.cfg entry the same way I
could boot an usb flash drive, so I think it is ok, and the final error
message when booting fails is:
ALERT! /dev/disk/by-label/CFCARD does not exist. Dropping to a shell!
So apparently linux looks up the right place but does not find it, no
wonder as there is no /dev/hda and none of the boot messages indicating
the CF card has been recognized is seen.
Regards
Michael
.-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-.
When a child is taught ... its programmed with simple instructions --
and at some point, if its mind develops properly, it exceeds the sum of
what it was taught, thinks independently.
-- Dr. Richard Daystrom, "The Ultimate Computer",
stardate 4731.3.
Reply to: