On Monday 25 July 2005 11:42, Graham Smith wrote:

> What I would like it something that will just automagically mount the
> drive. I have installed the usbmount package (which I presume is the same
> as usb-mount) but it doesn't seem to do anything. It's created /media/cdrom
> and /media/usb directories but that is it - it doesn't mount the drive when
> I plug it in. I am running KDE on Debian unstable and certain sites seem to
> indicate that one can get KDE to create an icon on the desktop when a usb
> drive is plugged in.
>
> Basically I'm interested to know what are my options are?
>
> Many thanks,
>
> Graham

pmount (not usbmount)

If you can mount this, then you'll be able to set this up. Google for 
specifics (unless someone else elaborates for me).

Need: pmount hal udev hotplug usbutils (and, for gnome, gnome-volume-manager)

This should do it. Just make sure in KDE, [configure desktop?] settings are 
enabled to display devices on the desktop. (If the drive doesn't show up in 
media:/, then KDE isn't seeing the drive--and, something else is foobared.)

If you want the device to automatically be mounted to the same place every 
time, then you need to:

1) Create a udev rule (google for 'udev rules') 
in /etc/udev/rules.d/local.rules
It will look something like (one line): 
BUS="scsi", KERNEL="sd?1", SYSFS{model}="Flash Disk", NAME="%k", 
SYMLINK="usbkey"

--SYMLINK = its path in /dev/ (here, it's /dev/usbkey)
--If you use multiple devices, and want to distinguish between them, simply 
add more details the the local.rules lines.

2) Create a directory in /media/
(I think usbmount does this, and pmount does this)

3) Create an fstab entry allowing users to mount/umount
(Unless you're using pmount; this breaks the pmount behaviour.)

- - -

I did this in Debian, and don't remember all the steps. But, my setup was not 
very flexible (or easy). So, I just moved my 4-year old Deb system to Ubuntu, 
and usb drives just work. Ubuntu (actually, kubuntu-desktop, not 
ubuntu-desktop--gnome) seems to use this working setup:

pmount hal udev hotplug usbutils

(though the depends mentions hal conflicts with pmount and 
gnome-volume-manager, pmount and hal are both installed)

Maybe installing those will give you the seamless setup Ubuntu has. I think 
part of my inflexible Debian setup included usbmount; maybe pmount is better. 
For pmount (and, maybe usbmount), make sure your user is added to the group 
'plugdev'. The only extra step I used was adding the line 
to /etc/udev/rules.d/local.rules for the pamusb setup I use <pamusb.org>; 
nothing seems to require configuration beyond installation.

Attachment: pgpimmyUqz0Oa.pgp
Description: PGP signature

Reply via email to