On 08/07/2013 02:36 PM, Unix User wrote:
> Dear list,
> 
> I use a usb disk for LFS 7.3 installation which is recognized by the host as 
> /dev/sdb - one partition is ext3 (/dev/sdb1) and one swap (/dev/sdb5).
> 
> Within chroot, I installed grub on /dev/sdb. File /etc/fstab first included 
> /dev/sda1 to mount as / (to refer to the usb disk itself). File grub.cfg 
> first incuded "set root=(hd0,1)" and "root=/dev/sda1" to point also to the 
> ext3 partition of the usb drive. Subsequenty, BIOS was adjusted to boot from 
> usb, LFS grub menu* appeared, kernel bootet, recognized hardware but paniced 
> - the HD of my laptop also has an /dev/sda1 partition with Win XP. Kernel 
> also stated "no init found" after mounting the ntfs partition. Obviously, I 
> have a 'clash' concerning device numbering/identification. Since I found no 
> solution to prevent the kernel to boot my laptop HD instead of my usb drive 
> homing LFS, I wanted to use UUIDs. Thus, I created an initramfs according to 
> chapter 5 of BLFS (after cpio installation in chroot). During mkinitramfs 
> installation I got an error/warning that udev.conf  was not found (it is not 
> manually created by oneself according to LFS) - however,
>  initrd.img was created. After performing all other steps mentioned (and 
> adding UUID=* in /etc/fstab instead of /dev/sdXX) and rebooting, the error 
> "Load kernel first" occurs at boot. I do not know what to do now (and found 
> nothing on the internet)... Any advice is highly appreciated.
> 
> Thanks in advance,
> Seba
> 
> 
> 
> * It is indeed grub menu of the usb drive and not grub located on my laptop 
> HD.
> 

Since you are using USB with initramfs, you should use UUID on the
kernel command line and fstab. Node names can change, especially since
usb is in question.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to