If you have the following fstab
entry and want to mount the partition using the UUID
instead of device name, you just need to add UUID=
followed by you partition’s UUID
in your fstab
and you’re done.
/dev/sda4 /home ext4 defaults 0 2
The following is an example of same entry, using UUID
.
UUID=860e4946-19a2-40ee-837a-4eca537b0ec1 /home ext4 defaults 0 2
Most major Linux distributions create and assign UUID on disk partitions during system installation, which is then used as an identifier to mount the partition in /etc/fstab. Once set, …
Read More
You need to mount the disks or partitions that you want to use to a folder or mount point before the data within it is accessible. From there, you'll …
Read More
Disks and partitions need to be formatted before they could be mounted and used. Linux by default supports several filesystems, which would come with their pros and cons. Some …
Read More
There are a few ways to get disk partition UUID (Universally Unique Identifier) in Linux, but some requires installation of additional software or packages.
The following 2 method would normally work on any Linux system.