UUIDs on drives (Derek Broughton)
Florian Diesch
diesch at spamfence.net
Sat Aug 16 08:43:39 UTC 2008
Chris Jeffries <chris at candm.org.uk> wrote:
> On Fri, 2008-08-15 at 03:05 +0100, ubuntu-users-request at lists.ubuntu.com
> wrote:
>> Re: UUIDs on drives (Derek Broughton)
>
> The discussion seems to be 'Where it is' vs 'What it is'. For me, this
> isn't the big problem. I am no expert in Unix, but it seems to me that a
> system where dev/sda suddenly points you to a different device despite
> the fact you have done NOTHING to the device that you found on dev/sda
> previously is a BAD THING - and it scares me, and something SHOULD be
> done to fix that.
That naming scheme depends on the order devices are detected and as
such is subject to change over time for various reasons.
If you don't want that just use one of the symlinks in /dev/disk/ that
fits your needs better.
> Also I find myself getting lost amongst all the device stubs in dev
> (entries for devices that do not exist). I am sure it is just my lack of
> knowledge of Unix, but I'd like to find a database or something that
> lists all the actual devices on my machine by location, type and, where
> possible, unique id, eg with entries something like this
Maybe lshal is what you want
> 'dev' id: /dev/xx05
> location: system/USB_bus/USB_socket1/USB_hub/USB_socket1/
> type: webcam
> UUID: sefhasrhnfasorfnasrofnsro
>
> I see location as a path through the equivalent of directories, but in
> hardware, so a USB hub of a SCSI controller channel look like
> directories with folders inside in this view, and they themselves are in
> some sort of root directory called (in this example) system.
The /sys hierarchy is organized like this. It's actually a bit more
complicated as there are several ways to order the devices.
Florian
--
<http://www.florian-diesch.de/>
-----------------------------------------------------------------------
** Hi! I'm a signature virus! Copy me into your signature, please! **
-----------------------------------------------------------------------
More information about the ubuntu-users
mailing list