Mount/unmount launcher for CDROM, USB memory stick

Hi,

I am using Debian etch r1 on my Thinkpad T60p. I am using XFCE 4.0 as my desktop.

I would like to get a launcher icon in my desktop automatically whenever I plug in a USB memory stick or insert a CD/DVDROM inside by CD/DVD drive. How do I achieve this in XFCE desktop environment? I do not intend to install KDE or GNOME to avail this functionality.

I get the following when I do a dmesg|less after plugging in a USB memory stick:

usb 5-5: new high speed USB device using ehci_hcd and address 2
usb 5-5: configuration #1 chosen from 1 choice
Initializing USB Mass Storage driver...
scsi4 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usbcore: registered new driver usb-storage
usb-storage: waiting for device to settle before scanning
USB Mass Storage support registered.
Vendor: Kingston Model: DataTraveler 2.0 Rev: PMAP
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sdb: 2015232 512-byte hdwr sectors (1032 MB)
sdb: Write Protect is off
sdb: Mode Sense: 23 00 00 00
sdb: assuming drive cache: write through
SCSI device sdb: 2015232 512-byte hdwr sectors (1032 MB)
sdb: Write Protect is off
sdb: Mode Sense: 23 00 00 00
sdb: assuming drive cache: write through
sdb: sdb1
sd 4:0:0:0: Attached scsi removable disk sdb
usb-storage: device scan complete

Please suggest what needs to be done?

Thanks
Subh

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

mount/unmount usb memstick

I would think (although I'm a beginner) that you must ls -l
/dev/...... you should see: /sdb1 in your case, my Kingston is seen as sda1

you can mount your Kingston wherever you want by making a new dir:
mkdir Desktop/Kingston or /Kingston and in this case make a ln -s on your Desktop later on.
but first you will mount your new dev sdb1:

mount -t auto /dev/sdb1 Desktop/Kingston

then you edit /etc/fstab by making a new line:

/dev/sdb1 /media/usb0 or KINGSTON auto rw,user,noauto 0 0
hope I've understood your query and answered right.
please let me know if this is your solution.

mount/unmount

by the way, I found that since I have 3 sys installed (SuSe10, Fed 6 and Deb4) that I need a partition available to the 3 sys: so I made one part which I mounted in each sys on which I put every single file I'm working with while studying linux.
fstab, menu.lst
/dev/hdc8 is the one that I mounted as /datahdc8 with a link to each of my 3 Desktops

Mount/unmount launcher for CDROM, USB memory stick

ksbolo,

Indeed it helped. Thanks for the advice. What I am looking for some kind of daemon that would do this mount job for me.

The need is because, my computer is often used by my father who does not know the command-line intricacies.

Thanks
~$u8h

Mount/unmount launcher for CDROM, USB memory stick

i don't use xfce myself, but perhaps these two packages help?

xfce4-mount-plugin
xfce4-utils (appears to contain xfmountdev4, see: http://www.digipedia.pl/man/xfmountdev.1.html )

father doesn't know cmd line intricacies

maybe I'm wasting your time, but if the fstab has got the line for the /dev/usb0 ...rw,user,noauto... the sys should mount it automatically, I thought it was the case. You see I'm just starting, so maybe I'm wrong.
I would think Etch can detect your usb stick with no problem, and mount it, since even sarge does.
I don't know which laptop you have but Etch should have the drivers for your usb stick.

Unmount before pulling out the usb

I am using Etch with Gnome and it always detects and mounts my usb thumbdrive. One thing is that I have to unmount it before I pull it out or it will screw up the data. Just giving you a heads up.

Working under Sid

I'm running XFCE4 under Sid, and I always get CDs and USB sticks as desktop icons. I'm afraid I don't know why; it just started happening after a dist-upgrade.

mnt/unmount launcher icon/cdrom..

Syndicate content