Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Installation & Upgrades
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Installation & Upgrades
For questions about upgrading and installation of your new Ubuntu OS.

 
Thread Tools Display Modes
Old April 21st, 2007   #1
Patrick K
Skinny Soy Caramel Ubuntu
 
Join Date: Dec 2006
Beans: 667
Ubuntu 7.04 Feisty Fawn
HOW TO: Find the UUID for your partitions

Type "blkid" in a terminal. It returns the UUID for all partitions.
Patrick K is offline   Reply With Quote
Old April 21st, 2007   #2
jdong
Ultimate Coffee Grinder
 
jdong's Avatar
 
Join Date: Oct 2004
Location: Cambridge. MA
Beans: 5,063
Ubuntu 8.10 Intrepid Ibex
Re: HOW TO: Find the UUID for your partitions

Also, vol_id -u /dev/real_name returns the UUID of any block device

(blkid fails on NTFS drives)
jdong is offline   Reply With Quote
Old April 21st, 2007   #3
Patrick K
Skinny Soy Caramel Ubuntu
 
Join Date: Dec 2006
Beans: 667
Ubuntu 7.04 Feisty Fawn
Re: HOW TO: Find the UUID for your partitions

I tried your command and got this in return:

"error open volume"

Both with properly mounted partitions and unmounted volumes. Nothing was visibly running that would have these partitions open. Although I don't know that that should matter.
Patrick K is offline   Reply With Quote
Old April 21st, 2007   #4
Rui Pais
Chocolate-Covered Ubuntu Beans
 
Rui Pais's Avatar
 
Join Date: Oct 2004
Beans: 2,336
Re: HOW TO: Find the UUID for your partitions

Quote:
Originally Posted by Patrick K View Post
I tried your command and got this in return:

"error open volume"

Both with properly mounted partitions and unmounted volumes. Nothing was visibly running that would have these partitions open. Although I don't know that that should matter.
with the vol_id you need administrative powers. Run it with sudo.
__________________
___________________________________
ESTRAGON: We've lost our rights?
Rui Pais is offline   Reply With Quote
Old April 21st, 2007   #5
Patrick K
Skinny Soy Caramel Ubuntu
 
Join Date: Dec 2006
Beans: 667
Ubuntu 7.04 Feisty Fawn
Re: HOW TO: Find the UUID for your partitions

With sudo I get "unknown vloume type".
Patrick K is offline   Reply With Quote
Old April 21st, 2007   #6
chakkaradeep
Way Too Much Ubuntu
 
chakkaradeep's Avatar
 
Join Date: Jan 2007
Location: Dunedin, New Zealand
Beans: 185
Ubuntu 7.10 Gutsy Gibbon
Send a message via MSN to chakkaradeep Send a message via Yahoo to chakkaradeep Send a message via Skype™ to chakkaradeep
Re: HOW TO: Find the UUID for your partitions

Quote:
Originally Posted by Patrick K View Post
With sudo I get "unknown vloume type".
I think you are doing some mistake, Here is my output,

Code:
chaks@chaks-laptop:~$ sudo vol_id /dev/sda4
ID_FS_USAGE=filesystem
ID_FS_TYPE=ext3
ID_FS_VERSION=1.0
ID_FS_UUID=961c6d4f-79c9-4edf-a774-d394c7384fa7
ID_FS_LABEL=
ID_FS_LABEL_SAFE=
__________________
With Regards,
C.C.Chakkaradeep
My Blog
chakkaradeep is offline   Reply With Quote
Old April 21st, 2007   #7
Dirty Ole
Just Give Me the Beans!
 
Dirty Ole's Avatar
 
Join Date: Sep 2006
Beans: 38
Ubuntu 7.10 Gutsy Gibbon
Send a message via Yahoo to Dirty Ole
Re: HOW TO: Find the UUID for your partitions

I was looking for this.
Dirty Ole is offline   Reply With Quote
Old April 21st, 2007   #8
chakkaradeep
Way Too Much Ubuntu
 
chakkaradeep's Avatar
 
Join Date: Jan 2007
Location: Dunedin, New Zealand
Beans: 185
Ubuntu 7.10 Gutsy Gibbon
Send a message via MSN to chakkaradeep Send a message via Yahoo to chakkaradeep Send a message via Skype™ to chakkaradeep
Re: HOW TO: Find the UUID for your partitions

Quote:
Originally Posted by Patrick K View Post
Type "blkid" in a terminal. It returns the UUID for all partitions.
I think it does not return UUID for Windows Partition. To be more clear, here is the output,

