You are not logged in.

#1 2015-11-03 15:35:49

garchws
Member
Registered: 2015-10-31
Posts: 18

Getting out of Emergency Shell after fsck failure

After re-arranging some hard drives across my SATA ports (this is a desktop machine), I get the following error after trying to boot up Arch:

https://lh3.googleusercontent.com/uZFR3 … 72-h659-no

What could have caused this? Did I accidentally turn off the machine while it was writing to the SSD disk? How do I escape this?




--  read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_code [jwr] --

Last edited by garchws (2015-11-03 15:37:00)

Offline

#2 2015-11-03 16:26:42

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: Getting out of Emergency Shell after fsck failure

Most likely, the correct root= is not passed to the kernel command line or your fstab is incorrect (probably referring to the state before your rearrangement). Probably, your fstab does not refer the correct root partition and fsck, reading the fstab, try to check a non existent or incorrect partition. Note that it is probably not the fsck failure that prevent you to boot, but the fact that the initrd does not find the root filesystem in the first place.

According to your screenshot, you are in the initrd with very few tools at your disposal. Best is to boot from a rescue CD, mount the necessary partitions and correct the problem from there. You can do the same from the initrd, but I don't know the tools it contains.

Last edited by olive (2015-11-03 16:31:58)

Offline

#3 2015-11-03 17:19:29

garchws
Member
Registered: 2015-10-31
Posts: 18

Re: Getting out of Emergency Shell after fsck failure

What caused the error was plugging in an additional SATA drive. When I take out the extra SATA drive, it works as usual.

But this confuses me, since my /etc/fstab locates partions on the basis of UUIDs.

Last edited by garchws (2015-11-03 17:22:01)

Offline

#4 2015-11-03 17:31:16

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Getting out of Emergency Shell after fsck failure

Please paste your bootloader config, fstab and details of your devices (blkid).


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2015-11-03 18:06:38

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: Getting out of Emergency Shell after fsck failure

garchws wrote:

What caused the error was plugging in an additional SATA drive. When I take out the extra SATA drive, it works as usual.

But this confuses me, since my /etc/fstab locates partition on the basis of UUIDs.

Then maybe the initrd does not contain the necessary modules to access your drive. Can you boot with the fallback initrd?

Last edited by olive (2015-11-03 19:13:55)

Offline

#6 2015-11-03 18:13:35

garchws
Member
Registered: 2015-10-31
Posts: 18

Re: Getting out of Emergency Shell after fsck failure

UPDATE: I took the UUID found in my /etc/fstab and copied it to my boot config (which was referring to the name /dev/sda2) and it fixed the problem. When I added the extra harddrive, sda and sdb became switched, so my boot was looking on the new drive for Arch. Making it refer to the UUID fixed the problem.

Offline

#7 2015-11-03 19:37:40

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Getting out of Emergency Shell after fsck failure

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB