« 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

Here are a collection of Mini-HOWTOs some of which are too short even for that grand title. I keep them around as it is easier to remember where to look these up that to remember the content of the mini-HOWTO

Search

Contents

powered by b2evolution