Advertisement
Guest User

usb

a guest
Feb 28th, 2013
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.02 KB | None | 0 0
  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.  
  5. # Change to zero to disable usbmount
  6. ENABLED=1
  7.  
  8. # Mountpoints: These directories are eligible as mointpoints for
  9. # removable storage devices.  A newly plugged in device is mounted on
  10. # the first directory in this list that exists and on which nothing is
  11. # mounted yet.
  12. MOUNTPOINTS="/media/usb0 /media/usb1 /media/usb2 /media/usb3
  13.             /media/usb4 /media/usb5 /media/usb6 /media/usb7"
  14.  
  15. # Filesystem types: removable storage devices are only mounted if they
  16. # contain a filesystem type which is in this list.
  17. FILESYSTEMS="ntfs vfat ext2 ext3 ext4 hfsplus exfat"
  18.  
  19. #############################################################################
  20. # WARNING!                                                                  #
  21. #                                                                           #
  22. # The "sync" option may not be a good choice to use with flash drives, as   #
  23. # it forces a greater amount of writing operating on the drive. This makes  #
  24. # the writing speed considerably lower and also leads to a faster wear out  #
  25. # of the disk.                                                              #
  26. #                                                                           #
  27. # If you omit it, don't forget to use the command "sync" to synchronize the #
  28. # data on your disk before removing the drive or you may experience data    #
  29. # loss.                                                                     #
  30. #                                                                           #
  31. # It is highly recommended that you use the pumount command (as a regular   #
  32. # user) before unplugging the device. It makes calling the "sync" command   #
  33. # and mounting with the sync option unnecessary---this is similar to other  #
  34. # operating system's "safely disconnect the device" option.                 #
  35. #############################################################################
  36. # Mount options: Options passed to the mount command with the -o flag.
  37. # See the warning above regarding removing "sync" from the options.
  38. MOUNTOPTIONS="sync,noexec,nodev,noatime,nodiratime,rw"
  39.  
  40. # Filesystem type specific mount options: This variable contains a space
  41. # separated list of strings, each which the form "-fstype=TYPE,OPTIONS".
  42. #
  43. # If a filesystem with a type listed here is mounted, the corresponding
  44. # options are appended to those specificed in the MOUNTOPTIONS variable.
  45. #
  46. # For example, "-fstype=vfat,gid=floppy,dmask=0007,fmask=0117" would add
  47. # the options "gid=floppy,dmask=0007,fmask=0117" when a vfat filesystem
  48. # is mounted.
  49. FS_MOUNTOPTIONS="-fstype=ntfs,gid=xbian,uid=xbian,umask=0 \
  50.                 -fstype=vfat,gid=xbian,uid=xbian,umask=0 \
  51.                 -fstype=hfsplus,gid=xbian,uid=xbian,umask=0,force \
  52.                 -fstype=exfat,gid=xbian,uid=xbian,umask=0"
  53.  
  54. # If set to "yes", more information will be logged via the syslog
  55. # facility.
  56. VERBOSE=no
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement