Mount
The mount
command mounts a storage device or file system, making it accessible and attaching it to an existing directory structure. This attached directory is called a mount point. In this way, users can access a storage device or filesystem just like a normal directory.
Remember to unmount after using, otherwise the file system is not fully synchonized, which will cause loss of data.
Steps
First, create a mount point:
Then, we mount the disk to the mount point:
After that, we can unmount the disk by:
How to solve device busy problem (Study by yourself)
In this case,we can make use of either one of the two commands to locate the process.
Method 1: lsof
Method 2: fuser
By these two commands, you can know tail
with PID 11793 is occupying the resource. By killing it usingkill -9
, you can umount the resource successfully.
Last updated