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,
So grub is working > 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. and it seems that grub is installing the kernel properly. > 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). You are going a little too fast. Get the kernel working without initramfs first. Set the kernel command line to init=/bin/bash root=/dev/sda1 and see if you can get something. If sda doesn't work, try sdb. Also see if you can see what the kernel finds in the startup messages -- try using the scroll lock or pause keys to stop the messages (I'm not sure that will work though). > 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. The comment about udev.conf was true for earlier editions of udev, but I don't see it any more in newer versions. I'm not sure when it was removed. It was present in version 182 and is missing in version 204. 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. As I said, change back to sda1 to see what is going on. After you know what the kernel thinks, transition to initramfs. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page