1. List my new drive
sudo blkid /dev/sdb
You will see something similar with this:
/dev/sdb: LABEL=”NewHDD” UUID=”5d6c8f68-dcc8-4a91-a510-9bca2aa71521″ TYPE=”ext4″
2. Add the new hard disk on the fstab for auto mount after reset
sudo nano /etc/fstab
Add a new line at the bottom with the following content and Substitute the values of UUID and path with your own values in place of “5d6c8f68-dcc8-4a91-a510-9bca2aa71521” and “/mnt/NewHDD” respectively. Then, save the changes by pressing CTRL+X, followed by Y and ENTER.
/dev/disk/by-uuid/5d6c8f68-dcc8-4a91-a510-9bca2aa71521 /mnt/NewHDD auto nosuid,nodev,nofail,x-gvfs-show,x-gvfs-name=NewHDD 0 0
3. Mount the drive
sudo mount -a
if the result will be:
mount: /mnt/NewHDD: mount point does not exist.
You must create mount point sudo mkdir /mnt/NewHDD then use again: sudo mount -a
4. Change owner and group of the new hard disk using next command:
sudo chown user:user -R /mnt/NewHDD