Re: [gentoo-user] Fwd: Set mount point of external drive with udev rules

2010-03-31 Thread Neil Bothwick
On Wed, 31 Mar 2010 12:08:50 -0500, Paul Hartman wrote: > The {serial} in your rule does not contain the trailing spaces that > are in the actual udevadm output. Maybe that's the reason. udev rules should match without trailing spaces,although things don't always work as they should :( -- Neil

Re: [gentoo-user] Fwd: Set mount point of external drive with udev rules

2010-03-31 Thread Paul Hartman
On Wed, Mar 31, 2010 at 1:29 AM, mikey wrote: > I don't blame people for not wanting to touch this with a barge pole, > it's a complete nightmare. I have had success to a degree in that I > created a .fdi file which gives my device a pseudo label of music so > it now gets mounted as /media/music a

Re: [gentoo-user] Fwd: Set mount point of external drive with udev rules

2010-03-31 Thread mikey
I don't blame people for not wanting to touch this with a barge pole, it's a complete nightmare. I have had success to a degree in that I created a .fdi file which gives my device a pseudo label of music so it now gets mounted as /media/music and I found a -rather basic - script to mount devices vi

Re: [gentoo-user] Fwd: Set mount point of external drive with udev rules

2010-03-30 Thread mikey
$ /sbin/udevadm info -a -p $(/sbin/udevadm info -q path -n /dev/sdb1) Udevadm info starts with the device specified by the devpath and then walks up the chain of parent devices. It prints for every device found, all possible attributes in the udev rules key format. A rule to match, can be compose

Re: [gentoo-user] Fwd: Set mount point of external drive with udev rules

2010-03-30 Thread Neil Bothwick
On Tue, 30 Mar 2010 17:10:53 +0100, mikey wrote: > This is the info about my drive: > > $ /sbin/udevadm info -a -p $(/sbin/udevadm info -q path -n /dev/sdb) You need the output for /dev/sdb1. -- Neil Bothwick What's the difference between ignorance and apathy? I don't know and I don't care

Re: [gentoo-user] Fwd: Set mount point of external drive with udev rules

2010-03-30 Thread Paul Hartman
On Tue, Mar 30, 2010 at 11:10 AM, mikey wrote: > Hi I have an external drive that I would like mounted with HAL, so > that it doesn't mount on boot (which takes ages for it to spin up) and > so that I can add and remove it easily. > > As I understand it udev rules are the way of doing this. > > I

[gentoo-user] Fwd: Set mount point of external drive with udev rules

2010-03-30 Thread mikey
Hi I have an external drive that I would like mounted with HAL, so that it doesn't mount on boot (which takes ages for it to spin up) and so that I can add and remove it easily. As I understand it udev rules are the way of doing this. I have spent quite a while reading about these and understand