Hello @Swisstrips! From the screenshot it would seem that you have decided to mount the new drive to /mnt/music
.
This is probably the way to go although I’d mount the drive to /media
. [My setup uses LVM for the system drive (SSD) which has partitioned for /boot
, /boot/efi
, /
(root) etc. and ZFS for my data volumes (spinning disk.)] For my CCTV I added a separate drive as follows.
First step is to correctly identify the drive.
sudo lshw -C disk
Warning: The consequences of misidentifying the drive may be catastophic and result in data loss!
Partition the drive.
sudo fdisk /dev/sda
Enter p
to display the partition table. Use d
to delete existing partitions and c
to create a new partition, e.g.
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p):
Just go with the defaults for whole disk. Press w
to write the changes.
Now assuming your drive is currenlty identified as /dev/sda
go ahead and format it.
sudo mkfs -t ext4 /dev/sda1
Now create mount point.
sudo mkdir /media/music
Now you want to ensure the drive is mounted at boot. So let’s list the drives by UUID:
ls -Flai /dev/disk/by-uuid/
For /dev/sda1
copy the disk ID. Now edit /etc/fstab
and add the following line (replacing the ID with your one.)
sudo nano /etc/fstab
# SATA drive for music
# /media/music was on /dev/sda1
UUID=4b8be667-e62f-4754-85d7-7c80a282dce5 /media/music ext4 nosuid,nodev,nofail 0 0
Finally, mount the drive.
sudo mount -a
That’s all.