[SOLVED] Kernel Panic during first boot for fresh system
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.
1) I use native (not VM) OS and partitions. Host system - Ubuntu 14.10 x64
2) In my PC I have 3 HDD. /dev/sda used for Windows OSes, /dev/sdb - for diff Ubunty releases, I trying install LFS to /dev/sdc3 (dev/sdc1 pointed to swap)
fstab:
Quote:
# Begin /etc/fstab
# file system mount-point type options dump fsck order
Disk /dev/sdc: 37.3 GiB, 40020664320 bytes, 78165360 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x975f975f
Device Boot Start End Sectors Size Id Type
/dev/sdc1 2048 5785599 5783552 2.8G 82 Linux swap / Solaris
/dev/sdc2 5785600 36763647 30978048 14.8G 83 Linux
/dev/sdc3 36763648 78165359 41401712 19.8G 83 Linux
grub.cfg (part)
Quote:
menuentry 'Linux From Scratch (7.6-systemd) (on /dev/sdc3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-5ba0805b-1cab-4330-abe7-dc9e636ee754' {
insmod part_msdos
insmod ext2
set root='hd2,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos3 --hint-efi=hd2,msdos3 --hint-baremetal=ahci2,msdos3 5ba0805b-1cab-4330-abe7-dc9e636ee754
else
search --no-floppy --fs-uuid --set=root 5ba0805b-1cab-4330-abe7-dc9e636ee754
fi
linux /boot/vmlinuz-3.16.2-lfs-7.6-systemd root=/dev/sdc3 ro
}
submenu 'Advanced options for Linux From Scratch (7.6-systemd) (on /dev/sdc3)' $menuentry_id_option 'osprober-gnulinux-advanced-5ba0805b-1cab-4330-abe7-dc9e636ee754' {
menuentry 'GNU/Linux, Linux 3.16.2-lfs-7.6-systemd (on /dev/sdc3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.16.2-lfs-7.6-systemd--5ba0805b-1cab-4330-abe7-dc9e636ee754' {
insmod part_msdos
insmod ext2
set root='hd2,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos3 --hint-efi=hd2,msdos3 --hint-baremetal=ahci2,msdos3 5ba0805b-1cab-4330-abe7-dc9e636ee754
else
search --no-floppy --fs-uuid --set=root 5ba0805b-1cab-4330-abe7-dc9e636ee754
fi
linux /boot/vmlinuz-3.16.2-lfs-7.6-systemd root=/dev/sdc3 ro
}
}
I saw message _not syncing: VFS: Unable to mount root fs on unknown-block(0,0)_
Only thing I can think of is something in the kernel not configured hard drive type maybe. File system, although ext4 I found is enabled as is dvtmpfs, did you check, I presume your fstab is complete as it is in the book.
I saw message _not syncing: VFS: Unable to mount root fs on unknown-block(0,0)_
Mostly this error occurs due to missed SATA controller driver, or driver was built as loadable module. Driver should be built in kernel. Check out your kernel config.
Another possible reason - DEVTMPFS not enabled or enabled as module. Should be built in as well.
If you do not know which driver you have to enable for your sata controller, there is a good site with instructions: http://kmuto.jp/debian/hcl/
Thank You for advise.
No luck, I just copied config file from host system, had it configured it with "menuconfig" as mentioned in Manual.
vmlinuz-3.16.2-lfs-7.6-systemd increased up to 1M, and alot of new modules were inslalled.
The same message occured _not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
So, better way I guess - remove all disks from PC, and try prepare LFS from null with 1 HDD and separated /boot on clear SATA.
Also I'll retry the same under x86 arch.
Using Ubuntu's kernel config may mis-orient you. Because Ubuntu uses initrd, and some of modules there, not built in kernel, so using Ubuntu config is not a way to go.
What is your mobo model?
Though there is another way to configure kernel:
Quote:
make localmodconfig
this command searches for your devices and creates config depending on it. Keep in mind: all the devices you planned to use should be attached: usb stick, usb hdd, camera, hid devices.
Using this config will lead to a bit bloated kernel, but it should be loadable and might be taken as a good start point. You can compare this config to your current one, especially for "Device drivers" section to get idea whats wrong with your config
If your drive is IDE, it will require PATA drivers as well.
Your mobo operates with JMB363 PATA and SATA controllers. BTW as one of mine mobos.
Do you have enabled JMicron PATA/SATA support? it is a PATA_JMICRON option.
Run make menuconfig and press "/" key to get into search mode. Type "jmicron" to search and press Enter. It will show do you have jmicron support enabled. Options should be set to [y], not [m].
Ah so! You are right! I have jmicron support enabled via BIOS and use /dev/sdc within.
I thought jmicron will be populated with devices...Ok, thank You very much! Will try asap.
YES!!! I am able to boot!!!!
Issue was really in JMICRON kernel settings
By default this option marked as "not set"
Once I fixed up to CONFIG_PATA_JMICRON=y system had soared!
Teufel, VIELEN DANK!
Btw, "make localmodconfig" not working in chroot, issue with some .pl file.
I dig more. Also internet not available, but this is ganz andere Geschichte.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.