Skip to content

Mounting NFTS external drive

Cockpit summary

You need to install nfts support on linux

sudo apt update
sudo apt install ntfs-3g

To mount the already formated drive

Find the UUID

blkid

or

lsblk -o NAME,MOUNTPOINT,UUID,FSTYPE,SIZE

ex output

/dev/sdb1: UUID="1234-ABCD" TYPE="ext4"

create a permanent mount

sudo mkdir -p /mnt/external_drive

edit fstab to ensuure persistent mounting

sudo nano /etc/fstab

add this line

UUID=1234-ABCD  /mnt/external_drive  ext4  defaults,nofail,x-systemd.automount  0  2

Replace ext4 with the format of the drive.

To format the drive, for example, for ntfs

sudo mkfs.ntfs /dev/sdd

replace sdd with the actual drive found in the first two commands.

Comments