On Wed, 2005-10-26 at 11:11 +0100, Jonathan Brooks wrote:
.... The USB harddisk is mouted automatically by HAL. This bypasses /etc/fstab, and thus (from a non-root user's perspective) is not actually mounted.
When they issue a umount command, they get the error message "/media/foo is not listed in the mnttab, and anyway you're not root, so piss off"
So what is the solution? Sync then unplug the disk?
My disk is a camera (well, the disk is an SD card in a camera) and this doesn't work because I want to turn the camera off before unplugging it. And it won't turn off until it's unmounted ...
Come on, I'm sure loads of people must use these disks - what's the recommended way to disconnect them??????
... So what I do is su to root and eject it. I've been thinking about writing a suid shell script to do that, unless somebody else comes with a better suggestion. Cheers, Dave