You are not logged in.

#1 2013-10-25 12:01:01

sinatosk
Member
Registered: 2010-11-28
Posts: 107

systemd Failed unmounting /home, Failed unmounting Temporary Directory

This has been happening for some weeks now trying to track down what might be causing this issue...

Everytime I shutdown or reboot... It hangs for 10 seconds or in some cases... just hangs and I have to force reboot ( reset button on my case )

Following the instructions from here which I was referred to by arch wiki systemd

http://freedesktop.org/wiki/Software/sy … eventually

rebooted a couple of times and noticed this at the end of my shutdown-log.txt

[  122.747570] systemd-journald[182]: Received SIGTERM
[  132.797909] EXT4-fs (sdb5): re-mounted. Opts: (null)

thats the 10 second hang I was talking about...

and on my screen it outputs

Failed umounting Temporary Directory
Failed umounting /home

looking back at the log for those 2 failed unmounts... one is at

[  122.719495] systemd[1]: Failed unmounting Temporary Directory.

and other is at

[  122.719830] systemd[1]: Failed unmounting /home.

which of course are both before

[  122.747570] systemd-journald[182]: Received SIGTERM

I'm using Arch Linux on a desktop computer

Thanks

edit1: Just noticed... I'm now wondering why sdb5 is being remounted...

this is my layout

sdb      8:16   0 119.2G  0 disk
├─sdb1   8:17   0     1G  0 part /boot/efi
├─sdb2   8:18   0    48G  0 part /
├─sdb3   8:19   0     2G  0 part /boot
├─sdb4   8:20   0     8G  0 part [SWAP]
└─sdb5   8:21   0  60.2G  0 part /home

Last edited by sinatosk (2013-10-25 18:28:07)

Offline

#2 2013-10-25 21:42:26

nanawel
Member
Registered: 2012-05-07
Posts: 89
Website

Re: systemd Failed unmounting /home, Failed unmounting Temporary Directory

I have the very same problem with a similar configuration. I'll follow this thread since the first one has been marked as solved, while it's not actually ( https://bbs.archlinux.org/viewtopic.php … 1#p1341151 ).

Offline

#3 2013-10-25 23:35:41

aoba
Member
Registered: 2013-08-30
Posts: 70

Re: systemd Failed unmounting /home, Failed unmounting Temporary Directory

I had a somewhat similar issue (the umount of /home and /tmp failed, though shutdown did not hang).  Maybe something in that thread can help you.

Offline

#4 2013-10-31 19:01:06

dreamersbrow
Member
From: Iowa
Registered: 2011-03-27
Posts: 24

Re: systemd Failed unmounting /home, Failed unmounting Temporary Directory

I too am experiencing this problem.  I'm not using any form of encryption on my file systems.

Offline

#5 2013-10-31 19:22:31

sinatosk
Member
Registered: 2010-11-28
Posts: 107

Re: systemd Failed unmounting /home, Failed unmounting Temporary Directory

I recently moved my home user folder to it's own block device

/home/user -> points to it's own block device

and now it's saying to me this

Failed unmounting Temporary Directory
Failed unmounting /home/user
Failed unmounting /home

and this is what's in my fstab for that part ( both are SSD's )

/dev/sdb5 /home      ext4 defaults,noatime,discard,exec 0 2
/dev/sdc1 /home/user ext4 defaults,noatime,discard,exec 0 2

I have 3 other mounts... 1 block, 2 nfs inside my /home/user and they seem to unmount fine...

something ain't right and I don't know what it is and nothing but "Failed unmounting..." is showing in my logs

I have a total of 8 entries in my fstab "tmp" is not one of them... systemd is doing that for me automatically... same with "swap"

$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 119.2G  0 disk
└─sda1   8:1    0 119.2G  0 part /home/user/Steam
sdb      8:16   0 119.2G  0 disk
├─sdb1   8:17   0     1G  0 part /boot/efi
├─sdb2   8:18   0    48G  0 part /
├─sdb3   8:19   0     2G  0 part /boot
├─sdb4   8:20   0     8G  0 part [SWAP]
└─sdb5   8:21   0  60.2G  0 part /home
sdc      8:32   0 238.5G  0 disk
└─sdc1   8:33   0 238.5G  0 part /home/user

and this is my fstab

/dev/sdb2 / ext4 defaults,noatime,discard 0 1

/dev/sdb3 /boot ext2 rw,relatime 0 2

/dev/sdb1 /boot/efi vfat defaults 0 2

/dev/sdb5 /home ext4 defaults,noatime,discard,exec 0 2

/dev/sdc1 /home/user ext4 defaults,noatime,discard,exec 0 2

/dev/sda1 /home/user/Steam ext4 defaults,noatime,discard,exec 0 2

#nfs mounts
s1:/nfse1/d1 /home/user/d1 nfs4 rsize=65536,wsize=65536,soft,bg,timeo=1,intr,_netdev,noauto,x-systemd.automount 0 0

s1:/nfse1/d2 /home/user/d2 nfs4 rsize=65336,wsize=65536,soft,bg,timeo=1,intr,_netdev,noauto,x-systemd.automount 0 0

for reasons I have changed the content of these files... just the names... nothing more

can't see anything wrong here... so I don't know why systemd is unmounting things in the wrong order ( my assumption so far )

Last edited by sinatosk (2013-10-31 19:22:44)

Offline

#6 2013-11-05 13:35:57

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

Re: systemd Failed unmounting /home, Failed unmounting Temporary Directory

Same for me. systemd fails to unmount /home (ext4 on an SSD) and Temporary Directory.

anyone figure this out yet?


no place like /home
github

Offline

#7 2013-11-13 21:51:59

