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.
First,I just do the LFS7.2 in the USB.
After I had done the LFS7.2 system ,I rebooted the system and chose the LFS7.2 system.It booted but sometime it stopped.The screen happens: No filesystem could mount root,tried :ext3 vfat msdos iso9660
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,5)
Pid:1,comm:swapper/0 Not tainted 3.5.2 #1
Call Trace
Could anyone help me ?
What filesystem do you have? I remember I had to add ext4 to the kernel. If you don't use an initrd, you should include it in the kernel(y) not as module(m). And then recompile the kernel.
What filesystem do you have? I remember I had to add ext4 to the kernel. If you don't use an initrd, you should include it in the kernel(y) not as module(m). And then recompile the kernel.
Is lfs on usb and where did you install
Grub. Are you booting from usb.
When I built mine on a usb I had to put a delay
When booting usb. Im not at pc at moment but will
Look later and post
Is lfs on usb and where did you install
Grub. Are you booting from usb.
When I built mine on a usb I had to put a delay
When booting usb. Im not at pc at moment but will
Look later and post
Yes,I install my lfs on my usb .The grub is in /boot/grub.I booted from usb.It was really booted.But it didn't come into LFS system impartially.
Are you sure your usb is called sda? You can use uuid in fstab, it's more reliable. Grub thinks it is always on the first disc, but the kernel counts different than grub. Even if you change boot order in bios and boot from usb, it doesn't change your usb to sda if you have an internal drive.
Are you sure your usb is called sda? You can use uuid in fstab, it's more reliable. Grub thinks it is always on the first disc, but the kernel counts different than grub. Even if you change boot order in bios and boot from usb, it doesn't change your usb to sda if you have an internal drive.
Although grub will look at the drive as the 1st drive, my grub.cfg
Code:
# Begin /boot/grub/grub.cfg
set default=0
set timeout=5
insmod ext2
set root=(hd0,1)
menuentry "Planet-Spike7" {
linux /boot/vmlinuz-3.2-lfs-7.0 root=/dev/sdc1 rootdelay=5 ro
}
set default=0
set timeout=5
insmod ext2
set root=(hd0,1)
menuentry "Panic-Button" {
linux /boot/vmlinuz-3.1-lfs-7.0-org root=/dev/sdc1 rootdelay=5 ro
}
Hence (hd0,1) and root is set as sdc1.
I had to add the rootdelay=5 as the usb takes time to be recognised maybe set yours to 10,
Although grub will look at the drive as the 1st drive, my grub.cfg
Code:
# Begin /boot/grub/grub.cfg
set default=0
set timeout=5
insmod ext2
set root=(hd0,1)
menuentry "Planet-Spike7" {
linux /boot/vmlinuz-3.2-lfs-7.0 root=/dev/sdc1 rootdelay=5 ro
}
set default=0
set timeout=5
insmod ext2
set root=(hd0,1)
menuentry "Panic-Button" {
linux /boot/vmlinuz-3.1-lfs-7.0-org root=/dev/sdc1 rootdelay=5 ro
}
Hence (hd0,1) and root is set as sdc1.
I had to add the rootdelay=5 as the usb takes time to be recognised maybe set yours to 10,
Thank you very much.I do it as you had said.Then it come into system.So this problem must be solved.But I have another question.That is when it check file systems ..,the screen happened: /dev/sdc5: UNEXPECTED INCONSISTENCY ;RUN fsck MANUALLY.
(i.e., without -a or -p options)
Are you sure your usb is called sda? You can use uuid in fstab, it's more reliable. Grub thinks it is always on the first disc, but the kernel counts different than grub. Even if you change boot order in bios and boot from usb, it doesn't change your usb to sda if you have an internal drive.
Thank you very much.The problem must be solved.But I have another question.That is when it check file systems ..,the screen happened: /dev/sdc5: UNEXPECTED INCONSISTENCY ;RUN fsck MANUALLY. (i.e., without -a or -p options)
Although grub will look at the drive as the 1st drive, my grub.cfg
Code:
# Begin /boot/grub/grub.cfg
set default=0
set timeout=5
insmod ext2
set root=(hd0,1)
menuentry "Planet-Spike7" {
linux /boot/vmlinuz-3.2-lfs-7.0 root=/dev/sdc1 rootdelay=5 ro
}
set default=0
set timeout=5
insmod ext2
set root=(hd0,1)
menuentry "Panic-Button" {
linux /boot/vmlinuz-3.1-lfs-7.0-org root=/dev/sdc1 rootdelay=5 ro
}
Hence (hd0,1) and root is set as sdc1.
I had to add the rootdelay=5 as the usb takes time to be recognised maybe set yours to 10,
Hello,spiky0011.The problem had been solved.But I have another problem when system checking filesystem,the screen happened :/dev/sdc5 :unexpected inconsistency, run fsck manuallyCan you tell me what I should do ?Thank you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.