LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   boot-install error lfs 8 (https://www.linuxquestions.org/questions/linux-from-scratch-13/boot-install-error-lfs-8-a-4175603132/)

end 04-03-2017 08:21 PM

boot-install error lfs 8
 
hy

when i execute boot-install /dev/sdb grub file is created in /boot but end up with error "is device mounted in /dev. in /dev folder i only have "console" and "null" , no sda or sda3 where i install lfs. i execute this in chroot.

when i reboot and try boot, grub gives error no device with that uuid and show uuid of host system hard disk on /sda.

using qemu-kvm

Emerson 04-03-2017 08:25 PM

You should bind mount /dev from host system.

end 04-03-2017 09:44 PM

when i bind do i do grub-install from host or chroot. and way i get wrong uuid when booting. grub tell that cant find uuid XXXXXX and that number is from machine where i build not fron lfs disk.

Terry Coats 04-04-2017 02:18 AM

I copied the kernel and its other 2 files into /boot on the lfs partition and rebooted into my host Ubuntu system and then ran update-grub and it found lfs and added it to the boot menu.
Both systems are on the same drive though, /dev/sda.

end 04-04-2017 09:58 AM

update-grub solved. booting like a charm.

Terry Coats 04-04-2017 10:03 AM

I am glad my suggestion worked for you.


All times are GMT -5. The time now is 01:43 AM.