Next up, you'll have to find the HDD disk. You can do this by executing the following command:
lsblk
And you'll be presented with an output similar to the one below:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 368K 1 disk
sr0 11:0 1 1024M 0 rom
vda 252:0 0 14G 0 disk
├─vda1 252:1 0 1M 0 part
├─vda2 252:2 0 128M 0 part /boot/efi
└─vda3 252:3 0 13.9G 0 part /
vdb 252:16 0 2T 0 disk
Within that output, looks at the capacities of the drives to determine which disk the your HDD one. In our case, it's a 2TB one, which is the vdb one. Please either remember this, or note this down somewhere.
3. Format the drive
Next up, you'll have to format the drive to the ext4 format with the following command:
Change vdX to the name of the drive above
4. Mount the drive
Afterward, please make a new directory, where you'll mount your disk:
Then mount that formatted drive there:
Then verify that it's mounted via:
The output of that command should have a line similar to the following:
5. Permanently mounting the HDD drive
Start by getting the UUID of the drive from the following command:
Which will output something like the following:
Please copy everything that is inside the quotation marks after UUID=.
Then you'll need to edit fstab:
Using vi (vim) Editor
To get to edit mode, press I on your keyboard.
To exit edit mode, press Esc on your keyboard.
You can use arrow keys to navigate.
To save changes, first make sure you're not in the edit mode and then, press : on your keyboard, then type w and then press Enter .
To exit the editor, press : on your keyboard, then type q and then press Enter .
And within, on a new line at the bottom add the following: