LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-08-2009, 11:07 AM   #16
galapogos
Member
 
Registered: May 2008
Posts: 227

Original Poster
Rep: Reputation: 30

Thanks ernie.

Just one question - I assume that UUIDs are specific to the actual hardware, rather than just the ISO image of the partition within that hardware?

If this is the case, then I wouldn't be able to use UUIDs in my case, because in my application I have to clone the ISO image across many different drives.
 
Old 09-09-2009, 09:44 AM   #17
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
O.K., then perhaps I do not quite understand, but in a situation like that, I think I would try to create a script to do the work for me. The script might run the cloning process on a drive, then launch a chrooted child process to get the drives UUID and configure that system's /etc/lilo.conf file. Since I do not know the specific limitations under which you are working, I will not try to be more specific, but I hope this helps you work out a solution.
 
Old 09-09-2009, 10:26 AM   #18
galapogos
Member
 
Registered: May 2008
Posts: 227

Original Poster
Rep: Reputation: 30
Thanks. That might work, though with speed limitations...so there's no way I can use label instead of UUID? Seems like that would be easier, though I can't seem to get it working.
 
Old 09-10-2009, 02:00 AM   #19
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
Well, you must have the partition labeled or accessing the partition by its label name will not work. Labeling the partition requires addressing the drive by its device node which may be (if I recall correctly) either sdb2 or hdb2. The partition already has a UUID associated with it, so getting that may be easier. If you prefer setting the partition label, you may be able to get it to work if you know which device node is assigned to each computer with which you will work, but then if you know that, you do not need to set the label in the first place, do you?

If you choose to access the partition using the UUID, you can use this scenario: try to get the partition's UUID number from the sdb2 device node. Grep the output of dumpe2fs for the UUID. Put the UUID number into a variable that has been initialized with a null value, test the variable for a null value. if it is null, you did not get a UUID so try to get the UUID number using the hdb2 device node. This way you can cover both possibilities and make sure you have a value other than null.

HTH,
 
  


Reply



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
Gcc in Mandriva 2009? anirbanghosh Mandriva 1 08-01-2009 06:51 AM
IS Mandriva 2009.1 GA bdelany Linux - Newbie 2 06-19-2009 07:39 AM
Mandriva Linux 2009.1 *Spring) released to the public today - 29, April 2009 ernie Mandriva 13 06-12-2009 05:58 PM
Mandriva 2009.2 sam-c Mandriva 2 05-04-2009 06:11 AM
Mandriva Linux 2009 Spring (2009.1) has been officially released! tux99 Mandriva 1 04-30-2009 10:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 01:45 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