umount
DisksFundamentals In real LinuxUnmount a file system
Name: umount = unmount (note the missing n)
This command needs a real Linux system; you can practise it in real Linux mode.
Description
umount detaches a file system and flushes cached data to the device; do it before unplugging a USB drive. "target is busy" means some process still uses it (find it with lsof), including a shell whose current directory is inside.
Syntax
umount [OPTION]... DIR|DEVICECommon options
| -l / --lazy | Lazy: detach once no longer busy |
| -f / --force | Force it (when a network file system is unreachable) |
| -R / --recursive | Unmount it and everything mounted below |
| -a / --all | Unmount every file system listed as mounted (careful) |
Examples
$ sudo umount /mnt
Unmount the file system on /mnt
Explain