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

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Hardware & Laptops
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.

Hardware & Laptops
Problems with hardware & laptops not being detected or supported during or after install.

 
 
Thread Tools Display Modes
Old January 30th, 2007   #1
montgoss
Just Give Me the Beans!
 
Join Date: Jan 2007
Beans: 70
Ubuntu 6.10 Edgy
[SOLVED] How do you find UUID?

I know I'm supposed to edit /etc/fstab in order to get a partition automatically mounted at startup. But all the other partitions already there have the first parameter as UUID=<something>. How do I find out what to put there for these currently unmounted partitions?
montgoss is offline  
Old January 30th, 2007   #2
glabouni
Gee! These Aren't Roasted!
 
Join Date: Jan 2007
Beans: 196
Re: How do you find UUID?

Code:
blkid
or
Code:
ls /dev/disk/by-uuid
glabouni is offline  
Old January 30th, 2007   #3
tommcd
Chocolate Ubuntu Mocha Blend
 
tommcd's Avatar
 
Join Date: Aug 2005
Location: Philadelphia, PA, USA
Beans: 1,829
Ubuntu 9.10 Karmic Koala
Send a message via Yahoo to tommcd
Re: How do you find UUID?

fstab will work with or without UUIDs. The UUIDs were added so that if you switched hard drives around or changed your partitioning scheme the fstab could still find them. Another way to get UUIDs (so I've read, have not tried it) is:

sudo vol_id -u <partition>
See:
http://ubuntuforums.org/showthread.php?t=286758
http://www.ubuntuforums.org/showthread.php?&t=283131
__________________
desktop: Asrock 939 Dual Sata2, AMD Athlon64 3200, 2GB RAM, Nvidia 8600GT
laptop: Acer 3680-2633
tommcd is offline  
Old January 30th, 2007   #4
Man_Beach
Just Give Me the Beans!
 
Join Date: Dec 2006
Beans: 77
Ubuntu 8.10 Intrepid Ibex
Re: How do you find UUID?

So I don't have to use the UUID in fstab? I can use /dev/hda8 or whatever instead?
Man_Beach is offline  
Old January 30th, 2007   #5
hal10000
100% Pure Ubuntu
 
Join Date: Nov 2006
Location: Germany
Beans: 850
Kubuntu 9.04 Jaunty Jackalope
Send a message via ICQ to hal10000
Re: How do you find UUID?

yes you can; you can also use them in your /boot/grub/menu.lst if you like.
__________________
watch out where the huskies go
and don't you eat that yellow snow (Zappa)

http://www.youtube.com/watch?v=NhawrtsnkWE
hal10000 is offline  
Old May 5th, 2008   #6
jameshoo
First Cup of Ubuntu
 
jameshoo's Avatar
 
Join Date: Nov 2007
Beans: 4
Re: How do you find UUID?

Quote:
Originally Posted by hal10000 View Post
yes you can; you can also use them in your /boot/grub/menu.lst if you like.
watch out where the huskies go
and don't you eat that yellow snow (Zappa)



http://ubuntuforums.org/images/smili...y-faces-75.gif

I like Zappa. I've a stroke and perhap of Zappa. Them days were cuaght of all the days of those. Thanks for those of though of thoughts... Jim
jameshoo is offline  
Old June 16th, 2008   #7
warp4ever
First Cup of Ubuntu
 
Join Date: Aug 2007
Beans: 6
Re: How do you find UUID?

How about this then ?

root@server1:~# blkid
/dev/sda1: UUID="ed5b5804-bf8c-4a4c-a576-e6b31108eb28" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb5: UUID="e97c27fe-0000-0000-0000-00000000cc12" TYPE="jfs"
/dev/sdb6: UUID="e97c27fe-0000-0000-0000-00000000cc12" TYPE="jfs"
/dev/sdb7: UUID="e97c27fe-0000-0000-0000-00000000cc12" TYPE="jfs"
/dev/sdb8: UUID="ab410eb4-2c5f-4dec-9276-910ce64c8e23" TYPE="jfs"
/dev/sda5: TYPE="swap" UUID="742b5801-411e-4396-813b-a5b809b1f275"
/dev/sdc1: LABEL="frama" UUID="8756178d-d7c8-4168-88ee-24b878048120" TYPE="ext3"
warp4ever is offline  
Old July 1st, 2008   #8
Krupski
Dipped in Ubuntu
 
Krupski's Avatar
 
Join Date: Jun 2008
Location: Orbiting the moon.
Beans: 647
Xubuntu 9.10 Karmic Koala
Re: How do you find UUID?

Quote:
Originally Posted by glabouni View Post
Code:
blkid
or
Code:
ls /dev/disk/by-uuid
Hi!

I have a network storage machine made up like this:

* Ubuntu 8.04 Server
* A 4.0 GB Compact Flash Drive to hold the OS
* Two 1 TB hard drives as RAID 1 mirror storage (created using MDADM and shared on the network via SAMBA).

There is not one byte of Linux on the hard drives... it's all on the CF card.

Anyway, I have been using UUID's in my FSTAB and GRUB files because /dev/sda /dev/sdb and /dev/sdc don't always stay the same names and if they decide to switcheroo, the box won't boot.

Now, I have been making periodic backups of my CF flash card just in case I mess things up - I can go back to a "last known good" system.

I have been doing this by physically pulling the card and using WINIMAGE to make an image of it.

I have since tried (successfully) to use DD to copy the drive to a file which I can then copy from the SAMBA share to my local machine (i.e. no more pulling the card out).

What I would like to know is, can I reference the boot drive (using DD) with a UUID rather than /dev/sda?

Here's the line I've been using to image the CF card:

Code:
dd if=/dev/sda of=/home/shared/linux-backup.img bs=1M count=4096
Can I replace "/dev/sda" with a UUID?

I can find the UUID for partitions like /dev/sda1, etc... but not for the DRIVE itself (i.e /dev/sda).

Thanks in advance for any help!

-- Roger
__________________
"Anything that is complex is not useful and anything that is useful is simple. This has been my whole life's motto." -- Dr. Mikhail T. Kalashnikov
Krupski is offline  
Old July 1st, 2008   #9
Krupski
Dipped in Ubuntu
 
Krupski's Avatar
 
Join Date: Jun 2008
Location: Orbiting the moon.
Beans: 647
Xubuntu 9.10 Karmic Koala
Re: How do you find UUID?

Quote:
Originally Posted by Man_Beach View Post
So I don't have to use the UUID in fstab? I can use /dev/hda8 or whatever instead?
I would heartily suggest USING the UUID format since it is device name independent and I've found sometimes drives swap names all by themselves and, if this happens, your machine won't boot.

UUID *always* works.
__________________
"Anything that is complex is not useful and anything that is useful is simple. This has been my whole life's motto." -- Dr. Mikhail T. Kalashnikov
Krupski is offline  
 

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:12 PM.


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