[Gloucs] Automount CD/DVDs, but not iPod?

Nick gloslug at njw.me.uk
Wed Oct 31 13:51:53 GMT 2007


On Wed, Oct 31, 2007 at 01:02:20PM +0000, Andrew Oakley wrote:
> That still puts the iPod into "do not disconnect" mode, but doesn't 
> actually mount the iPod storage. That's half-way to what I want; I want it 
> to not say "do not disconnect" when attached.
>
> Also the method above prevents my USB card reader from auto-mounting memory 
> cards; I still want these auto-mounted, just not the iPod.
>
> I'm guessing there must be some underlying config file along the lines of 
> /etc/fstab that I need to modify, since gnome-volume-manager seems to 
> classify all USB storage devices as the same. So far, I've learned that it 
> is NOT /etc/fstab... ;-)

I can't be sure how Gnome/Ubuntu does things, but I'd venture a
guess that it uses Ivman to handle automounting.

The relevant config file is in /etc/ivman/IvmConfigActions.xml , and
using information about the iPod from lshal should enable you to
write a simple enough rule roughly along the lines of:

<ivm:Match name="hal.info.product" value="IPOD">
	<ivm:Option name="exec" value="eject '$hal.block.device$'" />
</ivm:Match>

Where IPOD is what looks most appropriate after marvelling at the
output from lshal for a while.

Note that I don't have an iPod, but I think the eject command does
what you want. Alternatively, depending on how the driver works, you
may have to echo something to somewhere in /sys, or use a helper
application (for my rio karma there's a nice one called
karma_helper).

Also, depending on how Ubuntu do things, they might be using
user-specific ivman things too (which override global ones), in
which case it'd be wise to put the above information in
~/.ivman/IvmConfigActions.xml

I'm sure an Ubuntu wiki / forum will set you straight on that, if
you're not into the experiment-til-it-works mood.

Good luck,

Nick

-- 
GPG Key : www.njw.me.uk/nick.gpg.asc     GPG Key ID: 04E4653F
  GPG Fingerprint: 9732 D7C7 A441 D79E FDF0 94F6 1F48 5674 04E4 653F
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mailman.lug.org.uk/pipermail/gloucs/attachments/20071031/36cb4063/attachment.bin


More information about the gloucs mailing list