mount by LABEL and lvm

Vincent Danjean vdanjean at debian.org
Mon Aug 20 19:50:54 UTC 2007


  Hi,

  I just suffer from the same problem as 435983 after an upgrade of my
system. In my case, I just use LVM2 (no raid with mdadm) on the hardisk
of my laptop.
  /dev/disk/by-label/ always only showed plain partitions (ie BOOTFS -> ../../sda6)
but no 'lvm' partitions (ie no links HOMEFS -> ../../dm-1)
  As new 'mount' requires these links, my /home has just started not
being mounted at boot time...

  So I think Kurt is right in telling that LVM2 should be fixed (and perhaps
also mdadm if partition created with mdadm contain filesystems).

  For my system (with LVM2 and without mdadm), I solved the problem by replacing
the line :
KERNEL=="ram*|loop*|fd*|nbd*|gnbd*|dm-*|md*", GOTO="persistent_storage_end"
with
KERNEL=="ram*|loop*|fd*|nbd*|gnbd*|md*", GOTO="persistent_storage_end"
(ie I remove dm-*) in /etc/udev/persistent.rules

  I'm not sure at all if this is the correct global solution. But comments
in the file does not explain why FS on dm-* (and on loop*, ...) should be
excluded from generating links in /dev/disk/by-*

  Best regards,
    Vincent



More information about the pkg-lvm-maintainers mailing list