usbmount.conf 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Configuration file for the usbmount package, which mounts removable
  2. # storage devices when they are plugged in and unmounts them when they
  3. # are removed.
  4. # Change to zero to disable usbmount
  5. ENABLED=1
  6. # Mountpoints: These directories are eligible as mointpoints for
  7. # removable storage devices. A newly plugged in device is mounted on
  8. # the first directory in this list that exists and on which nothing is
  9. # mounted yet.
  10. MOUNTPOINTS="/media/usb0 /media/usb1 /media/usb2 /media/usb3
  11. /media/usb4 /media/usb5 /media/usb6 /media/usb7"
  12. # Filesystem types: removable storage devices are only mounted if they
  13. # contain a filesystem type which is in this list.
  14. #FILESYSTEMS="vfat ext2 ext3 ext4 hfsplus"
  15. FILESYSTEMS="vfat"
  16. #############################################################################
  17. # WARNING! #
  18. # #
  19. # The "sync" option may not be a good choice to use with flash drives, as #
  20. # it forces a greater amount of writing operating on the drive. This makes #
  21. # the writing speed considerably lower and also leads to a faster wear out #
  22. # of the disk. #
  23. # #
  24. # If you omit it, don't forget to use the command "sync" to synchronize the #
  25. # data on your disk before removing the drive or you may experience data #
  26. # loss. #
  27. # #
  28. # It is highly recommended that you use the pumount command (as a regular #
  29. # user) before unplugging the device. It makes calling the "sync" command #
  30. # and mounting with the sync option unnecessary---this is similar to other #
  31. # operating system's "safely disconnect the device" option. #
  32. #############################################################################
  33. # Mount options: Options passed to the mount command with the -o flag.
  34. # See the warning above regarding removing "sync" from the options.
  35. MOUNTOPTIONS="ro,sync,noexec,nodev,noatime,nodiratime"
  36. # Filesystem type specific mount options: This variable contains a space
  37. # separated list of strings, each which the form "-fstype=TYPE,OPTIONS".
  38. #
  39. # If a filesystem with a type listed here is mounted, the corresponding
  40. # options are appended to those specificed in the MOUNTOPTIONS variable.
  41. #
  42. # For example, "-fstype=vfat,gid=floppy,dmask=0007,fmask=0117" would add
  43. # the options "gid=floppy,dmask=0007,fmask=0117" when a vfat filesystem
  44. # is mounted.
  45. FS_MOUNTOPTIONS="-fstype=vfat,iocharset=utf8,codepage=932"
  46. # If set to "yes", more information will be logged via the syslog
  47. # facility.
  48. VERBOSE=no