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 | 13 Comments »

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

  1. Firearms For Sale Says:
    March 25th, 2022 at 23:07

    … [Trackback]

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

  2. sbo Says:
    April 5th, 2022 at 20:46

    … [Trackback]

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

  3. beer777 Says:
    April 25th, 2022 at 19:52

    … [Trackback]

    […] There you can find 15032 additional Info on that Topic: compdigitec.com/labs/2010/06/30/how-to-add-entries-by-uuid-to-etcfstab/ […]

  4. Fortnite hacks Says:
    June 17th, 2022 at 19:49

    … [Trackback]

    […] There you can find 80107 additional Info on that Topic: compdigitec.com/labs/2010/06/30/how-to-add-entries-by-uuid-to-etcfstab/ […]

  5. sbo Says:
    June 19th, 2022 at 15:46

    … [Trackback]

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

  6. สล็อตวอเลท ไม่มีขั้นต่ำ Says:
    July 27th, 2022 at 19:52

    … [Trackback]

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

  7. sbo Says:
    August 10th, 2022 at 04:15

    … [Trackback]

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

  8. s&w model 638 Says:
    August 12th, 2022 at 19:20

    … [Trackback]

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

  9. visit here Says:
    August 28th, 2022 at 16:47

    … [Trackback]

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

  10. สล็อต pg เว็บตรง Says:
    September 8th, 2022 at 06:12

    … [Trackback]

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

  11. Coal merchant Says:
    September 22nd, 2022 at 19:04

    … [Trackback]

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

  12. spellcasting.biz/prayer-to-renew-love/ Says:
    September 26th, 2022 at 01:54

    … [Trackback]

    […] Here you can find 9914 more Info on that Topic: compdigitec.com/labs/2010/06/30/how-to-add-entries-by-uuid-to-etcfstab/ […]

  13. garmin venu 2 Kaufen Says:
    November 27th, 2022 at 18:17

    … [Trackback]

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

Comments