Skip to content

What is UUID used in fstab

Our Score
Click to rate this post!
[Total: 0 Average: 0]

In this tutorial we are going to learn what is UUID and how UUID used in fstab.

Here we start now

People who are used to the new releases of Ubuntu might be aware of the thing called UUID. Because Ubuntu have completely started using UUID as the method to uniquely identify disc drives/partitions on the machine.

Now on my machine(Ubuntu 11.10), i have my fstab entries

Here you can see

Now what does that UUID thing in the image means? and why is Ubuntu guys shifting towards the UUID thing, from the normal naming conventions we previously used like

/dev/sda1

/dev/sda2

UUID stands for Universally Unique Identifiers

its an identification tag given to every device drives on the machine to uniquely identify the exact drive/partition.

How UUID’s look like

There are several major reasons for why Linux is shifting towards UUID’s these days. I will explain them in short.

  1. Names assigned by the machine to devices are not always persistent. Sometimes attaching one more extra hard drive, will change the names previously given by the kernel.

  2. UUID’s can assure you that the device you are trying to access is the exact device you intended

  3. No matter what number of disks and what type of disks are attached to the machine, the kernel will uniquely identify the exact device by its unique UUID number

Now lets understand how can we determine the uuid of a device/partition.

Or you can follow this method to determine the UUID’s of all currently available partitios.

Or you can also get the UUID by dump2fs command.

But the output of the command will be too long, so use pipe less to see UUID entry of the partition.

Ubuntu is even using this UUID thing, for the grub disk identification. if you open the file /boot/grub/grub.cfg, you can find the entry like the below(in my case).

So if you want to add a new entry for a partition in /etc/fstb then you need to identify the UUID by blkid command as shown in this tutorial and then paste that uuid of the required partition in fstab with mount point..and rest is known.

If you learn something about from this post then make sure you
like this post and follow my website to learn some intresting topic about the kali linux,website desining,windows,virtualization,cyber security and much more intresting topics.

If you want to learn about cyber security in detail and if you want practical training of cyber security with detail notes so check this product it will give you the best knowledge with practical training.

Cyber Security Training Notes

Leave a Reply

Discount Offer

Now Get 67% Discount

On Cyber Security Training                                                       Notes  

Click here  To Purchase

%d bloggers like this: