Mounting another disk on Linux

First, lets see what disks are available:

sudo fdisk -l

Now, make a directory where you will mount this disk.

sudo mkdir /media/2tb

Now, lets mount the disk to the new folder.

sudo mount -t auto /dev/sdb2 /media/2tb

And is done! Now lets make it automount on every boot. Lets edit fstab:

sudo nano /etc/fstab

Add this to the bottom of the file:

/dev/sdb2 /media/2tb auto noatime 0 0

Press CTRL+X to exit, press Y to save, and overwrite the existing file.
Excelsior! Your disk will always automount on every boot.

Leave a Reply

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