[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#595732: release-notes: use 'vol_id' to get UUID, in section 4.8.1 of the notes



Package: release-notes
Severity: normal


hi,

section 4.8.1 says 

    To implement the UUID approach   Find out the universally unique identifier
      of your filesystem by issuing:
    ls -l dev/disk/by-uuid | grep hda6
      You should get a line similar to this one:
   lrwxrwxrwx 1 root root 24 2008-09-25 08:16 d0dfcc8a-417a-41e3-ad2e-9736317f2d8a -> ../../hda6

This does not always work as expected: for example, for people using crypt
filesystem, RAID or LVM, the above looks like 
    lrwxrwxrwx 1 root root 10  6 set 08:28 0253e19c-2e69-4720-a59a-2062d82ea8fd -> ../../dm-6
and then it is difficult to associate dm-6 to the device that is listed by 'mount' or 'df'

There is a much better way to find out UUID for devices: use 
  vol_id --uuid  DEVICE
this is more straightforward, does not need any backward guessing

I recommend documenting it in the release notes

a.

ps: 'vol_id' is part of 'udev' in Debian/lenny


-- System Information:
Debian Release: 5.0.6
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-openvz-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

-- 
Andrea Mennucc

"The EULA sounds like it was written by a team of lawyers who want to tell 
me what I can't do, and the GPL sounds like it was written by a human 
being who wants me to know what I can do."
Anonymous,    http://www.securityfocus.com/columnists/420



Reply to: