[SOLVED] LFS Version 9.1, 8.4.3. Setting Up the GRUB Configuration
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
this will need to be a number similar to the one in the line above it.
you will at least need these usb drivers compiled into the kernel xhci ehci uhc-hcd usb-storage There maybe more try with adding these first.
as my usb is sdb, sdb3 is for swap.
so i changed my grub file to
Quote:
menuentry 'unknown Linux distribution (on /dev/sdb2)' --class linux --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux->
insmod part_gpt
insmod ext2
set root='hd1,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci2,gpt2 42e174ea-46f1-4300-b5c5-870e7>
else
search --no-floppy --fs-uuid --set=root 42e174ea-46f1-4300-b5c5-870e7f9152f4
fi
linux /boot/vmlinuz-5.5.3-lfs-9.1 root=PARTUUID=e0917b86-b923-694f-aa15-b508116eb460
}
submenu 'Advanced options for unknown Linux distribution (on /dev/sdb2)' $menuentry_id_option 'osprober-gnulinux-advanced-42e174ea-46f1-4300-b5c5-870>
menuentry 'unknown Linux distribution (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/>
insmod part_gpt
insmod ext2
set root='hd1,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci2,gpt2 42e174ea-46f1-4300-b5>
else
search --no-floppy --fs-uuid --set=root 42e174ea-46f1-4300-b5c5-870e7f9152f4
fi
linux /boot/vmlinuz-5.5.3-lfs-9.1 root=PARTUUID=e0917b86-b923-694f-aa15-b508116eb460
}
}
menuentry 'unknown Linux distribution (on /dev/sdb2)' --class linux --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-42e174ea-46f1-4300-b5c5-870e7f9152f4' {
insmod part_gpt
insmod ext2
set root='hd1,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci2,gpt2 42e174ea-46f1-4300-b5c5-870e7f9152f4
else
search --no-floppy --fs-uuid --set=root 42e174ea-46f1-4300-b5c5-870e7f9152f4
fi
linux /boot/vmlinuz-5.5.3-lfs-9.1 root=PARTUUID=2fed1596-29b9-c04d-aca2-1cc55b8e7e69
}
submenu 'Advanced options for unknown Linux distribution (on /dev/sdb2)' $menuentry_id_option 'osprober-gnulinux-advanced-42e174ea-46f1-4300-b5c5-870e7f9152f4' {
menuentry 'unknown Linux distribution (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.5.3-lfs-9.1--42e174ea-46f1-4300-b5c5-870e7f9152f4' {
insmod part_gpt
insmod ext2
set root='hd1,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci2,gpt2 42e174ea-46f1-4300-b5c5-870e7f9152f4
else
search --no-floppy --fs-uuid --set=root 42e174ea-46f1-4300-b5c5-870e7f9152f4
fi
linux /boot/vmlinuz-5.5.3-lfs-9.1 root=PARTUUID=2fed1596-29b9-c04d-aca2-1cc55b8e7e69
}
}
Now i understood a bit.
Great
Is it okay now?
now the only thing left are usb drviers
I think ops lfs grub entry is a modified entry generated by the host update-grub. Changed to root=PARTUUID because of the usb changing from sdc to sdb. I had forgot about the rootdelay=10 and needs to be added to the linux line.
Last edited by colorpurple21859; 07-10-2020 at 01:18 PM.
menuentry 'unknown Linux distribution (on /dev/sdb2)' --class linux --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-42e174ea-46f1-4300-b5c5-870e7f9152f4' {
insmod part_gpt
insmod ext2
set root='hd1,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci2,gpt2 42e174ea-46f1-4300-b5c5-870e7f9152f4
else
search --no-floppy --fs-uuid --set=root 42e174ea-46f1-4300-b5c5-870e7f9152f4
fi
linux /boot/vmlinuz-5.5.3-lfs-9.1 root=PARTUUID=2fed1596-29b9-c04d-aca2-1cc55b8e7e69 rootdelay=10 ro
}
submenu 'Advanced options for unknown Linux distribution (on /dev/sdb2)' $menuentry_id_option 'osprober-gnulinux-advanced-42e174ea-46f1-4300-b5c5-870e7f9152f4' {
menuentry 'unknown Linux distribution (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.5.3-lfs-9.1--42e174ea-46f1-4300-b5c5-870e7f9152f4' {
insmod part_gpt
insmod ext2
set root='hd1,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci2,gpt2 42e174ea-46f1-4300-b5c5-870e7f9152f4
else
search --no-floppy --fs-uuid --set=root 42e174ea-46f1-4300-b5c5-870e7f9152f4
fi
linux /boot/vmlinuz-5.5.3-lfs-9.1 root=PARTUUID=2fed1596-29b9-c04d-aca2-1cc55b8e7e69 rootdelay=10 ro
}
}
this is etc/fstab of lfs
Quote:
(lfs chroot) root:/# cat /etc/fstab
# Begin /etc/fstab
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.