[lfs-support] Booting from USB and root partition uuid

Ken Moffat zarniwhoop at ntlworld.com
Thu Sep 20 07:09:47 PDT 2012

On Thu, Sep 20, 2012 at 02:37:08PM +0200, Tomasz Sekściński wrote:
> The system boots properly from USB stick but on another
> laptop root partition /dev/sdb1 isn't correct anymore.
> I could make moore entries in grub.cfg with sdc1, sdd1 etc. of course
> but i don't like this solution.
> I am trying without success this way:
> menuentry 'GNU/Linux, with Linux 3.2.6-lfs-7.1' 
> {
> set
> root='(/dev/disk/by-uuid/f53d22a3-c6a4-41d9-bd02-de1397f2a85d,msdos1)'
> search --no-floppy --fs-uuid --set=root
> f53d22a3-c6a4-41d9-bd02-de1397f2a85d echo 'Loading Linux
> 3.2.6-lfs-7.1 ...' linux     /boot/vmlinuz rootdelay=20
> root=/dev/disk/by-uuid/f53d22a3-c6a4-41d9-bd02-de1397f2a85d ro }
> It gives mi kernel panic
> Grub in his early stage seems to not recognize usb stick uuid.
 That is correct - a distro will build an initrd so it can do this.
The contents of /dev is created by udev, *after* a linux kernel has
mounted its rootfs and started to run the initscripts.

 The subject is covered in "about initramfs" at the start of BLFS
chapter 5.

 Someone also posted an example using busybox a few days ago - I
think it was on this list, or if not, in blfs-support : either way,
it will be in the LFS mail archives.

das eine Mal als Tragödie, das andere Mal als Farce

More information about the lfs-support mailing list