How to set disk partition UUID in Linux

How to set disk partition UUID in Linux

If you prefer to mount your disk partition using UUID (or for any other reason), you can set the UUID by using the tune2fs command.

You can use any unique string as the argument for the -U parameter, or you can use `uuid`, given that you have uuid package installed.

shakir@anduril:~$ sudo tune2fs /dev/hdb1 -U `uuid`

You'll need to have root permission for this to work.

comments powered by Disqus