Mounting the drives

Linux has a directory called /mnt where you create mount points for various hard
drives or other network connections. There is also a directory called /media where
you can mount drives. This is a convention used throughout Linux so that people
have an idea of how to organize all these files. These are just normal directories;
and if you wish, you can create your own directory called /nas, and mount all
your drives associated with Network Attached Storage (NAS) there.

I will create a directory called /nas and mount my USB drive there. Then, I will
create a subdirectory called USB001. We will also create directories that we will
use for sharing as shown in the following command line snippet:

mkdir /nas
cd /nas
mkdir USB001
sudo mount -t ext4 -v /dev/sda1 /nas/USB001/
cd /USB001
mkdir public
mkdir work

No comments:

Post a Comment