usb floppy and cdrom getting confused using supermount
I have several usb devices that i am trying to get to automatically mount. I have a keyring style flash device, a usb floppy and a usb cdrom.
I have a script that automatically mounts the flash device, assigns it a mount point (for any amount of devices added) and will unmount and remove the mount point if the device is removed.
I cant use that script for the floppy and cdrom because it wont recognise a disk being removed and replaced only if the device is removed from the usb port. So i am going to use supermount for floppy and cdrom devices.
There is a couple of lines in my /etc/fstab that will automatically mount my cdrom and floppy when they are plugged into usb ports. Note that i am using devfsd:
floppy /mnt/floppy supermount fs=vfat,dev=/dev/scsi/host0/bus0/target0/lun0/disc
cdrom /mnt/cdrom supermount fs=iso9660,dev=/dev/cdrom
however, what i wanted was to have the usb floppy to mount to /mnt/floppy but its moaning that the block device doesnt exist and currently adding /dev/scsi/etc/etc/disc is the only way.
Another resulting problem is that if, at reboot, the cdrom is plugged in and the floppy isnt, the cdrom is automatically device: /dev/scsi/host0/bus0/target0/lun0/cd. This means when you plug the floppy in the cdrom has already been given the device that was assigned it in the fstab resulting in a non mounting floppy.
Can someone give me an idea as to what i can do to resolve this please?
|