[lfs-support] Cannot boot into LFS install

Fernando de Oliveira famobr at yahoo.com.br
Sat Jan 26 06:12:30 PST 2013

Sent again (noticed it was in HTML, now it is hopefully in text only).

--- Em sáb, 26/1/13, matthew gruda escreveu:

> De: matthew gruda
> Assunto: Re: [lfs-support] Cannot boot into LFS install
> Para: "LFS Support List"
> Data: Sábado, 26 de Janeiro de 2013, 10:43

> On Sat, Jan 26, 2013 at 6:27 AM, Fernando de Oliveira wrote:

>> --- Em sex, 25/1/13, Ken Moffat escreveu:

>>> De: Ken Moffat
>>> Assunto: Re: [lfs-support] Cannot boot into LFS install
>>> Para: "LFS Support List"
>>> Data: Sexta-feira, 25 de Janeiro de 2013, 23:28
>>> On Fri, Jan 25, 2013 at 08:18:45PM
>>> -0500, matthew gruda wrote:
>>>> Oops, pressed the wrong button.  Anyway, i used
>>> "update-grub" from the host
>>>> system and it detected the LFS install and got this
>>> output:
>>>> Generating grub.cfg ...
>>>> Found background: /boot/desktop-grub.png
>>>> Found background image: /boot/desktop-grub.png
>>>> Found linux image: /boot/vmlinuz-3.2.0-36-generic
>>>> Found initrd image: /boot/initrd.img-3.2.0-36-generic
>>>> Found linux image: /boot/vmlinuz-3.2.0-34-generic
>>>> Found initrd image: /boot/initrd.img-3.2.0-34-generic
>>>> Found memtest86+ image: /boot/memtest86+.bin
>>>> Found Linux From Scratch (7.2) on /dev/sda1
>>>> Found Ubuntu 11.10 (11.10) on /dev/sda2
>>>> done
>>>  It doesn't seem to have found a vmlinuz from LFS
>>>> then, I rebooted into the LFS install and got this
>>> error upon booting:
>>>> VFS: Cannot open root device "sda1" or
>>> unknown-block(0,0) error -6
>>>> ...
>>>> Kernel Panic - not syncing unable to mount root fs on
>>> unknown-block(0,0)
>> ...

>>>  I think someone offered a suggestion of how to set up the
>>> files so
>>> that update-grub would handle an LFS install, probably in
>>> the last 6
>>> months, but since the list archives are offline at the
>>> moment I
>>> can't suggest where to search.
>> >
>>> ĸen
>> You can find it at about the middle of the page, here:

>> <http://comments.gmane.org/gmane.linux.lfs.support/35915>

>> []s,
>> Fernando

>  the grub entry for LFS looks like this:

> menuentry "Linux From Scratch (7.2) (on /dev/sda1)" --class gnu-linux --class gnu --class os {
> insmod part_msdos
> insmod ext2
> set root='(hd0,msdos1)'
> ##search --no-floppy --fs-uuid --set=root 5dd84417-6b84-4ce7-b165-a19e32cf6d31
> linux /boot/vmlinuz-3.5.2-lfs-7.2 root=/dev/sda1 ro
> }

> Eveything looks right, I commented out that line since the book didn't have it (tried with and without it), but it doesn't seem to work either way

You are rigth. It has been discussed here many times. I left  it there, 
as it does nothing, but to remember me the possibilty, in case I use a 
USB HD or flash drive, but then, an initramfs is necessary.

Glad you can boot, now.


More information about the lfs-support mailing list