You are not logged in.
Hi everyone,
I'm actually posting about my girlfriend's Arch, as I myself use another distro. I'm trying to fix her Arch after a post-update breakdown, and I'm running out of ideas (of which I had few to begin with). We both have some experience with Linux, but we definitely also have a lot to learn.
I've seen a number of threads concerning this problem, but not one that helps, so please bear with me as I explain. Also, many of the said threads are obsolete.
So, she updated Arch. It had been a while. She was unaware of the new policy with /lib (edit: no, she wasn't), and she still had udev as an independent package. There might have been a kernel update as well. Long story short, after a reboot, /dev/sda1 (root partition) is not found. Well, I burned a live DVD and did the following:
cd /mnt/arch
mount -t proc proc proc/
mount -t sysfs sys sys/
mount -o bind /dev dev/
dhcpcd eth0
pacman -Syy ## this didn't work
pacman -Syu ## nor this
pacman -S systemd-tools ## succesfully installed
pacman -S linux ## succesfully installedI had some problems with repos (esp. core repo) as well, but I could manage working around that.
And this didn't help. sda1 still isn't found.
Any chance someone here could help? I'm quite sure this isn't the perfect forum post, so please remind me of all the info I forgot to give.
-lilje
Last edited by lilje (2012-08-03 20:38:18)
Offline
https://wiki.archlinux.org/index.php/Pa … nger_boot.
To update the system from a chroot you need to mount /dev/pts too, not just /dev: https://wiki.archlinux.org/index.php/Chroot
I think it has something to do with the signature keys.
Last edited by DSpider (2012-08-03 10:47:25)
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
Though if it were signature keys wouldn't it have not allowed any updates? If that were the case all potential updates would fail, no?
Offline
Not if they were already present in the cache folder, no.
# ls /var/cache/pacman/pkg/You were basically installing the systemd-tools and the linux packages locally, from the cache folder.
Try something you don't have in there, for example:
# pacman -S mari0I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
Thanks for the response.
I've read through the chroot wiki page, but there's a this - "pts is already mounted or /dev/pts is busy". I'm sure this is a total beginner problem, but I admit my helplessness.
Als, both "chroot ." and "chroot . /bin/bash" return
chroot: failed to run command ×/bin/bash×: no such file or directory , where × is a filled-in square character I don't know how to reproduce.
This is surprising, because bash is there - and I wouldn't be checking it if it weren't.
Also, is there a simple workaround for missing core, extra and community repos? I suppose only core is essential in this case though.
Looking forward to learning more,
lilje
EDIT
Read through the last two responses. pacman/pkg is empty. Do I have to manually add a working repo in the appropriate file again? It wouldn't be a problem if it hadn't been so difficult to find one that's up last time.
Last edited by lilje (2012-08-03 15:27:32)
Offline
"no such file or directory" means someone fucked up and either removed the /lib folder or forced the glib upgrade, which was the worst possible thing you (or her) could've done. Now you can't even chroot.
Good job.
There are countless posts about this on the forum. Most people had the common sense to hop on over to archlinux.org and read the front page news when pacman spit out an error.
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
I checked, and turns out she did read the page, didn't -f anything* and did not remove /lib.
*: Expect
pacman -Syu --ignore filesystem && pacman -S filesystem --force
, which is from the news.
Last edited by lilje (2012-08-03 20:38:56)
Offline
I'm in a bad mood today, I guess. And it wasn't an insult so get over it. Reboot and start the chroot process again. You shouldn't be getting a "chroot: failed to run command '/bin/bash': no such file or directory" error if the glibc migration went fine. If it did not went fine, here's a 15 page thread about the glibc change: https://bbs.archlinux.org/viewtopic.php?id=145006
Good luck ploughing through it.
PS: "pacman -S filesystem --force" was from two months ago! Just now updating the system? What is the point of using a bleeding edge distribution if you're only going to update it once every full moon? Wouldn't Ubuntu or Debian Stable be better suited in this case?
Last edited by DSpider (2012-08-03 16:46:54)
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
She obviously does update frequently, but these have been exceptionary months, and the pause is probably the reason for all this.
I'll check the thread, thank you for pointing me toward it. The abundance of relevant threads is actually a problem as they all deal with the issue differently, and the work you have to do if you don't understand enough becomes too great. Perhaps, of course, the correct solution is not to add my own.
Last edited by lilje (2012-08-03 20:40:09)
Offline
I'll give you a freebie:
https://bbs.archlinux.org/viewtopic.php … 9#p1126729
Though I would suggest trying post #8 in that thread first (but backing up /mnt/lib instead of removing it would be smarter).
Offline
Great help, people!
But unfortunately, nothing worked. I tried posts #8 and #13, everything seems okay until I reboot, and it still won't find the root partition. Is it time to give up?
Although, I didn't reinstall glibc from the repo, as that didn't seem necessary. Is is that?
With gratitude,
lilje
Last edited by lilje (2012-08-03 20:40:18)
Offline
Were you able to successfully chroot in and then successfully run a `pacman -Syu`? Post specific output and error messages if anything fails.
If you are able to successfully -Syu, try running `mkinitcpio -p linux` once again just for good measure.
Offline
If the root partition isn't found, you should get dropped in a recovery shell, right? What is in /dev; is there an sda entry in there?
Also, after installing stuff be sure to regenerate your initcpio (mkinitcpio -p linux) from the chroot.
Regarding the /bin/bash error, it should be relative to your current directory, so check if ./bin/bash exists in the directory you are chrooting in ![]()
Offline
Wow, thanks again.
-Syu succesfully installed some mostly irrelevant-looking stuff (mupdf, etc). I remember updating the packages that seemed important separately yesterday due to repo problems.
Also /bin/bash works now (thanks to https://bbs.archlinux.org/viewtopic.php … #p1126729).
/dev looks normal to me. the device and the partitions are definitely there, and no files are missing. In case that's what you were asking. And yeah, I get a recovery shell.
I did "mkinitcpio -p linux" works. Rebooting, edit in a bit...
EDIT:
WORKS!!! I suppose mkinitcpio never worked before glibc was fixed.
Thank you very much for the help. I'll tag this solved and edit the title. Hopefully others can find tips in this thread. I'll also edit my posts for that.
lilje
Last edited by lilje (2012-08-03 20:37:37)
Offline