You are not logged in.

#1 2012-12-09 19:46:58

grmix
Member
Registered: 2012-12-09
Posts: 11

[SOLVED] Unable to find root device after updating glibc

Hello everyone,

I follow this forum for a long time but i didn't have to post anything because i always found the answer i was looking for. This time i didn't have that luck.

So, this is my problem:
http://www.deviantpics.com/image/Hev

And description what I've done:
After following this tutorial to update my Arch linux (I know i haven't updated it for a really long period, it won't happen again, I promise you), I cannot boot it anymore.

These are the commands i entered in my terminal while upgrading

pacman -Syu --ignore glibc
pacman -Su

Then i had the issue with the "pacman -Su", it still had conflicts in /lib so i entered:

$ grep '^lib/' /var/lib/pacman/local/*/files

And i moved files that aren't owned by glibc into other file in /home/old directory (i was afraid of deleting anything).

After that i entered

$ find /lib -exec pacman -Qo -- {} +

and deleted some font files if I remember it correctly.

After that my "pacman -Su" command could be performed and everything was fine until i tried to reboot.
My great mistake was (probably) not entering the

mkinitcpio -p linux

command. I don't know what to do now, i tried to do this and this, but my command in GRUB was simply ignored/deleted whenever i tried to edit the Kernel command. My apologise if i didn't see some thread on forum where this is already solved but i don't think that anyone is such a fool as i am because I forgot that "mkinitcpio" command. I hope that someone knows how to help me.

P.S. I didn't use --force flag in any command.

Kind regards,
grmix

Last edited by grmix (2013-01-15 09:02:15)

Offline

#2 2012-12-09 23:02:09

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] Unable to find root device after updating glibc

It isn't normal to not be able to edit the command line in grub...

However, if you have an install key/cd for Arch, you can use that to recover. You may also be able to do it with any live linux environment but you will have to chroot the manual way in that case. (Not hard - just more typing.) I think you should be able to chroot into your system and run mkinitcpio from there. (Assuming that this is the step you forgot and there is nothing else wrong.)

I don't know if you can do this from the rescue shell but I guess not or you would have done it.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2012-12-09 23:29:35

grmix
Member
Registered: 2012-12-09
Posts: 11

Re: [SOLVED] Unable to find root device after updating glibc

Yup, i can't do it from rescue shell, i already tried that. I had that idea like u suggested me but i wanted to hear it from someone on this forum smile.
I will download newest distro for Arch, make a live CD and chroot into my system and run that mkinitcpio command.
But, since i've never done that before (chroot), can you give me tips what do i have to do?

Offline

#4 2012-12-09 23:35:16

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED] Unable to find root device after updating glibc

https://wiki.archlinux.org/index.php/Change_Root

Be careful not to miss the exit and unmounting steps at the end of that guide.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2012-12-09 23:48:34

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] Unable to find root device after updating glibc

If you are using Arch's media, you can use arch-chroot to save some steps. See e.g. https://wiki.archlinux.org/index.php/Ar … bootloader. (I realise you are not trying to install a bootloader - this is just the first place I found demonstrating the use of arch-chroot in the wiki.)

Just out of interest, what happens if you don't exit and unmount at the end? I'm sure I didn't do this the first few times I chrooted and nothing terrible seemed to happen so I'm curious about what the dangers consist in. (I was rebooting without coming out of the chroot, basically, and I can see why that might be bad but would just like more specific information...)

Last edited by cfr (2012-12-09 23:49:19)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#6 2012-12-09 23:52:31

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED] Unable to find root device after updating glibc

Best case scenario is that there is no problem at all ... as I've (accidentally) done this too without any issue.

I'm not sure what the worst case scenario is, though, and I have no interest in pushing my luck to find out! wink

Last edited by Trilby (2012-12-09 23:52:48)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2012-12-10 00:08:38

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] Unable to find root device after updating glibc

Fair enough smile. I certainly wasn't recommending it. I think I just somehow failed to absorb that element of the process initially and then at some point read something else which made me realise I'd missed the exiting bit out. I've no interest in experimenting to find out, either - I just thought you might know what horrors I had merely happened to avoid!


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#8 2012-12-10 01:31:25

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Unable to find root device after updating glibc

As long as you exit, and then perform a normal shutdown (ie not holding the power button) it should unmount all filesystems before shutdown, no? 

I would imagine that the worst case scenario would be similar to the potential corruption that can be caused by shutting down as mentioned above.  But I am not certain of this.

Offline

#9 2012-12-10 02:10:41

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] Unable to find root device after updating glibc

I'm not sure - because you are executing the shutdown command within the chroot environment. Would it still unmount everything and clean everything up properly? It seems that might require it to somehow get out of the chroot and I don't know how that works...

(Note: I'm not claiming you're wrong - I just have no idea.)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#10 2012-12-10 03:32:59

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Unable to find root device after updating glibc

I don't think that executing a shutdown command within a chroon environment would actually shut down.  I think that you cannot do certain things like shutdown, reboot, halt, suspend, etc. 

Therefore you have to either exit from the chroot, or simply issue the command from outside of it.

Offline

#11 2012-12-11 00:10:31

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] Unable to find root device after updating glibc

I'm pretty sure it does work as I'm pretty sure I've done it but I would not wish to guarantee it.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#12 2012-12-11 01:51:37

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Unable to find root device after updating glibc

Interesting... let me check it out real quick.  I can make a chroot with just base in like three minutes.

Edit: Check this out:

sudo arch-chroot /mnt
sh-4.2# reboot 
Running in chroot, ignoring request.

Last edited by WonderWoofy (2012-12-11 01:54:15)

Offline

#13 2012-12-13 20:56:44

grmix
Member
Registered: 2012-12-09
Posts: 11

Re: [SOLVED] Unable to find root device after updating glibc

OK, i need your expert opinions on this problem again sad.

I followed https://wiki.archlinux.org/index.php/Change_Root for changing root, and therefore i typed this

mkdir /mnt/arch
mount /dev/sda6 /mnt/arch
mount /dev/sda8 /mnt/arch/home    //home partition is separated on my HDD
arch-chroot /mnt/arch
sudo mkinitcpio -p linux    //i think i didn't need sudo command here but it doesn't matter

And this is the result of it:
http://www.deviantpics.com/HrS

If you can't read it tell me and I will retype it here, I know it is a little bit blur.
First of all, I hope I did everything right. But, I saw something on chroot help page that may cause this error.
"If you need any kernel modules loaded in the chroot environment, load them before chrooting."
Do I have to load something before chroot command?

Offline

#14 2012-12-13 22:23:00

chris_l
Member
Registered: 2010-12-01
Posts: 390

Re: [SOLVED] Unable to find root device after updating glibc

Just checking something basic... are you sure /boot is not also on its own partition? what output you get from

ls /boot

?


"open source is about choice"
No.
Open source is about opening the source code complying with this conditions, period. The ability to choose among several packages is just a nice side effect.

Offline

#15 2012-12-13 23:42:13

grmix
Member
Registered: 2012-12-09
Posts: 11

Re: [SOLVED] Unable to find root device after updating glibc

My god, I feel so stupid right now. I completely forgot that i had boot on sda5. Thank you for showing me my obvious mistake.

Now everything was fine, I mounted everything and run that mkinitcpio command. After that my Arch loaded but my desktop environment (gnome) didn't. Does anyone have idea why did that happen?
And btw, I had some warnings about hostname, hardwareclock and timezone (that something about those three things was deprecated) but I am sure that that isn't the reason why gnome didn't start. I think it didn't start as a daemon, is it possible that this update changed my daemons setup?

Last edited by grmix (2012-12-13 23:42:59)

Offline

#16 2012-12-13 23:48:30

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Unable to find root device after updating glibc

If you have hostname, hardwareclock, and timezone in rc.conf, then yes, a whole lot has changed with this update and it would cause Gnome not to start. Please read the news on the front page, rc.conf is going away in favor of systemd.

Offline

#17 2013-01-15 08:58:35

grmix
Member
Registered: 2012-12-09
Posts: 11

Re: [SOLVED] Unable to find root device after updating glibc

I forgot to say that this is solved.
The last thing i had to do was follow the wiki page for upgrading my arch on to systemd.
Now everything is fine smile.

Thanks.

Last edited by grmix (2013-01-15 09:00:19)

Offline

Board footer

Powered by FluxBB