Mount extra disk
Our system is set up to automatically mount the additional hard disk upon Linux installations. This ensures that the drive is readily available under:
/mnt/hdd |
If this solution doesn't work, please read the detailed instructions for manually mounting the hard disk, below.
Linux
The extra disk is normally available as /dev/sdb
.
To check this, you can confirm by running the following command:
lsblk |
Expected output:
root@v16068:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 25G 0 disk └─sda1 8:1 0 25G 0 part / sdb 8:16 0 1000G 0 disk |
If this is the case, the output will confirm that the hard disk is accessible under: /dev/sdb
.
Manual mounting
Format hard disk:
mkfs.ext4 /dev/sdb |
Create a mount point:
mkdir /mnt/hdd |
Mount the hard disk:
mount /dev/sdb /mnt/hdd |
Mount the hard disk automatically at startup:
echo "/dev/sdb /mnt/hdd ext4 defaults 0 0" >> /etc/fstab |
One-Liner
One-liner to mount the disk directly:
mkfs.ext4 /dev/sdb && mkdir /mnt/hdd && mount /dev/sdb /mnt/hdd && echo "/dev/sdb /mnt/hdd ext4 defaults 0 0" >> /etc/fstab |