I would install nano, this is a text editor on Linux which is MUCH easier to use for beginners than vi. You can do this by using “sudo apt-get install nano” or “yum install nano” depending on your distribution of Linux.
First we will need to find where in /dev your drive is being displayed. You can do this by running:
which will display all the drives currently connected to your Linux machine. The easiest way to see which drive you want is to check the size of the drive. For example, I have connected a 500GB hard drive so when I run “lsblk” I get the following:
From this screenshot you can already see that I have mounted the drive partition I require, which in my case is sda3.
Now you need to create a directory in the mnt directory as this is were you should mount drive in Linux to keep things tidy. You can do this by using:
sudo mkdir /mnt/library
I have called by directory “library” but you can call it whatever you want.
Now we need to configure this in the fstab file which basically tells the system what to do with connected drives once the system starts.
You can open the fstab file by using:
sudo nano /etc/fstab
This should give you something similar to below:
Now go to the bottom of the file and add something similar to the one I have added, you can see this below:
Just for reference the line I have added is:
“/dev/sda3 /mnt/library vfat users,umask=00 0 0”
Make sure to check the directory locations as you might have called your something else and your drive label might be different.
You can now check in your /mnt/library directory and you should see that your drive has been mounted and you can delete and add new files to the location.