Frustrating problem ; LFS kernel not booting after hours work ...
I have a very frustrating problem after hours and hours spending for making my first linux from scratch system :(
Everything during building went fine untill now .. And I think it's a stupid config error somewhere. This is an extract of the error I haven when the LFS kernel tries to boot: VFS: Cannot open root device "sdb1" or unknown-block(0,0): error -6 Please append a correct "root=" boot option; here are the available partitions: 0b00 1048575 sr0 driver : sr Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) etc ... Here is my building story: First of all, making the LFS was done completely in Vmware player 5.0 on a Fedora 17 host system. For making the LFS I've added a second virtual HD. So host is on 'sda' and the LFS system on 'sdb' on the only one and first partion I modified the grub2 loader to make appear my LFS on the grub bootmenu as follows in the 40_custom file: set root=(hd1,1) menuentry "GNU/Linux Linux 3.5.2-lfs-7.2" { linux /boot/vmlinuz-3.5.2-lfs-7.2 root=/dev/sdb1 ro } As far as I know about it, this config seems to be right .. because the kernel starts booting but stucks after a few seconds with the error described earlier. On the LFS website I've found in the FAQ a few things that can lead to this error Did you specify the correct partition in /boot/grub/menu.lst? I am almost 99% sure I did (see my config) Is support for the hard drive enabled in the kernel. For SCSI this means support for the specific SCSI adapter. Yes I compiled the kernel with SCSI support and NOT as a module Is support for the hard drive compiled into the kernel, not just as a module. (Modules are stored on the filesystem. If a driver needed to access the filesystem is stored as a module on that filesystem, well ... you know ... ;) I believe it is ( Vmware is SCSI isnt it?) Is support for the filesystem compiled into the kernel. Again, not a module. Support for ext2 is enabled by default, but others like ext3, reiser, jfs, and xfs are not. Yes I compiles Ext2 and Ext3 support ; my LFS partition is Ext3 by the way What the hell I am doing wrong here? Are there any specicic setting I need to compile for the kernel for Vmware? I tried also to enable 2 vmware specific settings in the kernel but also without results. I hope someone can help me or point me in the right direction because this is driving me nuts. Best Regards Kurt |
Something similar has been caused before by "CONFIG_DEVTMPFS is not set" in the kernel configuration. Anyway, it can't hurt to check. If you still have your .config file in your kernel source directory, or if you can mount your LFS partition and examine the config file in /boot, then search or grep for CONFIG_DEVTMPFS=y. If yours "is not set" instead, then correct it and recompile the kernel...
Quote:
|
Hi stoat
Thanks for reply And yes I compiled the CONFIG_DEVTMPFS option in the kernel as described :-( I had found this already in the forum before posting my question. Do you or someone else has an other idea what's going wrong here? greetz Kurt |
Did you tried to read the kernel output? There is for sure something interesting, for example you may see if your sdb is recognised or not.
|
Hi Celyr
There are no files in /var/log of my lfs filesystem How and where can I find/activate this kernel output ? K. |
Well, you should see it while booting, example:
Code:
[ 3.473764] ahci 0000:00:1f.2: version 3.0 |
Quote:
|
Hi Keith
I tried ur idea but everywhere on internet there is said that for grub2 partition counting starts on 1 and not on 0 for the HD it starts on 0 any other ideas? :( Kurt |
sorry I use grub 1 ( it's easier to config ) I didn't realize that they had changed the numbering system in grub 2 - My bad!
Have you tried using a pre-compiled kernel? at first I could not get my lfs system to boot so I tried the kernel from my host ( slackware64-13.37 ) just to get the system up and working and then tried compiling my own kernel, at least you will know then that your system is working ( or not! ) or if the problem is in the kernel. |
Keith
hey, this was a good tip :-) I tried to boot the LFS system with the kernel of my host system --> same problem I added the initrd from my host --> then it is continuing booting untill the login, but .. there is nothing happening on the screen when I try to type 'root' as user, after ENTER it asks my for password but I am not able to login :( no characters I type are appearing on the screen In the meantime I tried also to make a proper initrd file as described in the BLFS manual, then it is booting a bit further then described in my first post but not untill the login screen as it does with the kernel and initrd file from my host system I begin loosing faith in LFS .. :-( Kurt |
Hi
Dont loose the faith. So it seems you have got it to boot, What are you faced with now. what dose the prompt look like, |
Glad you got it to boot!
At least now you know where ( one of )the problem is, its in your custom kernel, have a look at this web page: http://zen-kernel.org/tutorials/crea...-configuration which is where I started when I started to build my own kernel. Make sure you have set a password for root from your chroot env on your host system, it is normal not to see the password as you enter it. Keep going you're nearly there! |
The prompt i have is: (none) login: _
When I type there is nothing on the screen and after hitting Enter it asks for password; when I enter then my password it says Login incorrect it is even telling me that Num Lock and Shift is ON Keith I've changed my password via chroot and yes I know that in Linux nothing appears when filling in the password but for the username it is different I guess; the name of the user is seen on the screen when typing right? I dont see anything ... Keyboard seems ok because hitting Enter is probably recognised thanks for the link. I will have a look at it to build my own LFS kernel instead of my hosts one now ... Kurt |
Hi
I see you have "none login:" Is none the name you setup in hostname chapter 7.8? I presume that you tried using user lfs and password. Yes the user name should show on screen |
spiky
indeed when booting I have some errors that can explain the "none" in my prompt; see attached file but in fact it seems normal to me because I didn't setup anything for a network card because I don't have one following the manual u can skip chapter 7 when u dont need a network card .. the only user on the LFS system is root the fact that there comes nothing on the screen when typing is disturbing me K. |
All times are GMT -5. The time now is 03:30 PM. |