How to mount and unmount a drive in linux

How To Mount A Drive In Linux

mount /dev/partitionId /some/mounting/point
eg. #mount /dev/sda2 /mnt

The mounting point path must already be created with proper permissions. So a more likely flow of commands would be

mkdir /some/mounting/point
chmod 777 /some/mounting/point
mount /dev/partitionId /some/mounting/point

How To Unmount A Drive In Linux

umount /dev/partitionId
eg. #umount /mnt

This command is very easy to type wrong. It is NOT unmount. Take another closer look if thats what you saw at first. It is umount — no n here!

Leave a Comment

Your email address will not be published. Required fields are marked *

CAPTCHA * Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top