-
Create a
gitsub-directory in yourHOMEdirectory:sudo mkdir $HOME/git && \ sudo chown $USER:$USER $HOME/git -
Install
gparted.sudo apt-get install -y gparted -
Start
gparted.sudo gparted -
In the top-Right corner of the
gpartedwindow, select the hard drive that you want to mount. -
Right-Clickon the partition that you want to mount and selectinformation. -
Copy the
UUIDof the partition that you want to mount. -
Add this partition as your
~/gitsub-directory:UUID=f3e3c791-9bec-410c-bcc6-7e88a2efd226 && \ echo "UUID=\"${UUID}\" ${HOME}/git ext4 defaults 0 0" | sudo tee -a /etc/fstab && \ sudo mount -a -
Confirm that it allocated properly:
sudo df -h $HOME/gitYou should see output that looks like this:
Filesystem Size Used Avail Use% Mounted on /dev/sdb1 1.8T 77M 1.7T 1% /home/tony/git