Thank you for the script

but the line :
mount `ls /dev/sd?? -d --sort=time|head -n 1` -t vfat -o umask=000 /mnt/usbkey


is very bad

I pluged HD1 and then I pluged HD2 and then I removed HD1 and repluged it but I got the wrong device from the command

I searched google but I can't find anyhthing


Azhdeen wrote:
On Sunday 28 September 2003 21:45, SMS WebMaster wrote:

Hi

I have 2 External USB Harddisk (Pocket Hard Disk and Mini Hard Disk)

How can make gentoo allways assign "/backup" for the  Pocket Hard Disk
  even if I plug before "Mini Hard Disk",

Any help ?


try putting this in /etc/hotplub/usb/usb-storage for every device you want to handle with hotplug :

my /etc/hotplug/usb/usb-storage script is made of different entries like this one :
-------------
if [ "$PRODUCT" = "ed1/6680/100" ]; then
chmod 777 /mnt/usbkey
mount `ls /dev/sd?? -d --sort=time|head -n 1` -t vfat -o umask=000 /mnt/usbkey
echo "#!/bin/bash" > $REMOVER
echo "# Generic USB Flash Keyring" >> $REMOVER
echo "umount /mnt/usbkey" >> $REMOVER
echo "rmmod usb-storage" >> $REMOVER
echo "chmod 700 /mnt/usbkey" >> $REMOVER
chmod a+x $REMOVER
fi
-------------


you can find what to put in the if line with usbview or dmesg, it's manufacturer/product/version without the zero padding

good luck.
Azhdeen



--
[EMAIL PROTECTED] mailing list






--
http://www.4-SMS.Com
http://eShop.4-SMS.Com
http://Mozilla.4-SMS.Com
-*- If Linux doesn't have the solution, you have the wrong problem -*-


-- [EMAIL PROTECTED] mailing list



Reply via email to