How to Find PartUUID

This how to helps you to learn finding the PartUUID in Linux or other Unix based systems. 

How To Find PARTUUID Using lsblk

How To Find PARTUUID

Index Of How To Find PartUUID

Background of How to Find PartUUID

In the intricate world of Linux systems, navigating and managing disk partitions is an essential skill for administrators and enthusiasts alike. One crucial piece of information when dealing with partitions is the PartUUID (Partition Universally Unique Identifier). In this blog post, we will delve into the significance of PartUUID, its role in Linux, and how to effectively find it.

The PartUUID is a unique identifier assigned to a partition on a disk in a Linux system. Unlike traditional device names (e.g., /dev/sda1), PartUUIDs provide a persistent and globally unique identification for partitions. This proves especially valuable when configuring system settings, managing storage, or creating custom scripts.

How To Find PartUUID

There are multiple methods to find PartUUID. Hereby I am sharing four with you:

  1. Using the blkid command
    The blkid command is a powerful utility that provides information about block devices, including PartUUIDs. Open your terminal and enter:
    sudo blkid

    This command will display a list of all block devices along with their attributes, including PartUUIDs.
  2. Checking the /dev/disk/by-partuuid/ Directory
    Linux maintains a directory with symbolic links to partitions based on their PartUUIDs. Navigate to this directory using the following command:
    ls -l /dev/disk/by-partuuid/

    This will reveal the symbolic links associated with each PartUUID.
  3. Reviewing the /etc/fstab File
    The /etc/fstab file contains information about disk drives and partitions. Open the file with a text editor like nano or vim:
    sudo nano /etc/fstab

    Look for the PartUUID associated with your partitions in the file.
  4. Using the tune2fs Command
    For ext2, ext3, or ext4 file systems, you can use the tune2fs command to display the PartUUID:
    sudo tune2fs -l /dev/sdXY | grep UUID

    Replace /dev/sdXY with the appropriate partition identifier.

Additional Information

Understanding how to find the PartUUID in Linux is an essential skill for anyone managing storage and configuring system settings. Whether you are a seasoned system administrator or a Linux enthusiast, harnessing the power of PartUUIDs enhances the efficiency and reliability of your Linux-based systems. Experiment with the methods outlined in this blog post, and empower yourself to navigate the intricate landscape of Linux partitions with confidence.

Follow me

It would be amazing if you follow my myhowto.blog. To my blog is actually easy! You can leverage on

  • Click to follow me on Twitter
  • Bookmark this page and comeback from time to time

Help and Comments

I am really looking forward for you to contact me if for example you found a better option or other idea then in this how to. Also, please touch base if you found an error or anything not working or if you have something that you would love to be added to the myhowto.blog. Simply click this link to touch base with me.

Linking Or Recommending The How To Or The myhowto.blog

I would love to see you are recommending this how to or link it to your website. Also, I would love if you link or recommend the whole myhowto.blog. Please feel free to do so! In case you like to touch base regarding this topic with me, then simply click this link. I look forward!

 

Disclaimer: I have partially leveraged on ChatGPT for this HowTo.