[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Unable to boot into CompactFlash card - card not found by initrd



On Wed 18 Jan 2012 at 11:15:14 +0100, Michael Lange wrote:

> 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
> }

The UUID on the 'search' line should be that of the partition on the CF
card which holds the kernel and the initrd. The line can omitted, as can
the 'set root' line. The 'linux' and 'initrd' lines are required.

   /vmlinuz-2.6.32-5-686 root=LABEL=CFCARD ro

tells GRUB it will find a file vmlinuz-2.6.32-5-686 on the card in the
root of a partition which has the label 'CFCARD'. Is such a file there?
And has the partition been labelled ('tune2fs -L' is one method)?

>                                                     and the final error
> message when booting fails is:
> 
>     ALERT! /dev/disk/by-label/CFCARD does not exist. Dropping to a shell!

Let's see what GRUB knows about the partition with label CFCARD. Boot
and go to a command line with 'c'. Any sign of it in the output of
'ls -l'? Alternatively, what does 'search --label CFCARD' say?


Reply to: