You are not logged in.
I tried booting my laptop yesterday and received this error upon boot. Afterwards it simply drops me to a recovery shell. I've researched it a bit and tried various solutions that others had success with but nothing has changed for me. For example I tried everything in this thread: https://bbs.archlinux.org/viewtopic.php?pid=1062549
Here's the full error:
Booting the kernel.
:: Starting udevd...
done.
:: Running Hook [udev]
:: Triggering uevents...done.
:: Running Hook [encrypt]
Waiting 10 seconds for device /dev/mapper/root ...
ERROR: Unable to find root device '/dev/mapper/root'.
You are being dropped to a recovery shell
I've successfully chrooted into the machine and have done the following:
pacman -Syyu
pacman -S udev
pacman -S linux
mkinitcpio -p linux
HOOKS from mkinitcpio:
HOOKS="base udev autodetect pata scsi sata encrypt filesystems usbinput"
I think the problem might have stemmed from a recent kernel update. In pacman.log I got a bunch of errors a from a few days ago about
"cp: cannot stat '/lib/modules/3.2.11-1-ARCH/kernel/..." : No such file or directory
but I've rebuilt the kernel a few times and it's shown successful so I think that issue should have been solved.
Last edited by Schwag (2012-03-25 03:18:12)
Offline
See this post: https://bbs.archlinux.org/viewtopic.php … 5#p1077105
Offline
Thanks I'm pretty sure that's the problem but I haven't been able to get it working just yet. Running just:
depmod
should be sufficient correct? I ran it after chrooting in, but I'm getting this error:
ERROR: could not open directory /lib/modules/3.0-ARCH: No such file or directory
FATAL: could not search modules: no such file or directory
This is because the liveUSB is on the 3.0 kernel while my filesystem is on the 3.2.11 kernel. Now, my question is, is there anyway to depmod to a different kernel number? If not I'm assuming I'm going to have to rollback to the kernel of the liveUSB?
Offline
Did you have all of your filesystems mounted in the chroot? If set up correctly, you should be working on your kernel, not the Live USB.
Offline
I should be using depmod from the recovery shell? I just tried it and got:
WARNING: could not open /lib/modules/3.2.11-ARCH modules.order : No such file or directory
WARNING: could not open /lib/modules/3.2.11-ARCH modules.builtin : No such file or directory
Should I rebuild the kernel again?
I also tried depmod from chroot after including:
mount -t proc proc proc/
mount -t sysfs sys sys/
mount -o bind /dev dev/
but that didn't work either.
EDIT: I just realized the problem is in /lib which isn't mounted by any of those commands. How do I mount /lib?
Last edited by Schwag (2012-03-24 20:19:08)
Offline
See this post: https://bbs.archlinux.org/viewtopic.php … 2#p1055152
Offline
Ok, first of all I did something stupid while trying to mount /lib. I accidentally deleted /lib/modules while chrooted in.
After that I remade the directory, mounted /lib, and ran depmod which ran just fine. So now when I chroot in /lib/modules contains just 3.0-ARCH but when I try to boot it still drops to recovery shell and shows 3.2.11-1-ARCH in /lib/modules. Are the modules I had in /lib/modules/* crucial (?) should I immediately re-download them (if so will I just need to do pacman -S linux)?
I guess I don't see this in the bigger picture. I thought I was trying to run depmod in the 3.0 kernel to get it to boot then upgrade back to 3.2? Or will depmod-ing in a 3.0 kernel be sufficient to get my 3.2 (which I accidentally deleted the /lib/module of) working again? Also I don't understand why when I'm chrooted in /lib/modules shows 3.0-ARCH and when I try to boot and get a recovery shell /lib/modules shows 3.2.11-1-ARCH?
And finally, unfortunately I don't have internet access on my laptop right now so if I need to re-download linux I'll have to wait until I get home.
Thanks for all your time helping me out with this.
Last edited by Schwag (2012-03-24 21:24:43)
Offline
I'm not entirely sure why, in your chroot, you are seeing the 3.0-related files - that doesn't seem right.
Edit your thread title to reflect the real issue (the missing module files) and you might attract some more knowledgeable assistance.
Offline
I tried copying in the 3.0 files after I deleted /lib/modules and was getting the warning about not being able to find the 3.2 files when trying to depmod. So that's why the 3.0 files are there I believe.
So yeah, now the issue is just getting back my /lib/modules/3.2 files I guess (is this just a pacman -S linux issue?).
Correct me if I'm wrong, but if I hadn't accidentally deleted those files and mounted /lib correctly then a depmod would have fixed my 3.2 issue on my filesystem despite the mounted /lib being 3.0? I also don't know why the 3.0 files are there when I'm chrooted in but the 3.2 files are there when I'm in the recovery shell.
Last edited by Schwag (2012-03-24 21:58:43)
Offline
UPDATE: Ok so I've upgraded to kernel 3.2.12 so my /lib/modules problem is gone. I think the issue is my /boot isn't getting updated to reflect the kernel changes. When I boot and drop to recovery shell and try depmod it complains about my 3.2.11 kernel version. I also think this is the problem because when I'm chrooted in I get a few complaints about the /boot mount when doing pacman -Syyu. So I'm not entirely sure if this is the problem but it's my best guess that the kernel changes aren't getting reflected in /boot. Any thoughts?
Last edited by Schwag (2012-03-24 23:03:03)
Offline
/boot is mounted in the chroot when you update everything, isn't it?
Offline
No
I just realized this. It's fixed now though!! Awesome.
Thanks for all your help man, I really appreciate it.
For future references, I just forgot to mount /dev/sda1 (boot) in chroot so the /boot partition wasn't getting updated to the latest kernel when I was trying to update.
Offline
Heh. It's the little details that get you.
Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.
Offline