1
0

partfs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. .TH PARTFS 8
  2. .SH NAME
  3. partfs \- serve file, with partitions
  4. .SH SYNOPSIS
  5. .B disk/partfs
  6. [
  7. .B -Dr
  8. ] [
  9. .B -d
  10. .I diskname
  11. ] [
  12. .B -m
  13. .I mtpt
  14. ] [
  15. .B -p
  16. .I 9load-parts
  17. ] [
  18. .B -s
  19. .I srvname
  20. ]
  21. .I diskimage
  22. .SH DESCRIPTION
  23. .I Partfs
  24. presents the file
  25. .I diskimage
  26. in the manner of
  27. .IR sd (3)
  28. on
  29. .IB mtpt / diskname
  30. (default
  31. .BR /dev/sdXX ).
  32. Changes made to the disk are written through to
  33. .I diskimage
  34. unless the
  35. .B -r
  36. option is given.
  37. .PP
  38. When setting disk geometry with the
  39. .B geometry
  40. control message,
  41. the arguments are
  42. sectors and sector size.
  43. .PP
  44. The
  45. .B -m
  46. option causes
  47. .I partfs
  48. to mount its synthetic file system at
  49. .I mtpt
  50. instead of
  51. .BR /dev .
  52. .PP
  53. The
  54. .B -p
  55. option causes
  56. .I partfs
  57. to treat
  58. .I 9load-parts
  59. as a partition environment variable constructed by
  60. .I 9load
  61. (see
  62. .IR 9boot (8))
  63. and adds the defined partitions.
  64. This is used primarily by
  65. .IR boot (8)
  66. to assist booting from USB disks.
  67. .PP
  68. The
  69. .B -s
  70. option causes
  71. .I partfs
  72. to post its 9P service at
  73. .BI /srv/ service \fR.
  74. .SH EXAMPLES
  75. Partition a USB flash device:
  76. .IP
  77. .EX
  78. disk/partfs /dev/sdU0.0/data
  79. disk/mbr -m /386/mbr /dev/sdXX/data
  80. disk/fdisk -baw /dev/sdXX/data
  81. disk/prep /dev/sdXX/plan9
  82. .EE
  83. .SH SOURCE
  84. .B /sys/src/cmd/disk/partfs.c
  85. .SH SEE ALSO
  86. .IR fs (3),
  87. .IR sd (3),
  88. .IR disksim (8),
  89. .IR prep (8)