-
Create a
git
sub-directory in yourHOME
directory: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
gparted
window, select the hard drive that you want to mount. -
Right-Click
on the partition that you want to mount and selectinformation
. -
Copy the
UUID
of the partition that you want to mount. -
Add this partition as your
~/git
sub-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/git
You 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