Jump to content


blkid


  • Please log in to reply
6 replies to this topic

#1 OFFLINE   réjean

réjean

    Discussion Deity

  • Forum MVP
  • 4,311 posts

Posted 09 March 2012 - 11:52 AM

Hi all!
I just came across this command ( which most of you probably know about already ) that gives me the different UUIDs;
CODE
[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, 09 March 2012 - 11:55 AM.

registered linux user #374889

#2 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum MVP
  • 18,774 posts

Posted 09 March 2012 - 12:02 PM

Yes. That is a handy tool.

Posted ImagePosted ImagePosted ImagePosted ImagePosted Image


#3 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 15,701 posts

Posted 09 March 2012 - 12:14 PM

Also, you should not have to run it as root to get the blkid number:
CODE
╔═ 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"


Posted ImagePosted Image Posted Image
CNI Radio/Archlinux G+/Configs/PGP Key π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#4 OFFLINE   réjean

réjean

    Discussion Deity

  • Forum MVP
  • 4,311 posts

Posted 09 March 2012 - 12:58 PM

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.
registered linux user #374889

#5 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 15,701 posts

Posted 09 March 2012 - 01:03 PM

QUOTE (réjean @ Mar 9 2012, 10:58 AM) <{POST_SNAPBACK}>
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.gif
Posted ImagePosted Image Posted Image
CNI Radio/Archlinux G+/Configs/PGP Key π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#6 OFFLINE   burninbush

burninbush

    Multithreader

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,224 posts

Posted 09 March 2012 - 02:43 PM

QUOTE (réjean @ Mar 9 2012, 08:52 AM) <{POST_SNAPBACK}>
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.

#7 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 15,701 posts

Posted 09 March 2012 - 02:50 PM

QUOTE (burninbush @ Mar 9 2012, 12:43 PM) <{POST_SNAPBACK}>
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.
Posted ImagePosted Image Posted Image
CNI Radio/Archlinux G+/Configs/PGP Key π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users