« HOWTO:Get my USB Logitech Rumblepad working.HOWTO: Install VMware tools without a GUI or X »

HOWTO: Find out the label/UUID/ID for your disk

02/11/08

HOWTO: Find out the label/UUID/ID for your disk

ls /dev/disk/by-label -lah  
ls /dev/disk/by-id -lah  
ls /dev/disk/by-uuid -lah 

OR

sudo debugreiserfs /dev/sda2

and to set it to something or something else, but the partition must not be mounted.

sudo reiserfstune --label LABEL /dev/sda2

To change the UUID you can use the following. To generate a new UUID use the command below.

uuidgen

To change the uuid on ext2, ext3 or ext4 partitions use something like the following, remember to change the X to the correct drive and N to the correct partition number

sudo tune2fs /dev/sdXN -U (output from uuidgen)

and for reiserfs you can use either of these

sudo reiserfstune /dev/sdXN -U (output from uuidgen) 
sudo reiserfstune /dev/sdXN -U random

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
What can birds and aeroplanes both do?
antispam test