Advertisement
Guest User

Untitled

a guest
Nov 13th, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.26 KB | None | 0 0
  1. pi@raspberrypi ~ $ mount
  2. /dev/root on / type ext4 (rw,noatime,data=ordered)
  3. devtmpfs on /dev type devtmpfs (rw,relatime,size=244148k,nr_inodes=61037,mode=755)
  4. tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=49664k,mode=755)
  5. tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
  6. proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
  7. sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
  8. tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=99320k)
  9. devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
  10. /dev/mmcblk0p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
  11. /dev/sda1 on /mnt type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
  12.  
  13. pi@raspberrypi ~ $ sudo fdisk -ls
  14.  
  15. Disk /dev/mmcblk0: 7948 MB, 7948206080 bytes
  16. 4 heads, 16 sectors/track, 242560 cylinders, total 15523840 sectors
  17. Units = sectors of 1 * 512 = 512 bytes
  18. Sector size (logical/physical): 512 bytes / 512 bytes
  19. I/O size (minimum/optimal): 512 bytes / 512 bytes
  20. Disk identifier: 0x00090806
  21.  
  22. Device Boot Start End Blocks Id System
  23. /dev/mmcblk0p1 8192 122879 57344 c W95 FAT32 (LBA)
  24. /dev/mmcblk0p2 122880 15523839 7700480 83 Linux
  25.  
  26. WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
  27.  
  28. Note: sector size is 4096 (not 512)
  29.  
  30. Disk /dev/sda: 3000.6 GB, 3000592977920 bytes
  31. 255 heads, 63 sectors/track, 45600 cylinders, total 732566645 sectors
  32. Units = sectors of 1 * 4096 = 4096 bytes
  33. Sector size (logical/physical): 4096 bytes / 4096 bytes
  34. I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  35. Disk identifier: 0x00000000
  36.  
  37. Device Boot Start End Blocks Id System
  38. /dev/sda1 1 732566644 2930266576 ee GPT
  39.  
  40.  
  41.  
  42. pi@raspberrypi ~ $ cat /etc/netatalk/AppleVolumes.default
  43. # volume format:
  44. # :DEFAULT: [all of the default options except volume name]
  45. # path [name] [casefold:x] [options:z,l,j] \
  46. # [allow:a,@b,c,d] [deny:a,@b,c,d] [dbpath:path] [password:p] \
  47. # [rwlist:a,@b,c,d] [rolist:a,@b,c,d] [limitsize:value in bytes] \
  48. # [preexec:cmd] [root_preexec:cmd] [postexec:cmd] [root_postexec:cmd] \
  49. # [allowed_hosts:IPv4 address[/IPv4 netmask bits]] \
  50. # [denied_hosts:IPv4 address[/IPv4 netmask bits]] \
  51. # ... more, see below ...
  52. #
  53. # name: volume name. it can't include the ':' character
  54. #
  55.  
  56. #
  57. # variable substitutions:
  58. # you can use variables for both <path> and <name> now. here are the
  59. # rules:
  60. # 1) if you specify an unknown variable, it will not get converted.
  61. # 2) if you specify a known variable, but that variable doesn't have
  62. # a value, it will get ignored.
  63. #
  64. # the variables:
  65. # $b -> basename of path
  66. # $c -> client's ip or appletalk address
  67. # $d -> volume pathname on server
  68. # $f -> full name (whatever's in the gecos field)
  69. # $g -> group
  70. # $h -> hostname
  71. # $i -> client ip without tcp port or appletalk network
  72. # $s -> server name (can be the hostname)
  73. # $u -> username (if guest, it's whatever user guest is running as)
  74. # $v -> volume name (either ADEID_NAME or basename of path)
  75. # $z -> zone (may not exist)
  76. # $$ -> $
  77. #
  78.  
  79. #
  80. # casefold options [syntax: casefold:option]:
  81. # tolower -> lowercases names in both directions
  82. # toupper -> uppercases names in both directions
  83. # xlatelower -> client sees lowercase, server sees uppercase
  84. # xlateupper -> client sees uppercase, server sees lowercase
  85. #
  86. # allow/deny/rwlist/rolist format [syntax: allow:user1,@group]:
  87. # user1,@group,user2 -> allows/denies access from listed users/groups
  88. # rwlist/rolist control whether or not the
  89. # volume is ro for those users.
  90. # allowed_hosts -> Only listed hosts and networks are allowed,
  91. # all others are rejected. Example:
  92. # allowed_hosts:10.1.0.0/16,10.2.1.100/10.0.1.2
  93. # denied_hosts -> Listed hosts and nets are rejected,
  94. # all others are allowed. Example:
  95. # denied_hosts: 192.168.100/24,10.1.1.1
  96. # preexec -> command to be run when the volume is mounted,
  97. # ignore for user defined volumes
  98. # root_preexec -> command to be run as root when the volume is mounted,
  99. # ignore for user defined volumes
  100. # postexec -> command to be run when the volume is closed,
  101. # ignore for user defined volumes
  102. # root_postexec -> command to be run as root when the volume is closed,
  103. # ignore for user defined volumes
  104. # veto -> hide files and directories,where the path matches
  105. # one of the "/" delimited vetoed names. Matches are
  106. # partial, e.g. path is /abc/def/file and veto:/abc/
  107. # will hide the file.
  108. # adouble -> specify the format of the metadata files.
  109. # default is "v2". netatalk 1.x used "v1".
  110. # "osx" cannot be treated normally any longer.
  111. # volsizelimit -> size in MiB. Useful for TimeMachine: limits the
  112. # reported volume size, thus preventing TM from using
  113. # the whole real disk space for backup.
  114. # Example: "volsizelimit:1000" would limit the
  115. # reported disk space to 1 GB.
  116.  
  117.  
  118. #
  119. # codepage options [syntax: options:charsetname]
  120. # volcharset -> specifies the charset to be used
  121. # as the volume codepage
  122. # e.g. "UTF8", "UTF8-MAC", "ISO-8859-15"
  123. # maccharset -> specifies the charset to be used
  124. # as the legacy client (<=Mac OS 9) codepage
  125. # e.g. "MAC_ROMAN", "MAC_CYRILLIC"
  126. #
  127. # perm -> default permission value
  128. # OR with the client requested perm
  129. # Use with options:upriv
  130. # dperm -> default permission value for directories
  131. # OR with the client requested perm
  132. # Use with options:upriv
  133. # fperm -> default permission value for files
  134. # OR with the client requested perm
  135. # Use with options:upriv
  136. # umask -> set perm mask
  137. # Use with options:upriv
  138. # dbpath:path -> store the database stuff in the following path.
  139. # cnidserver:server[:port]
  140. # -> Query this servername or IP address
  141. # (default:localhost) and port (default: 4700)
  142. # for CNIDs. Only used with CNID backend "dbd".
  143. # This option here overrides any setting from
  144. # afpd.conf:cnidserver.
  145. # password:password -> set a volume password (8 characters max)
  146. # cnidscheme:scheme -> set the cnid scheme for the volume,
  147. # default is [dbd]
  148. # available schemes: [dbd last tdb]
  149. # ea -> none|auto|sys|ad
  150. # Specify how Extended Attributes are stores. default
  151. # is auto.
  152. # auto: try "sys" (by setting an EA on the shared
  153. # directory itself), fallback to "ad". Requires
  154. # writable volume for performing the test.
  155. # Note: options:ro overwrites "auto" with "none."
  156. # sys: Use filesystem EAs
  157. # ad: Use files in AppleDouble directories
  158. # none: No EA support
  159. #
  160.  
  161. #
  162. # miscellaneous options [syntax: options:option1,option2]:
  163. # tm -> enable TimeMachine support
  164. # prodos -> make compatible with appleII clients.
  165. # crlf -> enable crlf translation for TEXT files.
  166. # noadouble -> don't create .AppleDouble unless a resource
  167. # fork needs to be created.
  168. # ro -> mount the volume as read-only.
  169. # mswindows -> enforce filename restrictions imposed by MS
  170. # Windows. this will also invoke a default
  171. # codepage (iso8859-1) if one isn't already
  172. # specified.
  173. # nohex -> don't do :hex translations for anything
  174. # except dot files. specify usedots as well if
  175. # you want that turned off. note: this option
  176. # makes the / character illegal.
  177. # usedots -> don't do :hex translation for dot files. note: when
  178. # this option gets set, certain file names
  179. # become illegal. these are .Parent and
  180. # anything that starts with .Apple.
  181. # invisibledots -> don't do :hex translation for dot files. note: when
  182. # this option gets set, certain file names
  183. # become illegal. these are .Parent and
  184. # anything that starts with .Apple. also, dot
  185. # files created on the unix side are marked invisible.
  186. # limitsize -> limit disk size reporting to 2GB. this is
  187. # here for older macintoshes using newer
  188. # appleshare clients. yucko.
  189. # nofileid -> don't advertise createfileid, resolveid, deleteid
  190. # calls
  191. # root_preexec_close -> a non-zero return code from root_preexec close the
  192. # volume being mounted.
  193. # preexec_close -> a non-zero return code from preexec close the
  194. # volume being mounted.
  195. # nostat -> don't stat volume path when enumerating volumes list
  196. # upriv -> use unix privilege.
  197. # illegalseq -> encode illegal sequence in filename asis,
  198. # ex "\217-", which is not a valid SHIFT-JIS char,
  199. # is encoded as U\217 -
  200. # nocnidcache -> Don't store and read CNID to/from AppleDouble file.
  201. # This should not be used as it also prevents a CNID
  202. # database rebuild with `dbd`!
  203. # caseinsensitive -> The underlying FS is case insensitive (only
  204. # test with JFS in OS2 mode)
  205. # dropbox -> Allows a volume to be declared as being a "dropbox."
  206. # Note that netatalk must be compiled with dropkludge
  207. # support for this to function. Warning: This option
  208. # is deprecated and might not work as expected.
  209. # dropkludge -> same as "dropbox"
  210. # nodev -> always use 0 for device number, helps when the
  211. # device number is not constant across a reboot,
  212. # cluster, ...
  213. #
  214.  
  215. # The line below sets some DEFAULT, starting with Netatalk 2.1.
  216. :DEFAULT: options:upriv,usedots,rw,tm
  217.  
  218. # By default all users have access to their home directories.
  219. ~/ "Home Directory"
  220. /mnt "Disk"
  221. # End of File
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement