LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-10-2012, 05:09 AM   #1
robertchen
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Rep: Reputation: Disabled
Smile how is partition uuid generated?


Use

> vol_id -u /dev/sda1

I can see my sda1's uuid.
I know the unique number can identify the partition sda1.

I'm curious about how is the number generated?
And where is it saved?
 
Old 02-10-2012, 05:20 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,157

Rep: Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340
"man uuidgen".
Kept in the filesystem metadata - use your search skills for the filesystem you are interested in.
 
Old 02-10-2012, 07:43 AM   #3
robertchen
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Smile

Thank you. From your hint, I found the answer at https://wiki.archlinux.org/index.php..._device_naming .

Quote:
UUID is a mechanism to give each filesystem a unique identifier. It is designed so that collisions are unlikely. All GNU/Linux filesystems (including swap) support UUID. FAT and NTFS filesystems do not support UUID, but are still listed in /dev/disk/by-uuid with a unique identifier:
 
1 members found this post helpful.
Old 02-10-2012, 05:02 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,157

Rep: Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340Reputation: 3340
You will find that wiki amongst the better resources for Linux. Gentoo has a very good one as well.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How do I change the UUID of a partition? widget Debian 9 08-30-2012 02:12 AM
How get uuid of a device/partition in linux programatically? newtoqtlinux Programming 9 03-13-2011 08:27 AM
can I label a swap partition or find its UUID ? centguy Linux - Software 3 09-12-2010 01:37 PM
Swap partition UUID changed. What do I do? searcher1 Linux - Newbie 12 06-05-2010 10:15 AM
Volume has problems including no uuid in /dev/disk/by-uuid abejarano Linux - Hardware 3 12-31-2008 08:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration