Questions tagged [unmounting]
172 questions
4
votes
2 answers
How do I know when lazy `umount -l` completes?
I am running Linux and want to safely unmount my external HDD.
I want to use umount --lazy:
Lazy unmount. Detach the filesystem from the file hierarchy now, and clean up all references to this filesystem as soon as it is not busy anymore. …

Tom Hale
- 30,455
2
votes
2 answers
Unmounting a filesystem
I am trying to unmount a filesystem. The mount point of the filesystem is /one/two/three/four, and the name of the device file is /dev/sdb8. The command that I executed to unmount the filesystem was:
# unmount /one/two/three/four
The current…

Ehsan Rasoli
- 21
2
votes
1 answer
Are there any utilities which support umount2(2)'s MNT_EXPIRE?
man umount2 says:
MNT_EXPIRE (since Linux 2.6.8)
Mark the mount point as expired. If a mount point is not
currently in use, then an initial call to umount2() with this
flag fails with the error EAGAIN, but marks…

Tom Hale
- 30,455
1
vote
1 answer
Ensure writing has completed after `umount -l / --lazy`
One of many issues with umount -l is that there's way to know when it has completed.
Is there a way to:
Know all writing processes have finished and all data has been written to disk.
Prevent future writes

Tom Hale
- 30,455