Code:
chaks@chaks-laptop:~$ sudo blkid 
/dev/sda1: TYPE="ntfs" 
/dev/sda3: UUID="faff795a-7767-4e57-bc84-4ea62fd4c2f1" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sda4: UUID="961c6d4f-79c9-4edf-a774-d394c7384fa7" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sda5: TYPE="ntfs" 
/dev/sda6: TYPE="ntfs" 
/dev/sda7: UUID="f6ba4a42-67e2-4d68-acc5-a1424e1d5082" TYPE="swap" 
/dev/sda8: UUID="b4456ccd-3ae9-44fd-9499-0a33fbae8683" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sdb1: SEC_TYPE="msdos" UUID="0000-0000" TYPE="vfat" 
chaks@chaks-laptop:~$ sudo vol_id /dev/sda1
ID_FS_USAGE=filesystem
ID_FS_TYPE=ntfs
ID_FS_VERSION=3.1
ID_FS_UUID=46E435E7E435D9BF
ID_FS_LABEL=
ID_FS_LABEL_SAFE=
The vol_id does give UUID for /dev/sda1 than blkid
__________________
With Regards,
C.C.Chakkaradeep
My Blog
chakkaradeep is offline   Reply With Quote
Old April 21st, 2007   #9
Patrick K
Skinny Soy Caramel Ubuntu
 
Join Date: Dec 2006
Beans: 667
Ubuntu 7.04 Feisty Fawn
Re: HOW TO: Find the UUID for your partitions

With vol_id I still just get
Quote:
pk@pk-desktop:~$ sudo vol_id /dev/sda5
/dev/sda5: unknown volume type
With blkid this is what I get
Code:
pk@pk-desktop:~$ blkid
/dev/sda1: LABEL="WIN98" UUID="0000-0E54" TYPE="vfat" 
/dev/sda5: LABEL="ELF" UUID="0000-0E74" TYPE="vfat" 
/dev/sda6: LABEL="FACTOID" UUID="0000-0E75" TYPE="vfat" 
/dev/sda7: LABEL="GADZOOKS" UUID="0000-0E5F" TYPE="vfat" 
/dev/sda8: UUID="e1484135-3eb4-4f17-b03c-5e1e0d88b480" TYPE="swap" 
/dev/sdb1: LABEL="DIONYSUS" UUID="0000-0ED9" TYPE="vfat" 
/dev/sdb6: LABEL="JOVE" UUID="0000-0D8B" TYPE="vfat" 
/dev/sdb7: LABEL="FAVS" UUID="0000-0ED9" TYPE="vfat" 
/dev/sdb8: LABEL="FAVS2" UUID="0000-0D85" TYPE="vfat" 
/dev/sdb9: LABEL="MOVIES" UUID="0000-0D47" TYPE="vfat" 
/dev/sda9: LABEL="HAM" UUID="4598-9D46" TYPE="vfat" 
/dev/sda10: UUID="063da081-4ed5-4c75-a789-81de30b946bb" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sda11: UUID="9f8d6e0b-f3b0-40e3-9e26-b3dcc3f84410" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sdb5: SEC_TYPE="msdos" LABEL="TEMP" UUID="0000-0DAA" TYPE="vfat"
Blkid shows vfat volumes on my system.
Patrick K is offline   Reply With Quote
Old April 21st, 2007   #10
chakkaradeep
Way Too Much Ubuntu
 
chakkaradeep's Avatar
 
Join Date: Jan 2007
Location: Dunedin, New Zealand
Beans: 185
Ubuntu 7.10 Gutsy Gibbon
Send a message via MSN to chakkaradeep Send a message via Yahoo to chakkaradeep Send a message via Skype™ to chakkaradeep
Re: HOW TO: Find the UUID for your partitions

Quote:
Originally Posted by Patrick K View Post
With vol_id I still just get

With blkid this is what I get
Code:
pk@pk-desktop:~$ blkid
/dev/sda1: LABEL="WIN98" UUID="0000-0E54" TYPE="vfat" 
/dev/sda5: LABEL="ELF" UUID="0000-0E74" TYPE="vfat" 
/dev/sda6: LABEL="FACTOID" UUID="0000-0E75" TYPE="vfat" 
/dev/sda7: LABEL="GADZOOKS" UUID="0000-0E5F" TYPE="vfat" 
/dev/sda8: UUID="e1484135-3eb4-4f17-b03c-5e1e0d88b480" TYPE="swap" 
/dev/sdb1: LABEL="DIONYSUS" UUID="0000-0ED9" TYPE="vfat" 
/dev/sdb6: LABEL="JOVE" UUID="0000-0D8B" TYPE="vfat" 
/dev/sdb7: LABEL="FAVS" UUID="0000-0ED9" TYPE="vfat" 
/dev/sdb8: LABEL="FAVS2" UUID="0000-0D85" TYPE="vfat" 
/dev/sdb9: LABEL="MOVIES" UUID="0000-0D47" TYPE="vfat" 
/dev/sda9: LABEL="HAM" UUID="4598-9D46" TYPE="vfat" 
/dev/sda10: UUID="063da081-4ed5-4c75-a789-81de30b946bb" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sda11: UUID="9f8d6e0b-f3b0-40e3-9e26-b3dcc3f84410" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sdb5: SEC_TYPE="msdos" LABEL="TEMP" UUID="0000-0DAA" TYPE="vfat"
Blkid shows vfat volumes on my system.
Ofcourse vol_id is correct. Becoz, for your partition entries, /dev/sda5 should be the starting of the extended partition.

Can you please post the output of sudo fdisk -l
__________________
With Regards,
C.C.Chakkaradeep
My Blog
chakkaradeep is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:43 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry