Skip to content

Mount disks

Simple ext4 disk mount

  • Check disks with
Bash
lsblk -f
Bash
mount -t ext4 /dev/sdc1 /backup/

In fstab

  • This will mount disk on boot/reboot.
Bash
#device        mountpoint             fstype    options  dump   fsck

/dev/sdc1    /backup    ext4    defaults    0    1
  • Use UUID

Blkid-example

Bash
sudo blkid /dev/sdc1
Bash Session
/dev/sdc1: LABEL="backup" UUID="f8d290a6-8078-406c-8a1d-c1c82c5b560c" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="backup-external" PARTUUID="804da48c-e966-4144-b05d-3a298185e4e2"
  • Add in fstab
Bash
UUID=f8d290a6-8078-406c-8a1d-c1c82c5b560c  /backup    ext4    defaults    0    1