Thoughts, stories and ideas.

When using features like Ubuntus auto-mount, your system will mount USB-devices based on their label, and to avoid weird mount-points, like for example /media/[user]/c658e045-4bac-4d1b-8504-419ca6e72663 you can define a label for your volumes and make it auto-mount in /media/[user]/your-label.

Please note, this tools only works on ext2/ext3/ext4 file systems.

To label a volume, you can use a built-in filesystem tool called e2label. e2label will display or change the filesystem label on an ext2, ext3, or ext4 filesystem. Quote: Man-pages

It’s pretty simple, just type e2label followed by your volume and then the new label.

e2label /dev/sdx1 seagate_6tb_usb

This will rename our partition /dev/sdx1 to "seagate_6tb_usb". And now, if auto-mount is enabled, it will always be mounted as the label suggest.

Using fstab with labels

You can also use labels in /etc/fstab, to mount it automatically using the disk label.

You can update the /etc/fstab file as follows:

LABEL=seagate_6tb_usb /media/6tb/ ext4 defaults 0 0

This will mount the USB-disk labeled "seagate_6tb_usb" to the mount-point /media/6tb.