Can I assign a UUID to a disk added without deleting data? How?
FedoraThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.