(u)mounting of USB devices
Hello *,
because I have not found a suitable answer on other mailing lists I try
it here. :-)
I have:
A desktop which MUST run WITHOUT GNOME and KDE. There is only fvwm and
some programs, because it is used in Enterprises and some schools.
I mount USB devices with wmmount and:
__( '/home/michelle.konzack/.wmmount' )_____________________________
/
| mountcmd=/bin/mount %m
| umountcmd=/bin/umount %m
|
| opencmd=/usr/X11R6/bin/xterm -fn 10x20 -e mc %m ~/
|
| namecolor=red
| namefont=-*-helvetica-medium-r-*-*-10-*-*-*-*-*-*-*
|
| usagecolor=blue
| usagefont=-*-helvetica-medium-r-*-*-10-*-*-*-*-*-*-*
|
| ledcolor=red
|
| icon /usr/share/wmmount/blank.xpm
| icon /usr/share/wmmount/cdrom.xpm
| icon /usr/share/wmmount/floppy.xpm
| icon /usr/share/wmmount/harddisk.xpm
| icon /usr/share/wmmount/zip.xpm
|
| mountpoint /media/usbkey
| name=USB
| iconnumber=0
| usagedisplay=1
|
| mountpoint /media/usbreader/cf
| name=CompactFlash
| iconnumber=0
| usagedisplay=1
|
| mountpoint /media/usbreader/sd
| name=SecureDigital
| iconnumber=0
| usagedisplay=1
|
| mountpoint /media/usbreader/sm
| name=SmartMedia
| iconnumber=0
| usagedisplay=1
|
| mountpoint /media/usbreader/ms
| name=MemoryStick
| iconnumber=0
| usagedisplay=1
|
| mountpoint /dev/fd0u1680
| name=Floppy
| iconnumber=2
| usagedisplay=1
|
| mountpoint /media/cdrom
| name=CD-Rom
| iconnumber=1
| usagedisplay=1
|
| mountpoint /zip
| name=ZIP-Drive
| iconnumber=4
| usagedisplay=1
|
| mountpoint /dev/fd0u1440
| name=fd0u1440
| iconnumber=2
| usagedisplay=1
\____________________________________________________________________
and
__( '/home/Misc/FLOPPY/etc/fstab' )_________________________________
/
| /dev/hdc /media/cdrom iso9660 noauto,user,ro 0 0
| /dev/hdd1 /media/zip auto noauto,user 0 0
| /dev/fd0u1680 /media/floppy auto noauto,user 0 0
| /dev/fd0u1440 /media/floppy auto noauto,user 0 0
|
| /dev/sda1 /media/usbreader/cf auto noauto,user 0 0
| /dev/sdb1 /media/usbreader/sd auto noauto,user 0 0
| /dev/sdc1 /media/usbreader/sm auto noauto,user 0 0
| /dev/sdd1 /media/usbreader/ms auto noauto,user 0 0
|
| /dev/sde1 /media/usbkey auto noauto,user 0 0
\____________________________________________________________________
Now my problem:
If we connect an USB key (e.g. IBM 256 MB) to the external USB Port and
mount it while clicking on the "name" USB1 it will be mounted correctly.
Now we umount and put an other USB Key (e.g. Emprex 128 MB) in, and we
can not mount anymore because the NEW USB key is detected on /dev/sdf1.
Question: How can this problem solved? Is there a switch to
disable this kernel-module memory effect?
We can only remount on /dev/sde1 if we unload and reload
the module usb-storage.
Note: I have already coded a small BASH script which check all 5
seconds if /dev/sde1 is mounted and if not, it unload the
usb-storage module and reload it. But this is consuming
unnecesary resources.
Thanks for your Help
Michelle
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)
Reply to: