You are not logged in.

#1 2012-09-03 13:36:14

Delcaran
Member
From: ud.fvg.it
Registered: 2010-11-14
Posts: 25
Website

[SOLVED] Systemd hangs on mounting partition

I have switched to systemd and everything in fine, but my boot process hangs when it tries to mount /dev/sdb1 (500gb.mount) and asks if I want to enter in emergency mode or just to continue with boot... If I continue (pressing CTRL-D) or if I enter the emergency mode then exit without doing nothing, the partition is mounted without errors and everything works perfectly.
That said, I think it's a timing process...I have to slow down the boot process and wait for /dev/sdb1 to be "free"...
Maybe it's my fault: in my /home (on /dev/sda3, mounted without errors) I have some symlinks to /dev/sdb1, so maybe systemd sees this links and mount /dev/sdb1 in a process, and in another process it reads /etc/fstab and tries to mount /dev/sdb1 again... I don't know, just guessing..
So, this is my /etc/fstab;

# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
tmpfs		/tmp	    tmpfs	    nodev,nosuid	0	0
/dev/sda2   /           ext4        defaults        0   1
/dev/sda3   /home       reiserfs    defaults        0   2
/dev/sda5   swap        swap        defaults        0   0
/dev/sda1   /windows    ntfs-3g     defaults,uid=1000,gid=users  0   0
/dev/sdb1   /500gb      ntfs-3g     defaults,uid=1000,gid=users  0   0

Thanks in advance to everyone!

Last edited by Delcaran (2012-09-28 08:43:18)


I apologize for my English...

Offline

#2 2012-09-03 22:06:23

D4ve
Member
Registered: 2012-08-02
Posts: 209

Re: [SOLVED] Systemd hangs on mounting partition

Hm, why not try to automount /dev/sdb1 only? Should look like this:

 /dev/sdb1   /500gb      ntfs-3g     noauto,users,x-systemd.automount  0   0

Offline

#3 2012-09-04 08:29:15

Delcaran
Member
From: ud.fvg.it
Registered: 2010-11-14
Posts: 25
Website

Re: [SOLVED] Systemd hangs on mounting partition

 /dev/sdb1   /500gb      ntfs-3g     noauto,users,x-systemd.automount  0   0

Changing my /dev/sdb1 entry in /etc/fstab with the line you posted makes the boot process fail repeatedly (not once like before) but the partition is not mounted at all...


I apologize for my English...

Offline

#4 2012-09-04 12:27:26

D4ve
Member
Registered: 2012-08-02
Posts: 209

Re: [SOLVED] Systemd hangs on mounting partition

Delcaran wrote:

Changing my /dev/sdb1 entry in /etc/fstab with the line you posted makes the boot process fail repeatedly (not once like before) but the partition is not mounted at all...

Hm, then i have no idea. I thought with the automount option systemd would mount the drive when it is needed. Maybe the drive takes really too long to start up, as you said in your first post?

Offline

#5 2012-09-04 12:34:51

Delcaran
Member
From: ud.fvg.it
Registered: 2010-11-14
Posts: 25
Website

Re: [SOLVED] Systemd hangs on mounting partition

Looking in the journal (I can't post it, it gets truncated somehow...) I see systemd mounts /dev/sdb1 SUCCESSFULLY, then mounts another partition (I don't remember which, I'm on windows right now), it fails, unmounts /dev/sdb1, mounts the other partition and then remounts /dev/sdb1 and hangs...

Can I say WTF?


I apologize for my English...

Offline

#6 2012-09-04 17:23:10

Delcaran
Member
From: ud.fvg.it
Registered: 2010-11-14
Posts: 25
Website

Re: [SOLVED] Systemd hangs on mounting partition

This is the log from last boot. Mount starts on line 740 and 859.
http://pastebin.com/Ud5fPM77


I apologize for my English...

Offline

#7 2012-09-07 22:04:03

Delcaran
Member
From: ud.fvg.it
Registered: 2010-11-14
Posts: 25
Website

Re: [SOLVED] Systemd hangs on mounting partition

It also seems that sometimes system does not poweroff... it hangs...


I apologize for my English...

Offline

#8 2012-09-28 08:45:17

Delcaran
Member
From: ud.fvg.it
Registered: 2010-11-14
Posts: 25
Website

Re: [SOLVED] Systemd hangs on mounting partition

Solved! It was a udev problem.
Udev sometimes switch sda and sdb during automount, so I put UUIDs in fstab, deleted my automount rules in /etc/udev/rules.d, updated systemd to 192 and rebooted: done!
Thanks to everyone! big_smile


I apologize for my English...

Offline

Board footer

Powered by FluxBB