From: Jose J. R. <jo...@gm...> - 2006-05-26 03:39:35
|
I need feedback on the correct mount arguments for the different FS types. So far I've discussed, tested and tweaked the following: ReiseFS, NTFS, FAT12, FAT16 and FAT32. I don't have other FS type partitions to test with, nor available hardware to repartition for testing (I've used my working pendrive and USB hdd, or feedback in the Forum). Here are the current mount arguments used by vl-hot. I already know ext2 and ext3 are wrong, as feedback from Kocil tonight suggests. Also, what other FS types do you think should be implemented?: # Mount options: USB_USER=3Droot USB_GROUP=3Dusers USB_UMASK=3D0111 USB_DMASK=3D0000 # consider adding the noatime option to save writes to flash mem: MOUNTSYNC=3D"noatime" # MOUNTSYNC=3D"sync,dirsync"=09=09#too friggin' slow! function chooseMountOptions { =09case $fsType in =09Ext2) =09=09MOUNT_OPTIONS=3D"-o $MOUNTSYNC,uid=3D$USB_USER,gid=3D$USB_GROUP,umask=3D$USB_UMASK,user" =09=09fsMountTypeArg=3D"ext2" =09;; =09Ext3) =09=09MOUNT_OPTIONS=3D"-o $MOUNTSYNC,uid=3D$USB_USER,gid=3D$USB_GROUP,umask=3D$USB_UMASK,user" =09=09fsMountTypeArg=3D"ext3" =09;; =09ReiserFS) =09=09MOUNT_OPTIONS=3D"-o $MOUNTSYNC,user" =09=09fsMountTypeArg=3D"reiserfs" =09;; =09NTFS) =09=09#MOUNT_OPTIONS=3D"-o $MOUNTSYNC,uid=3D$USB_USER,gid=3D$USB_GROUP,umask=3D$USB_UMASK,dmask=3D$USB= _DMASK,user,ro" =09=09MOUNT_OPTIONS=3D"-o $MOUNTSYNC,uid=3D$USB_USER,gid=3D$USB_GROUP,umask=3D$USB_UMASK,dmask=3D$USB= _DMASK,user,rw" =09=09fsMountTypeArg=3D"ntfs" =09;; =09FAT12) =09 MOUNT_OPTIONS=3D"-o $MOUNTSYNC,uid=3D$USB_USER,gid=3D$USB_GROUP,umask=3D$USB_UMASK,dmask=3D$USB= _DMASK,quiet,user,iocharset=3Diso8859-15,utf8" =09=09fsMountTypeArg=3D"msdos" =09;; =09FAT16) =09=09MOUNT_OPTIONS=3D"-o $MOUNTSYNC,uid=3D$USB_USER,gid=3D$USB_GROUP,umask=3D$USB_UMASK,dmask=3D$USB= _DMASK,quiet,user,iocharset=3Diso8859-15,utf8" =09=09fsMountTypeArg=3D"vfat" =09;; =09FAT32) =09=09MOUNT_OPTIONS=3D"-o $MOUNTSYNC,uid=3D$USB_USER,gid=3D$USB_GROUP,umask=3D$USB_UMASK,dmask=3D$USB= _DMASK,quiet,user,shortname=3Dmixed,iocharset=3Diso8859-15,utf8" =09=09fsMountTypeArg=3D"vfat" =09;; *) =09=09MOUNT_OPTIONS=3D"UNKNOWN" =09=09fsMountTypeArg=3D"auto" =09;; =09esac } Note: I changed the NTFS mounting from ro to rw tonight by request from Vec= 7. Regards, Joe1962 |