You are not logged in.

#1 2015-04-24 11:50:18

christian1337
Member
From: Berlin, Germany
Registered: 2012-10-24
Posts: 26

[SOLVED] Suddenly booting in emergency mode, why?

Hi,

i already searched here and with google and I could find problems regarding the emergency mode but none fitting to mine hmm

I really dont know what I shall do now.

I just rebooted because my wifi was connected but i had no internet connection although it was there on other devices. after reboot it showed emergency mode like in the pictures below.
plus i posted the error parts of the journal output.

can someone help me with that?

thank you very much

PSEkaXim.jpg
q1Keo2qm.jpg
kNWbh9Ym.jpg
rcZ80kfm.jpg
3Mh1FfBm.jpg
KdpR2twm.jpg
x2P0R6Nm.jpg
0da48cMm.jpg

Last edited by christian1337 (2015-04-28 18:20:31)

Offline

#2 2015-04-24 12:13:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Suddenly booting in emergency mode, why?

The first picture shows an error: unable to mount /media/stuff. Same error is in the log. What have you done to resolve it?

Offline

#3 2015-04-24 12:37:11

christian1337
Member
From: Berlin, Germany
Registered: 2012-10-24
Posts: 26

Re: [SOLVED] Suddenly booting in emergency mode, why?

The thing is i didn't do anything in the first place that could've made it unable to mount ^^
I've checked if the HDD is functioning and it is. I've booted my backup windows 8 and i can access the drive and also while booting it is shown in the hdd list.

What else can I check?

Offline

#4 2015-04-24 13:09:59

Silkworm205
Member
From: UK
Registered: 2012-05-21
Posts: 267

Re: [SOLVED] Suddenly booting in emergency mode, why?

christian1337 wrote:

The thing is i didn't do anything in the first place that could've made it unable to mount ^^
I've checked if the HDD is functioning and it is. I've booted my backup windows 8 and i can access the drive and also while booting it is shown in the hdd list.

What else can I check?

Windows 8 comes with Hybrid Boot, which under most circumstances, leaves Linux unable to mount the drive with read/write permissions. You could try changing the entry in /etc/fstab to include nofail. This would allow booting regardless of its state.
Hopefully, the other messages are caused by SystemD entering a failure state because this vital stuff disk is not mounting.

One other thing to check is that the disk labels haven't changed with some update. Generally, using UUID's in fstab is much safer.

EDIT: The line "Metada kept in Windows Cache. Refusing to mount." almost guarantees it's hybrid boot. Booting Windows again, right clicking the "start" button, and pressing restart sometimes makes it shut down properly.

Last edited by Silkworm205 (2015-04-24 13:16:33)


I think I know enough to know I don't know enough.

Offline

#5 2015-04-24 13:10:24

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [SOLVED] Suddenly booting in emergency mode, why?

What else can I check?

This screenshot has a pretty verbose error message telling you why mounting /media/stuff failed (dirty NTFS) . For the swap one, double check your fstab entry.

Last edited by hokasch (2015-04-24 13:11:22)

Offline

#6 2015-04-24 13:16:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Suddenly booting in emergency mode, why?

Systemd auto-activates swap, if it finds it, remove swap partition entry from fstab: https://wiki.archlinux.org/index.php/Sw … by_systemd

Offline

#7 2015-04-24 15:06:02

christian1337
Member
From: Berlin, Germany
Registered: 2012-10-24
Posts: 26

Re: [SOLVED] Suddenly booting in emergency mode, why?

Silkworm205 wrote:

EDIT: The line "Metada kept in Windows Cache. Refusing to mount." almost guarantees it's hybrid boot. Booting Windows again, right clicking the "start" button, and pressing restart sometimes makes it shut down properly.

that actually helped, thank you very much smile

But how can I prevent this? I guess it was because my notebook booted into windows and because II didn't want it to boot I just restarted while booting. not the gentle way but usually I had no problems with that. I mean I won't do that again now but can I maybe fix something in my fstab? big_smile

 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
tmpfs		/tmp	tmpfs	nodev,nosuid	0	0
# /dev/sdb8 UUID=3699c7ac-8e3e-42c6-b215-19965446990e
LABEL=arch          	/         	ext4      	rw,relatime,data=ordered	0 2

# /dev/sdb7 UUID=570f4617-353e-4631-9825-2bc569f35af0
LABEL=swap          	none      	swap      	defaults  	0 0

LABEL=stuff /media/stuff ntfs defaults,rw 0 2

why is there a swap at all? When I installed arch I especially tried doing it without a swap drive because I have 16gb of ram, so I thought I don't need that?

but to be safe I should exchange all the labels with UUIDs right?


afterwards I will mark this thread as solved.

Offline

#8 2015-04-24 15:23:30

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: [SOLVED] Suddenly booting in emergency mode, why?

I may be mistaken, but I believe after a certain number of mounts ntfs-3g will refuse to mount an NTFS filesystem and direct the user to boot into Windows for a filesystem check (much as fsck is occasionally scheduled for EXT4). You should probably remove the /media/stuff entry from your fstab and mount it manually only when you need it.

Offline

#9 2015-04-24 15:28:23

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [SOLVED] Suddenly booting in emergency mode, why?

But how can I prevent this? I guess it was because my notebook booted into windows and because II didn't want it to boot I just restarted while booting.

you can disable fast startup in windows, which seems to be causing this issue. regardless, it's a good idea to add the nofail option to the ntfs partition, which marks it "non critical" so it won't block your boot if it can't be mounted.

why is there a swap at all? When I installed arch I especially tried doing it without a swap drive because I have 16gb of ram, so I thought I don't need that?

no idea? maybe you used some template generator or copy+paste? remove it if you don't need it.

Offline

#10 2015-04-24 15:29:05

Silkworm205
Member
From: UK
Registered: 2012-05-21
Posts: 267

Re: [SOLVED] Suddenly booting in emergency mode, why?

christian1337 wrote:

that actually helped, thank you very much smile

But how can I prevent this? I guess it was because my notebook booted into windows and because II didn't want it to boot I just restarted while booting. not the gentle way but usually I had no problems with that. I mean I won't do that again now but can I maybe fix something in my fstab? big_smile

 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
tmpfs		/tmp	tmpfs	nodev,nosuid	0	0
# /dev/sdb8 UUID=3699c7ac-8e3e-42c6-b215-19965446990e
LABEL=arch          	/         	ext4      	rw,relatime,data=ordered	0 2

# /dev/sdb7 UUID=570f4617-353e-4631-9825-2bc569f35af0
LABEL=swap          	none      	swap      	defaults  	0 0

LABEL=stuff /media/stuff ntfs defaults,rw 0 2

why is there a swap at all? When I installed arch I especially tried doing it without a swap drive because I have 16gb of ram, so I thought I don't need that?

but to be safe I should exchange all the labels with UUIDs right?


afterwards I will mark this thread as solved.

UUID's are generally safer because they won't change over time. I got mixed up with labels referring to "/dev/sdb8" or "arch", so your current definitions should be fine as long as you don't introduce a new drive labelled arch. smile

To get rid of mounting the swap partition, (This WILL disable hibernation) you can just prefix the swap line with a hash so it isn't parsed.

To allow skipping of the Windows partition if it's in HybridBoot, add "nofail" to the options region. E.G: LABEL=stuff /media/stuff ntfs defaults,rw,nofail 0 0

Last thing (Hopefully), the pass field, (the digit 2 in the "stuff" line) should be a zero, as fsck cannot scan NTFS as far as I know.


I think I know enough to know I don't know enough.

Offline

Board footer

Powered by FluxBB