On 04/09/2019 07:42, Furkan İnciroğlu wrote:
Hi there,

I compiled all the packages for LFS and I was ready for booting my lfs kernel. My host machine has "sda" primary disk. I created "sdb" partition as a secondary disk for LFS and I built all packages in sdb. When I compiled Linux kernel, I ran this command -> "grub-install /dev/sda". Is it correct? or I should have got grub-install /dev/sdb? I also, in chroot, I created fstab and grub.cfg like this;

MY FSTAB FILE

/dev/sdb1/ext4defaults,barrier=111

/dev/sdb2swapswappri=100


proc/procprocnosuid,noexec,nodev00

sysfs/syssysfsnosuid,noexec,nodev00

devpts/dev/ptsdevptsgid=5,mode=62000

tmpfs/runtmpfsdefaults00

devtmpfs/devdevtmpfs mode=0755,nosuid 00


MY GRUB.CFG

set default=0

set timeout=5


insmod ext2

set root=(hd1,1)


menuentry "GNU/Linux, Linux 4.20.12-lfs-systemd" {

linux/boot/vmlinuz-4.20.12-lfs-systemd root=/dev/sdb1 ro


You will need to add rootdelay to kernel line

linux/boot/vmlinuz-4.20.12-lfs-systemd root=/dev/sdb1 rootdelay=10 ro

this gives the usb device time to be found



systemd root=/dev/sdb1 ro

}


And also I am sharing you my end trace error. I got this when I tried to boot my kernel. Could you help me about it?



-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to