Public bug reported:

Binary package hint: udev

On current (as of this morning) Hardy, the /dev/disk/by-uuid/ links are
not pointing to a usable device for non LV devices when LVM is being use
Let me illustrate:

$ ls -l /dev/mapper/
total 0
crw-rw---- 1 root root  10, 63 2008-02-11 05:13 control
[ many LVM LVs ]
brw-rw---- 1 root disk 254, 11 2008-02-11 10:14 sda1
brw-rw---- 1 root disk 254, 12 2008-02-11 05:14 sda2
brw-rw---- 1 root disk 254,  0 2008-02-11 05:13 sda3

So as you can see, device-mapper has taken to managing the partitions of
my disk, which I don't really care about *except*:

$ ls -l /dev/disk/by-uuid/
total 0
...
lrwxrwxrwx 1 root root 10 2008-02-11 10:14 12b8250a-d031-4ee1-b486-5e67478d06b4 
-> ../../sda1
...
lrwxrwxrwx 1 root root 10 2008-02-11 10:14 FFFF-FFFF -> ../../sda2

So those /dev/disk/by-uuid/ links point back to the /dev/<device> nodes,
not /dev/mapper/<device> nodes.

This can't work because once device-mapper has a device open and is
managing, access to the underlying device is denied:

$ sudo mount /dev/sda2 /mnt/windows/
mount: /dev/sda2 already mounted or /mnt/windows/ busy

That EBUSY is device-mapper having the device open:

$ sudo mount /dev/mapper/sda2 /mnt/windows/
$ 

So, the /dev/disk/by-uuid/ links pointing back to base /dev entries are
useless.  They need to point to the device-mapper entries.

** Affects: udev (Ubuntu)
     Importance: Undecided
         Status: New

-- 
/dev/disk/by-uuid pointing to real device, not a device-mapper encapsulation
https://bugs.launchpad.net/bugs/190995
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to