nanawel
Member
Registered: 2012-05-07
Posts: 89
Website

Re: systemd Failed unmounting /home, Failed unmounting Temporary Directory

I hoped it would be fixed anytime soon automagically by upgrading the system like it did several times with other similar issues but it keeps happening on my two laptops.
I just don't get what's wrong with those, except that they are laptops (my desktop PC is fine on the other hand).

Offline

#8 2013-11-13 23:32:59

sinatosk
Member
Registered: 2010-11-28
Posts: 107

Re: systemd Failed unmounting /home, Failed unmounting Temporary Directory

I'm a desktop... ( both of them )

Offline

#9 2013-11-19 22:59:38

ninian
Member
From: United Kingdom
Registered: 2008-02-24
Posts: 726
Website

Re: systemd Failed unmounting /home, Failed unmounting Temporary Directory

nanawel wrote:

I hoped it would be fixed anytime soon automagically by upgrading the system like it did several times with other similar issues but it keeps happening on my two laptops.
I just don't get what's wrong with those, except that they are laptops (my desktop PC is fine on the other hand).

Same here - fails on laptops but desktops are okay.

Offline

#10 2013-11-24 00:04:17

Kopkins
Member
Registered: 2012-07-01
Posts: 189

Re: systemd Failed unmounting /home, Failed unmounting Temporary Directory

Same thing here. I couldn't find a bug report on this, has anyone submitted one?

Offline

#11 2013-12-05 14:48:22

xdegaye
Member
Registered: 2013-12-05
Posts: 15

Re: systemd Failed unmounting /home, Failed unmounting Temporary Directory

To shutdown archlinux, I run from the home directory of a plain user (in a vt console
and after X has terminated), the command:
    systemctl poweroff
see
    https://wiki.archlinux.org/index.php/Al … o_Shutdown
    https://wiki.archlinux.org/index.php/sy … management

In that case, the systemd journal says on the next boot, that the /home partition has not
been unmounted correctly:
    home.mount mount process exited, code=exited status=32
    Failed unmounting /home.

Instead, when I run the following command, everything is fine and /home unmounted correctly:
    cd /; systemctl poweroff

The reason why the unmount fails in the first case and not in the second one seems to be
that the cwd (current working directory) of the systemctl process in the first case is the
home user directory and so the linux VFS inode reference count of this directory is not zero,
and therefore /home cannot be unmounted.

Offline

#12 2013-12-05 16:16:32

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: systemd Failed unmounting /home, Failed unmounting Temporary Directory

I did a reboot today noticing unmounting failure of tmpfs /tmp and a bind-mounted /var:

systemd[1]: Stopping Local File Systems.
systemd[1]: Stopped target Local File Systems.
systemd[1]: Unmounting /var...
systemd[1]: Unmounting /boot...
systemd[1]: Unmounting Temporary Directory...
umount[16260]: umount: /var: target is busy
umount[16260]: (In some cases useful info about processes that
umount[16260]: use the device is found by lsof(8) or fuser(1).)
systemd[1]: var.mount mount process exited, code=exited status=32
systemd[1]: Failed unmounting /var.
systemd[1]: Unmounting /hdd...
umount[16263]: umount: /tmp: target is busy
umount[16263]: (In some cases useful info about processes that
umount[16263]: use the device is found by lsof(8) or fuser(1).)
systemd[1]: tmp.mount mount process exited, code=exited status=32
systemd[1]: Failed unmounting Temporary Directory.
systemd[1]: Unmounted /hdd.
systemd[1]: Unmounted /boot.
systemd[1]: Stopping EFI System Partition Automount.
systemd[1]: Unset automount EFI System Partition Automount.
systemd[1]: Starting Unmount All Filesystems.
systemd[1]: Reached target Unmount All Filesystems.
systemd[1]: Stopping Local File Systems (Pre).
systemd[1]: Stopped target Local File Systems (Pre).
systemd[1]: Stopping Remount Root and Kernel File Systems...
systemd[1]: Stopped Remount Root and Kernel File Systems.
systemd[1]: Starting Shutdown.
systemd[1]: Reached target Shutdown.
systemd[1]: Starting Final Step.
systemd[1]: Reached target Final Step.
systemd[1]: Starting Reboot...
systemd[1]: Shutting down.

Where /hdd is the mount point of /dev/sdb1, and /var /dev/sdb1[/var] (bind-mount).


This silver ladybug at line 28...

Offline

#13 2013-12-06 05:55:27

dazemc
Member
From: Seattle, Washington, USA
Registered: 2013-03-02
Posts: 64

Re: systemd Failed unmounting /home, Failed unmounting Temporary Directory

Offline

#14 2013-12-06 08:22:34

nanawel
Member
Registered: 2012-05-07
Posts: 89
Website

Re: systemd Failed unmounting /home, Failed unmounting Temporary Directory

I might be wrong but I don't think it's relevant here, is it? Personally I don't have any SSD.

Offline

#15 2015-02-09 19:06:02

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 340
Website

Re: systemd Failed unmounting /home, Failed unmounting Temporary Directory

I have same issue for past few months, im using 16gb usb thumbdrive with arch installed,aybe its only happening with non spinning disks

Offline

#16 2015-02-09 19:32:29

Kopkins
Member
Registered: 2012-07-01
Posts: 189

Re: systemd Failed unmounting /home, Failed unmounting Temporary Directory

Try adding the shutdown hook to your mkinitcpio.conf and don't bump old threads.

Offline

#17 2015-02-10 14:29:30

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: systemd Failed unmounting /home, Failed unmounting Temporary Directory

Please don't bump multiple old threads just to +1 them


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB