You are not logged in.

#1 2012-08-15 10:10:30

ffuentes
Member
From: Santiago, Chile
Registered: 2009-08-23
Posts: 35

Yet another "unable to find root device" problem (pacman issue) SOLVED

During this night I've been trying to solve a problem that let me without access to my ArchLinux partition.

Booting the kernel.
:: Starting udevd...
done.
:: Running Hook [udev]
:: Triggering uevents...done.
Waiting 10 seconds for device /dev/by-uuid ...
ERROR: Unable to find root device '/dev/by-uuid'.
You are being dropped to a recovery shell
       Type 'exit' to try and continue booting
sh: can't access tty: job control turned off
[rootfs /]#

The thing is that I've read about chrooting, I did chroot following the steps described on the Wiki https://wiki.archlinux.org/index.php/Change_Root but I have a problem with pacman and it's that I can't use pacman on chroot, it says: command not found. I must've done something wrong but I have no clue.

My disk is sda1 and I don't use a special partition for /boot or /home.


Thank you in advance.

Last edited by ffuentes (2012-08-17 04:33:38)

Offline

#2 2012-08-15 10:39:10

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Yet another "unable to find root device" problem (pacman issue) SOLVED

https://wiki.archlinux.org/index.php/Pa … nger_boot.

If you can't run any other command (ls, fdisk, uname, etc), it probably means that you messed up the glibc migration.


"How to Succeed with Linux"

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

#3 2012-08-15 19:15:16

ffuentes
Member
From: Santiago, Chile
Registered: 2009-08-23
Posts: 35

Re: Yet another "unable to find root device" problem (pacman issue) SOLVED

Thanks for the reply.

All those commands work. Do I have to install pacman? A path issue?

Help please sad

Offline

#4 2012-08-15 20:20:45

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: Yet another "unable to find root device" problem (pacman issue) SOLVED

Perhaps you can rebuild pacman in the chroot.

See https://bbs.archlinux.org/viewtopic.php?id=146308 post#13

Be aware it isn't formatted correctly, missing code setup to clarify the steps but it will restore pacman when executed correctly.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#5 2012-08-15 20:31:52

ffuentes
Member
From: Santiago, Chile
Registered: 2009-08-23
Posts: 35

Re: Yet another "unable to find root device" problem (pacman issue) SOLVED

/var/cache/pacman doesn't exist.

The post there seems to be about a pacman installation that's behaving badly, my case is about a pacman (and most applications) that can't be executed as though they didn't exist.

Offline

#6 2012-08-15 20:43:13

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Yet another "unable to find root device" problem (pacman issue) SOLVED

First of all, do you use a separate /var or /usr partition? If you do not, to reinstall pacman, pop in the latest Arch install media and run:

# mount /dev/sdxY /mnt   #Your root partition.
# pacstrap /mnt pacman

There. Pacman has now been reinstalled. But don't reboot just yet.

# mount /dev/sdxZ /mnt/boot   #Your boot partition (if you have one).
# arch-chroot /mnt
# pacman -Syu udev mkinitcpio
# mkinitcpio -p linux

"How to Succeed with Linux"

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

#7 2012-08-15 20:57:28

ffuentes
Member
From: Santiago, Chile
Registered: 2009-08-23
Posts: 35

Re: Yet another "unable to find root device" problem (pacman issue) SOLVED

Thanks, I'm gonna try this. So, I have to download a copy of Archlinux, right?

Offline

#8 2012-08-15 20:59:35

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: Yet another "unable to find root device" problem (pacman issue) SOLVED

My post may be viable because I had the same problem pacman not responding to any command.  However, it may not fit your situation which is par for the curse!


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#9 2012-08-15 22:54:11

ffuentes
Member
From: Santiago, Chile
Registered: 2009-08-23
Posts: 35

Re: Yet another "unable to find root device" problem (pacman issue) SOLVED

I have issues installing pacman with pacstrap. It just says:

