Package: usbmount Version: 0.0.14.1 Usbmount properly mounts and unmounts USB memory sticks when they are plugged in or off during the runtime of the system. However, in all my trials it failed to mount the same USB memory sticks when they are already plugged in at the time the computer is started (power-on, cold start).
To cure this deficiency I have written a short init script which should be executed after starting the system (/etc/rcS.d). ---------------------------------------------------------- #!/bin/sh ## ## /etc/init.d/usbdrives-coldplug.sh ## ## piet, 23-nov-2008 ## ## Automatically mount USB drives after a cold start. ## This script mounts all partitions of USB drives which ## have already been recognized by the kernel AND by udevd, ## but are not yet mounted. devlinks=`ls -l /dev/disk/by-id/usb-*-part[0-9] | awk '{print $(NF)}'` for devlink in ${devlinks:q}; do ## 'readlink -mn' finds the real name of a symbolic link export DEVNAME=`readlink -mn /dev/disk/by-id/${devlink:q}` ## /usr/share/usbmount/usbmount is a hidden command included in the usbmount package /usr/share/usbmount/usbmount add done ---------------------------------------------------------- This script should be stored as '/etc/init.d/usbdrives-coldplug.sh' and then sym-liked to /etc/rcS.d: ln -s '../init.d/usbdrives-coldplug.sh' /etc/rcS.d/S37usbdrives-coldplug.sh -- Peter Slickers -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org