Hi All!
I have the following entry in my /etc/fstab file:
/dev/sda1 /mnt/usbstick vfat user,noauto,umask=0 0 0
And this is a script I have for mounting and unmounting my usb stick.
#/bin/bash
# USB
# Created 5 October 2003
if [ -n "$1" -a "$1" = "mount" ]
then
/sbin/modprobe usb-storage
cd /mnt/
mount usbstick/
else
cd /mnt/
umount usbstick/
fi
This seems to work fine for my usb stick, but whenever I unmount it and then try to mount a different usb stick in its place I get:
$./usbFlashDisk.sh mount
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
or too many mounted file systems
Can anyone tell me what is going wrong? Any advice would be most appreciated!
Rob
