Jump to content

blkid


réjean

Recommended Posts

Hi all!

I just came across this command ( which most of you probably know about already ) that gives me the different UUIDs;

[rejean@localhost ~]$ su
Password: 
[root@localhost rejean]#blkid
/dev/sda5: UUID="811287af-bf38-4283-a98c-f9ee0b50156e" TYPE="swap" 
/dev/sda2: UUID="fb738529-32d4-4fb2-bb78-ed0133ce3124" TYPE="ext3" 
/dev/sda6: UUID="2c2df885-c0fa-4f6a-9358-8b49c597448d" TYPE="ext3" 
/dev/sda7: LABEL="/" UUID="57600f4c-54b1-4160-8802-c91fd3a0ac6f" TYPE="ext3" 
/dev/sda8: LABEL="arch" UUID="f15dc35a-4c31-410f-be8c-5c1ed4e0e69f" TYPE="ext3" 
/dev/sda9: LABEL="archhome" UUID="ff2e1413-9bd0-4666-acb4-5e3d57188864" TYPE="ext3" 
/dev/sda10: UUID="5ee8a944-e21e-43e9-840d-f465271dee09" TYPE="ext3" 
/dev/sda11: UUID="2B32-81E1" TYPE="vfat" 
/dev/sdb1: UUID="08E47FFB6129920C" TYPE="ntfs" 
/dev/sdb2: UUID="c4f611e6-8dad-4f3f-97a5-7ee0a2005ea2" TYPE="swap" 
/dev/sdb3: UUID="481426bb-fa3e-44cc-a266-c84297f2803e" TYPE="ext4" 
/dev/sdb5: UUID="ee0c4924-38ac-4d34-9df0-66382d3809fc" TYPE="ext4" 
/dev/sdb6: UUID="2d221787-38ab-41f9-bf46-65701a834bdf" TYPE="ext4" 
/dev/sdb7: UUID="4ddf18a8-c8be-4af8-a2d9-924599a1b13e" TYPE="ext4" 
/dev/sdb8: UUID="077c8180-a635-4654-b1ee-2eecd92c9a60" TYPE="ext4" 
/dev/sdb9: UUID="4481f156-86d9-429c-9a3d-ee2d44644ada" TYPE="ext4" 
/dev/sdb10: UUID="32299FED1248C8F3" TYPE="ntfs" 
/dev/sda1: UUID="048201C74C181A59" TYPE="ntfs" 
[root@localhost rejean]#

 

I thought I would share it with you.

 

P.S. I don't know why but no matter what I install on /sda8 and /sda9 ( like right now it is Mandriva 2011 which I will replace today with CentOS 6.2 ) they keep being called /arch and /archhome. Not that it frustrates me, just wondering.

Edited by réjean
Link to comment
Share on other sites

securitybreach

Also, you should not have to run it as root to get the blkid number:

╔═ comhack@Cerberus 09:59 AM 
╚═══ ~-> blkid
/dev/sda1: UUID="F8685B2D685AE9C0" TYPE="ntfs" 
/dev/sda2: UUID="ede3bd20-4177-4bca-b6ae-40b00d79dfd2" TYPE="ext4" 
/dev/sda3: UUID="93723ccc-25e8-4483-ba61-dd8854528774" TYPE="ext4" 
/dev/sda4: UUID="f1163b53-6a30-47fc-8ae8-a5f3b9940897" TYPE="swap" 
/dev/sdb1: UUID="3067b591-934e-4c73-a4a7-e5d9da6c267a" TYPE="ext4" 
/dev/sdb2: UUID="ce9619d8-3c05-4897-962a-6929b2995737" TYPE="ext4" 
/dev/sdb3: UUID="a97856fe-abca-4dd6-b418-e164818c9016" TYPE="ext4" 
/dev/sdc1: LABEL="MEDIA" UUID="cb0d6b0f-1c2a-46c8-99eb-bbe4e1bcb1b5" TYPE="ext4"

 

Link to comment
Share on other sites

good point about not having to get the info as root Josh. I was going to do something else and then I remembered reading about blkid last night so I decided to give it a try while I was in a terminal.

Link to comment
Share on other sites

securitybreach
good point about not having to get the info as root Josh. I was going to do something else and then I remembered reading about blkid last night so I decided to give it a try while I was in a terminal.

Understood :thumbsup:

Link to comment
Share on other sites

P.S. I don't know why but no matter what I install on /sda8 and /sda9 ( like right now it is Mandriva 2011 which I will replace today with CentOS 6.2 ) they keep being called /arch and /archhome. Not that it frustrates me, just wondering.

 

My instant guess is that at some time in the past you labeled them that way (or maybe an Arch install script did it), and subsequent installs have not changed the partition labels.

 

Try running #cfdisk /dev/sda -- it should reveal the labels.

Link to comment
Share on other sites

securitybreach
My instant guess is that at some time in the past you labeled them that way (or maybe an Arch install script did it), and subsequent installs have not changed the partition labels.

 

Try running #cfdisk /dev/sda -- it should reveal the labels.

Actually that sounds more like another distro labeled them that ways as Arch does not label your partitions or it does not on any of my machines.

 

For instance, when I installed Foresight it labeled the Arch partitions as yours above but only inside Foresight.

 

Now that I think about it, it may or may not of been Foresight that did that.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...