| Fedora This forum is for the discussion of the Fedora Project. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-02-2008, 05:20 PM
|
#1
|
|
LQ Newbie
Registered: Jun 2007
Posts: 25
Rep:
|
Can I assign a UUID to a disk added without deleting data? How?
I have a disk that is not automounted by Fedora 9. I would like it to be, and I'd like preferably for it to have it's own UUID. But, just by adding a unique UUID to the fstab, obviously won't work.
But I am afraid I can't find any information about how to add a UUID to an existing disk that is full of data. Anywhere. I've searched and searched....
L
Nevermind, I'm a moron. I assumed there wasn't a UUID because I was getting an error. However, I needed the right command, and I was using the wrong one. This is the command to find a UUID for a device in Fedora: udevinfo -q env -n /dev/sdb1
Hope that helps someone.
Last edited by sandaili; 07-02-2008 at 05:27 PM.
Reason: found solution
|
|
|
|
07-02-2008, 08:00 PM
|
#2
|
|
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,097
Rep: 
|
Thank you.
I had a bit of trouble with 2 of my fat32 partitions having the same uuid number,
This might help me sort it out.
Regards, Glenn
|
|
|
|
07-02-2008, 08:33 PM
|
#3
|
|
Senior Member
Registered: Jun 2008
Posts: 2,529
Rep:
|
# uuidgen
# tune2fs /dev/hdaX -U numbergeneratedbyuuidgen
# vol_id /dev/hdaX
|
|
|
|
07-02-2008, 08:57 PM
|
#4
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,218
|
Not all filesystems support UUID - notably VFAT (and NTFS) last I looked. UUIDs can be generated for them, but labels are probably a better option for them.
|
|
|
|
07-02-2008, 09:22 PM
|
#5
|
|
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,097
Rep: 
|
Hey, Thanks for the info,
Mr.C., Can you give me a short description of what you posted, please?
syg00, fstab has these entries for...sdb8 and sdb9 both had UUID=4807-901A and while it was only one partition would show up, and it was difficult to navigate, let alone read and write files. So I edited it back to the old way... Possibly not supported as you mention.
excerpt from fstab,
# Entry for /dev/sda1 :
UUID=4C54BBD554BBBFCE /mnt/win_c ntfs-3g defaults 0 0
# Entry for /dev/sdb8 :UUID=4807-901A
/dev/sdb8 /mnt/win_c2 vfat defaults,umask=0,quiet 0 0
# Entry for /dev/sda10 :UUID=4807-8FD4
/dev/sda10 /mnt/win_d vfat defaults,umask=0,quiet 0 0
# Entry for /dev/sdb9 /mnt/win_d2:
/dev/sdb9 /mnt/win_d2 vfat defaults,umask=0,quiet 0 0
(wip)
cheers,
Regards, Glenn
|
|
|
|
07-02-2008, 09:39 PM
|
#6
|
|
Senior Member
Registered: Jun 2008
Posts: 2,529
Rep:
|
Quote:
Originally Posted by syg00
Not all filesystems support UUID - notably VFAT (and NTFS) last I looked. UUIDs can be generated for them, but labels are probably a better option for them.
|
Yes, you are correct.
Quote:
Originally Posted by GlennsPref
Mr.C., Can you give me a short description of what you posted, please?
|
[/QUOTE]
1) generate a UUID for the device
2) push that UUID onto the meta-data for the ext[23] file system
3) verify the value placed there
$ man uuidgen tune2fs vol_id
for the complete details.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:12 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|