From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Kay Sievers" Date: Mon, 15 Dec 2008 15:47:04 +0000 Subject: Re: udev lvm permisions Message-Id: List-Id: References: <1229336451.19633.4.camel@linux-pqqd.site> In-Reply-To: <1229336451.19633.4.camel@linux-pqqd.site> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, Dec 15, 2008 at 16:24, Geert Geurts wrote: > Thanks for your reply! > Indeed it's about a logical volume I want to mount as a normal user. > > I've already had discussion with Michal Soltys, > he sugested to create a rule according to the following: > ACTION!="add|change", GOTO="dm_end" > KERNEL!="dm*", GOTO="dm_end" > > PROGRAM="/sbin/dmsetup info -c --noheadings -o uuid -j%M -m%m", > ENV{DM_UUID}="%c" > > ENV{DM_UUID}="LVM-N28qi20mqjyPR150TYivmJzvkn8zzpi2VEhSFspDTiAxn2GLFC7xJ8Lfh12dmGH0", GROUP="users", MODEf0 > > LABEL="dm_end" > > > I've created this rule but it applies to the kernel device... /dev/dm-*. > What I need is a rule that changes the ownership > of /dev/mapper/HomeVolume. > > Thats where I stand now, > so any suggestions are welcome! All the device-mapper/lvm tools are disconnected from udev, and mess around in /dev on their own. No user higher in the layers udev/HAL/DeviceKit/Desktop has a clue what device-mapper did here. On many distros you should be able to use the (workaround the issue) /dev/disk/by-id/dm-{uuid,name}-* links maintained by udev. Thanks, Kay