About booting of LFS7.2
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 ? |
Hi
Can you post your grub.cfg file and Fstab |
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.
|
2 Attachment(s)
Quote:
# file system mount-point type options dump fsck # order /dev/sda5 / ext3 defaults 1 1 /dev/sda1 swap swap pri=1 0 0 proc /proc proc nosuid,noexec,nodev 0 0 sysfs /sys sysfs nosuid,noexec,nodev 0 0 devpts /dev/pts devpts gid=4,mode=620 0 0 tmpfs /run tmpfs defaults 0 0 devtmpfs /dev devtmpfs mode=0755,nosuid 0 0 noauto,user,quiet,showexec,iocharset=utf8,codepage=936 # End /etc/fstab grub.cfg:# Begin /boot/grub/grub.cfg set default=0 set timeout=5 insmod ext3 set root=(hd0,5) menuentry "GNU/Linux, Linux 3.5.2-lfs-7.2" { linux /boot/vmlinuz-3.5.2-lfs-7.2 root=/dev/sda5 ro } |
Quote:
|
Hi
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 |
Quote:
|
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.
|
Quote:
|
Hi
You need to find out as Lennie pointed out what your usb is mounted as. The output of Code:
sudo blkid so my fstab looks like this Code:
# Begin /etc/fstab Code:
# Begin /boot/grub/grub.cfg I had to add the rootdelay=5 as the usb takes time to be recognised maybe set yours to 10, |
Quote:
/dev/sdc5: UNEXPECTED INCONSISTENCY ;RUN fsck MANUALLY. (i.e., without -a or -p options) |
Quote:
/dev/sdc5: UNEXPECTED INCONSISTENCY ;RUN fsck MANUALLY. (i.e., without -a or -p options) |
Quote:
|
You must boot to a live cd or a different partition from the one to check and run as root
Code:
e2fsck -C0 /dev/sdc5 |
Try using make defconfig while compiling the kernel, and try using it.
|
All times are GMT -5. The time now is 02:28 PM. |