partfs 851 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. .TH PARTFS 8
  2. .SH NAME
  3. partfs \- serve file, with partitions
  4. .SH SYNOPSIS
  5. .B disk/partfs
  6. [
  7. .B -r
  8. ]
  9. [
  10. .B -f
  11. .I file
  12. ]
  13. [
  14. .B -m
  15. .I mtpt
  16. ]
  17. [
  18. .B -s
  19. .I srvname
  20. ]
  21. [
  22. .I diskname
  23. ]
  24. .SH DESCRIPTION
  25. .I Partfs
  26. presents
  27. .I file
  28. in the manner of
  29. .IR sd (3)
  30. on
  31. .IB mtpt / diskname
  32. (default
  33. .BR /dev/sdXX ).
  34. Changes made to the disk are written through to
  35. .I file
  36. unless the
  37. .B -r
  38. option is given.
  39. .PP
  40. When setting disk geometry with the
  41. .B geometry
  42. control message,
  43. the arguments are
  44. sectors and sector size.
  45. .PP
  46. The
  47. .B -s
  48. option causes
  49. .I partfs
  50. to post its 9P service at
  51. .BI /srv/ service \fR.
  52. .SH EXAMPLES
  53. Partition a USB flash device:
  54. .IP
  55. .EX
  56. usb/disk
  57. disk/partfs -f /n/disk/0/data
  58. disk/mbr /dev/sdXX/data
  59. disk/fdisk -baw /dev/sdXX/data
  60. disk/prep /dev/sdXX/plan9
  61. .EE
  62. .SH SOURCE
  63. .B /sys/src/cmd/disk/partfs.c
  64. .SH SEE ALSO
  65. .IR sd (3),
  66. .IR disksim (8),
  67. .IR prep (8)