/tmp Partition still in use after umount
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Expired
|
Undecided
|
Unassigned |
Bug Description
I have an ext4 partition (/dev/sda6) mounted to /tmp at boot time via /etc/fstab. If I try to perform fsck and therefore umount it after stopping all processes which have open files on /tmp, I always get the error
/dev/sda6 is in use.
e2fsck: Cannot continue, aborting.
The error occurs even though the umount umount command succeeded and the partition is definitely not mounted anymore. After some trying I found out that systemctl uses systemd-
"/dev/disk/
I also tried not to use the partition label but /dev/sda6 directly instead, but that did not help.
The problem also does not occur, when removing the entry from fstab, rebooting and then mounting / unmounting it manually.
I wonder if calling the umount command directly is not recommended anymore since systemd has taken over the control about the fstab-mounts? What is systemd exactly doing when unmounting the partition in difference to the bare umount command?
Steps to reproduce the error:
- Booting the system
- Stopping all relevant processes to make sure that there are not open filepointers under /tmp
- umount /tmp
- fsck.ext4 /dev/sda6
Steps to reproduce the expected behaviour (no error):
- Booting the system
- Stopping all relevant processes
- systemctl stop tmp.mount
- fsck.ext4 /dev/sda6
I am using
- Ubuntu 18.04.1 LTS
- Kernel 4.15.0-30-generic
- e2fsck 1.44.1
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/1786004/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]