Compdigitec Labs

« | Home | »

How to add entries by UUID to /etc/fstab

By admin | June 30, 2010

Normally in Linux, one would be able to add entries to the /etc/fstab file by using the standard /dev/xdx notation. However, what happens when we add or remove some partitions and hard disks? In this case, it would completely throw off the entries resulting in you not being able to access your partition. As a result, it is also possible to mount using UUID (Universally Unique Identifier)s. This way you will still be able to access your partitions even if they are shuffled around.

To get the UUID of a partition:

blkid /dev/<em>xxxx</em> -s UUID

and it will output something like this:

/dev/<em>xxxx</em>: UUID="1fa6e8df-f05a-4c7c-b30a-cd3c1b2bcebd"

and then you can use the UUID to add a line in /etc/fstab:

UUID=1fa6e8df-f05a-4c7c-b30a-cd3c1b2bcebd	/media/mountpoint	ext4	defaults	0	1

If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!

Topics: Linux | 8 Comments »

8 Responses to “How to add entries by UUID to /etc/fstab”

  1. ตู้เชื่อม Says:
    November 9th, 2024 at 03:04

    … [Trackback]

    […] Read More to that Topic: compdigitec.com/labs/2010/06/30/how-to-add-entries-by-uuid-to-etcfstab/ […]

  2. Darknet Links Says:
    December 1st, 2024 at 09:38

    … [Trackback]

    […] Find More to that Topic: compdigitec.com/labs/2010/06/30/how-to-add-entries-by-uuid-to-etcfstab/ […]

  3. เรียนสัก Says:
    December 1st, 2024 at 22:25

    … [Trackback]

    […] Information on that Topic: compdigitec.com/labs/2010/06/30/how-to-add-entries-by-uuid-to-etcfstab/ […]

  4. Wedding Planner in France Says:
    December 5th, 2024 at 20:47

    … [Trackback]

    […] Information on that Topic: compdigitec.com/labs/2010/06/30/how-to-add-entries-by-uuid-to-etcfstab/ […]

  5. เว็บตรงสล็อต Says:
    December 15th, 2024 at 22:56

    … [Trackback]

    […] Find More here to that Topic: compdigitec.com/labs/2010/06/30/how-to-add-entries-by-uuid-to-etcfstab/ […]

  6. SHOPEE สล็อต Says:
    December 16th, 2024 at 23:18

    … [Trackback]

    […] There you will find 32091 more Info to that Topic: compdigitec.com/labs/2010/06/30/how-to-add-entries-by-uuid-to-etcfstab/ […]

  7. link Says:
    December 17th, 2024 at 09:00

    … [Trackback]

    […] Read More on to that Topic: compdigitec.com/labs/2010/06/30/how-to-add-entries-by-uuid-to-etcfstab/ […]

  8. เว็บสล็อตแตกดี Says:
    December 17th, 2024 at 18:16

    … [Trackback]

    […] Information to that Topic: compdigitec.com/labs/2010/06/30/how-to-add-entries-by-uuid-to-etcfstab/ […]

Comments