Setting up a secondary drive

For example, for my home HDD I use the following entry in /etc/fstab:

UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /home ext4 defaults,noatime 0 2

The first three columns are obvious, it’s UUID, mountpoint, filesystem.

To find out the UUID of the drive I prefer lsblk -f instead of bklid (the readout is more clear to me, idk).

Regarding mountpoint, some people prefer to mount stuff in /mnt and then symlink it, but I just mount it directly where it needs to go. Works fine.

The filesystem I use on all of my drives is ext4, it’s good enough for me. :man_shrugging: If you are not sure which filesystem is on your drive, the same command as above, lsblk -f will let you know.

For normal drives I always use defaults,noatime as options, for dump I always use 0 and for pass (fsck order) always 2 (root drive should have 1, swap and efi 0, everything else 2).

That’s pretty much all one needs to do to add a secondary drive.

8 Likes