LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-07-2017, 12:08 PM   #1
pedros
Member
 
Registered: May 2017
Posts: 85

Rep: Reputation: Disabled
How to convert between UUID and file path?


I use debian 9.1.0, which has makehuman 1.1.0. makehuman saves a file as *.mhm, which says "2c12f43b-1303-432c-b7ce-d78346baf2e6". This looks like a UUID that points to another file. Debian also has /etc/fstab, which contains UUID code. How can I find out the path of the file the UUID points to? Or if I know the path of a file I want to use, how can I convert it to UUID?
 
Old 09-07-2017, 01:08 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
is that the complete content of the file? what's the complete name of the file? what does makehuman documentation say about it?

fwiw, you can try
Code:
sudo blkid
and comapre.

but i suspect that uuids can be used in a more versatile manner than you think.
in other words, it could be anything.

Quote:
Originally Posted by man uuid
The UUID library is used to generate unique identifiers for objects that may be accessible beyond the local system.
 
Old 09-07-2017, 02:31 PM   #3
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
A UUID is essentially just a random number with so many possibilities that it is practically guaranteed to be unique. The file name created by makehuman has nothing at all to do with any UUIDs that appear in /etc/fstab. The probability of any such UUID even matching any UUID used in any /etc/fstab anywhere in the world is vanishingly small.

The point, I expect, is to guarantee that the file name generated will not be the same as any other created anywhere else. The developers perhaps expect usage where the generated files will be shared around and mixed together in the same storage directories somewhere. Giving each model a universally unique file name might be useful for managing them in various ways or something.
 
Old 09-07-2017, 05:50 PM   #4
pedros
Member
 
Registered: May 2017
Posts: 85

Original Poster
Rep: Reputation: Disabled
makehuman/v1/models/Save.mhm
Quote:
# Written by MakeHuman 1.1.0
version v1.1.0
tags Save
camera 0.0 0.0 0.0 0.0 0.0 1.0
modifier macrodetails-universal/Muscle 0.500000
modifier macrodetails/African 0.333333
modifier macrodetails-proportions/BodyProportions 0.500000
modifier macrodetails/Gender 0.500000
modifier macrodetails-height/Height 0.500000
modifier breast/BreastSize 0.500000
modifier macrodetails/Age 0.500000
modifier breast/BreastFirmness 0.500000
modifier macrodetails/Asian 0.333333
modifier macrodetails/Caucasian 0.333333
modifier macrodetails-universal/Weight 0.500000
eyes HighPolyEyes 2c12f43b-1303-432c-b7ce-d78346baf2e6
clothesHideFaces True
skinMaterial skins/default.mhmat
material HighPolyEyes 2c12f43b-1303-432c-b7ce-d78346baf2e6 eyes/materials/brown.mhmat
subdivide False
In the complete file above, it seems the UUID points to a file on the local system.
Debian blkid points to devices that can be mounted.
I now understand that diffrent applications use UUID in diffrent ways.
So my question should specify the application. Thank you for explaining that.
I could not find makehuman documentation that says anything about UUID.
I remember finding some debian documentation, but it was confusing.
My intention is to manually edit Save.mhm.
 
Old 09-09-2017, 09:29 PM   #5
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by pedros View Post
makehuman/v1/models/Save.mhm
In the complete file above, it seems the UUID points to a file on the local system.
Debian blkid points to devices that can be mounted.
I now understand that diffrent applications use UUID in diffrent ways.
So my question should specify the application. Thank you for explaining that.
I could not find makehuman documentation that says anything about UUID.
I remember finding some debian documentation, but it was confusing.
My intention is to manually edit Save.mhm.
locate Save.mhm should get you the path to the file to open for editing.
 
Old 09-09-2017, 09:39 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,341
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
This is the tutorial that taught me how to use UUIDs in /etc/fstab: https://www.cyberciti.biz/faq/linux-...-update-fstab/
 
  


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
[SOLVED] /dev/disk/by-uuid/<uuid here> does not exist and initramfs shell Mitt Green Linux - Kernel 4 08-03-2015 11:56 AM
eval $PATH produces a path list followed by No such file or directory warning Alpha90 Linux - Newbie 10 11-04-2012 10:16 AM
[SOLVED] How to get the absolute path of the running executable file and current work path ? 915086731 Programming 3 11-01-2011 09:28 AM
Change UUID - Edit UUID using the dd command GMHilltop Linux - Newbie 10 10-28-2010 07:39 PM
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 - Distributions > Debian

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