Mount Hdd or Usb drive in Ubuntu/Rpi/Linux

There is 2 ways to mount a new Hard disk in Ubuntu, you can do it manually or automatic. I will show you the two methods in this post. it is a simple and quick process so let’s get to it.

Step 1. Mount the drive Manually

We are gonna check witch drives you have in you pc

It should give give you a output like this

I will create a folder there is going to be the mount point in /media/ you can edit the name of the mount point but it has to be in /media/

if you want to unmount the drive again then use this command

Step 2. Mount the drive Automatic

we are gonna do the same as in step 1. by creating a folder there is going to be the mount point in /media/ you can edit the name of the mount point but it has to be in /media/

we will have to edit the fstab. You can use your favourite text editor i am going to use nano as it is mine.

I am using a ext4 format on my drive and are therefore specifying ext4 int the content below. if you are using etx3 , fat or ntfs then write that instead of ext4-
add this line in the bottom

I am gonna give my user acces to read and write on the drive.

if you want multiple users to have acces to the drive then enter thiss command in the terminal. They will have acces to read & write, unmount and create and delete folders on the drive

And that should be it. you can try to run

and you should see sdb1 has a mountpoint now /media/my-new-mount-point