Mount
Last updated
Was this helpful?
Last updated
Was this helpful?
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.
First, create a mount point:
Then, we mount the disk to the mount point:
After that, we can unmount the disk by:
There is the case where a process continously occupies the device such that you cannot unmount it.
In this case,we can make use of either one of the two commands to locate the process.
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.