Can't find boot device?
Hey,
I just compiled my first own kernel (I'm using Arch Linux), following the tutorial on the german site. Now I tried to boot it, I ended up failing with this message: Code:
Waiting 10 seconds for device /dev/sda1 ... Code:
# Arch Linux Also, at first I did not have the initrd line in my menu.lst (as written in my tutorial that I may not need it). In this case I had this error message: Code:
[ 1.xx (kerneltime I guess)] VFS: Cannot open root device 'disk/by-uuid/blabla' or unknown-block(0,0) I am using a 2.6.38 Kernel running on VirtualBox, using ArchLinux with LXDE |
Do you have more than one drive attached when you boot?
What was the exact command that you used to generate your initrd.img file? |
What do you mean with more than one drive attached? I only got one harddrive, which was formatted during Arch installation int a /root, a swap and a rest partition.
No USB or CD media are in there. I created initrd using sudo mkinitcpio -k 2.6.22 -g /boot/initrd.img |
Quote:
Those wanting to continue the use of an older kernel version will be required to rebuild the glibc package with the appropriate adjustment made to the "--enable-kernel" configuration option. |
Woaa, sorry, bad typo -.-
Of couse I put the right version there sudo mkinitcpio -k 2.6.38 -g /boot/initrd.img |
Where did you get the sources from?
2.6.38-1 is in testing. Is there any reason why you choose not to use this one? You could always compile a custom one from the PKGBUILD. I am running a git kernel and my kernel is 2.6.38+. Is your /lib/modules/2.6.38 or /lib/modules/2.6.38+? |
I got the source from kernel.org - it's stable and mainline.
I choose this way without PKGBuild b/c I want to work within the kernel (i.e. code new modules) and I wasn't sure whether I had to compile the whole kernel using PGKBUILD when I just made small changes. My lib mobuldes was 2.6.38 |
Does your /etc/fstab refer to UUID's?
If it does, then your mkinitcpio command should have worked, so you must have messed up when you compiled your kernel. |
Whenever I have encountered this situation, I've mis-configured the kernel either by not adding support for the drive or the file system that's on it. I recommend passing your hard drive manufacturer through `grep` on the kernel .config file. Alternatively, you could unpack the kernel source, if you haven't kept it around, copy the .config file to the tree and run `make {x,menu,old}config` and visually inspect all of these areas.
Looks like your boot commands should work, although I think you're using Lilo and that has been a long time for me. The "kernel panic" got my attention. You could also search through the Linux From Scratch archives. There's been some discussion in the last few months about problems using Virtual Box. Since you're running Archlinux, you may also want to try the CLFS archives. Good luck. Dan |
Thank you, that was the problem. Seems I must have accidently unchecked a driver needed
|
Glad I could help. My experience is that these things are usually something simple. The problem is in knowing what's simple.:banghead:
Dan |
All times are GMT -5. The time now is 06:55 PM. |