===> ERROR: Failed to install packages to new root

And lots of stuff that "exist in the filesystem".

EDIT:

http://i.imgur.com/j1mnA.jpg

Last edited by ffuentes (2012-08-15 23:02:49)

Offline

#10 2012-08-15 23:17:50

ffuentes
Member
From: Santiago, Chile
Registered: 2009-08-23
Posts: 35

Re: Yet another "unable to find root device" problem (pacman issue) SOLVED

Can I uninstall stuff in the same way pacstrap install packages?

Offline

#11 2012-08-16 07:18:46

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Yet another "unable to find root device" problem (pacman issue) SOLVED

Mount your partition(s) to /mnt, "arch-chroot /mnt", and go wild with pacman.

https://wiki.archlinux.org/index.php/Pa … g_packages

Last edited by DSpider (2012-08-16 07:32:56)


"How to Succeed with Linux"

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

#12 2012-08-16 07:51:49

ffuentes
Member
From: Santiago, Chile
Registered: 2009-08-23
Posts: 35

Re: Yet another "unable to find root device" problem (pacman issue) SOLVED

I must've explained it badly. Pacman still doesn't work. After writing "pacstrap /mnt pacman" it says what's shown on the #9 picture, therefore pacman's installation fails.

Offline

#13 2012-08-16 15:29:08

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Yet another "unable to find root device" problem (pacman issue) SOLVED

https://wiki.archlinux.org/index.php/Pa … tall_it.3F

Maybe this will help.

I have no idea what you did to mess it up... Have you tried the fallback entry?


"How to Succeed with Linux"

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

#14 2012-08-16 20:39:30

ffuentes
Member
From: Santiago, Chile
Registered: 2009-08-23
Posts: 35

Re: Yet another "unable to find root device" problem (pacman issue) SOLVED

Thanks. Yeah, it's beyond the kernel. It won't boot even using fallback. I will try and if this doesn't work I will backup and reinstall.

Offline

#15 2012-08-16 21:39:01

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Yet another "unable to find root device" problem (pacman issue) SOLVED

Even if the kernel and the initramfs image are shot, you should still be able to chroot into the system and work from there.


Heh. I removed everything from my /boot folder once. tongue It wasn't as bad as it sounds. I learned a lot in the process. But I was stuck on Windows for about three weeks...


"How to Succeed with Linux"

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

#16 2012-08-17 01:22:34

ffuentes
Member
From: Santiago, Chile
Registered: 2009-08-23
Posts: 35

Re: Yet another "unable to find root device" problem (pacman issue) SOLVED

Well, I've made it work  but I can't do anything about pacman because it doesn't let me install stuff

GPGME error: Inappopriate ioctl for device
hwids: missing required signature
systemd-tools: missing required signature
mkinitcpio: missing required signature
error: failed to commit transaction (commit or corrupted package (PGP signature))
Errors occured, no packages were upgraded

And I've been trying to disable the package signature checking but I can't get it work.

UPDATE:  I've set it to "SigLevel = Never" and now it gives me an error of conflicting files. (X exists in filesystem)

Last edited by ffuentes (2012-08-17 01:36:36)

Offline

#17 2012-08-17 04:32:52

ffuentes
Member
From: Santiago, Chile
Registered: 2009-08-23
Posts: 35

Re: Yet another "unable to find root device" problem (pacman issue) SOLVED

I've solved the mystery.

Well, I realised that I had another serious issue with filesystem (that was mentioned on the Archlinux's news https://www.archlinux.org/news/filesyst … equired-1/ and https://www.archlinux.org/news/the-lib- … a-symlink/ ) so I had to figure out which packages were using /lib to remove them. Also I had to disable pacman's signature checking system because as I said before it didn't seem to work.

After removing every package that happened to use /lib  at that time I eventually could perform the command "pacman -Syu" and later on "mkinitcpio -p linux" worked out.

Thanks DSpider.

Offline

Board footer

Powered by FluxBB