Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 12603  / 3 Years ago, tue, may 4, 2021, 9:57:57

I did a small research before making the question,but I couldn't find an answer.My question is how can I change the uuid (universally unique identifier) of a hard drive disk.I am asking this because every time I want to access a hard drive from terminal I have to find these random uuid which the system has generated automatically which are quite long.Also,I want to know the dangers of making this kind of change.


More From » hard-drive

 Answers
7

You can change a partition UUID or label, how to do so is dependent on the file system.



For changing the label see



https://help.ubuntu.com/community/RenameUSBDrive



For changing the uuid, you can use uudigen and tune2fs



uuidgen

tune2fs /dev/hdb1 -U `uuid`


Change "/dev/sdb1" to the device you wish to change the uuid on.



You almost certainly will need to update /etc/fstab if you change the UUID on a partition that is mounted by fstab, such as / or /home or /swap


[#40046] Thursday, May 6, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
horicgly

Total Points: 36
Total Questions: 126
Total Answers: 104

Location: Iceland
Member since Thu, Dec 1, 2022
1 Year ago
;