Hi, I am trying to figure out how to get the /etc/hotplug/usb/usb-storage script to automatically mount my hard drive to use the Paragon usfd driver, to enable read write access to my NTFS drives.
I know I could simply delete it, but there may come an occasion when i want to plug another non NTFS drive (such as a pen drive) into a spare USB slot - and it would be nice to have it automatically detected.
I tried to follow some advice I found on the web by editing the script as follows:
Snip
Code:
case "$us_FSTYPE" in
ext2|ext3|reiserfs|jfs|xfs|minix)
us_MOUNTCMD="/bin/mount -t $us_FSTYPE -o $us_OWNER,umask=000,user $us_DEVICE $us_MOUNTPOINT"
;;
ufsd)
# TODO: add useful options
us_MOUNTCMD="/bin/mount -t $us_FSTYPE -o $us_OWNER,umask=0222,ro,user $us_DEVICE $us_MOUNTPOINT"
;;
vfat|auto)
us_MOUNTCMD="/bin/mount -t vfat -s -o $us_OWNER,shortname=mixed,quiet,sync,umask=0002,user,showexec $us_DEVICE $us_MOUNTPOINT"
;;
none|extended|swap)
continue
;;
Snip.
(See Attachment for full script).
My fstab file looks as follows:
Code:
# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hda3 / reiser4 defaults 0 1
/dev/hda7 /home reiser4 defaults,auto 0 2
/dev/hda6 /boot ext3 defaults,auto 0 2
proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
usbfs /proc/bus/usb usbfs devmode=0666 0 0
sysfs /sys sysfs defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,users,noexec,noauto 0 0
/dev/cdrom1 /cdrom1 iso9660 defaults,ro,users,noexec,noauto 0 0
/dev/dvd /dvd iso9660 defaults,ro,users,noexec,noauto 0 0
# Added by KNOPPIX
#/dev/hda1 /mnt/hda1 ntfs auto,users,exec,ro,umask=000 0 0
# Added by KNOPPIX
/dev/hda5 none swap defaults 0 0
# Added by KNOPPIX
#/dev/sda1 /mnt/sda1 ntfs noauto,users,exec,ro,umask=000 0 0
/dev/hda1 /mnt/ntfs_0 ufsd defaults,quiet 0 0
/dev/sda1 /mnt/ntfs_1 ufsd defaults,quiet 0 0
However this did not work.
Basically I have two partitions. hda1 and sda1. I want to access them in both read write mode as a user, for them to not be automatically mounted at boot time and for them both to use the ufsd driver.
Please can someone help me understand how best to achieve this?
GJ
USB-STORAGE