Contents
How do you force an unmount file system in Linux?
Option 0: Try to remount the filesystem if what you want is remounting
- Option 0: Try to remount the filesystem if what you want is remounting.
- Option 1: Force unmount.
- Option 2: Kill the processes using the filesystem and then unmount it. Method 1: use lsof. Method 2: use fuser.
How do I force a disk unmount?
Linux fuser command to forcefully unmount a disk partition
- -k : Kill processes accessing the file.
- -m : Name specifies a file on a mounted file system or a block device that is mounted. In above example you are using /mnt.