To use a disk partition or block device in Linux, it must first be mounted. There are various ways to mount a partition, such as by device or partition name, partition label, or UUID. Mounting via UUID is the most reliable method because the UUID remains consistent, unlike a device name. Additionally, using UUIDs helps avoid potential name conflicts that can occur with labels.
You can manually mount a disk partition or block device in Linux using the UUID through the terminal and add the relevant entries to the fstab file.
$ sudo mkdir -p /mnt/uuidtest
$ sudo mount UUID=39ea80c4-e748-47eb-835c-64025de53e26 /mnt/uuidtest
$ sudo umount /mnt/uuidtest
$ sudo vi /etc/fstab
UUID=39ea80c4-e748-47eb-835c-64025de53e26 /mnt/uuidtest ext4 defaults 0 1
$ sudo mount /mnt/uuidtest
Comment anonymously. Login not required.