shithub: riscv

ref: 614f1d6268fd986fc628eec3754bd4599363ad13
dir: /sys/man/8/partfs/

View raw version
.TH PARTFS 8
.SH NAME
partfs \- serve file, with partitions
.SH SYNOPSIS
.B disk/partfs
[
.B -Dr
]
[
.B -d
.I diskname
]
[
.B -m
.I mtpt
]
[
.B -s
.I srvname
]
.I diskimage
.SH DESCRIPTION
.I Partfs
presents the file
.I diskimage
in the manner of
.IR sd (3)
on
.IB mtpt / diskname
(default
.BR /dev/sdXX ).
Changes made to the disk are written through to
.I diskimage
unless the
.B -r
option is given.
.PP
When setting disk geometry with the
.B geometry
control message,
the arguments are
sectors and sector size.
.PP
The
.B -s
option causes
.I partfs
to post its 9P service at
.BI /srv/ service \fR.
.SH EXAMPLES
Partition a USB flash device:
.IP
.EX
usb/disk
disk/partfs /n/disk/0/data
disk/mbr -m /386/mbr /dev/sdXX/data
disk/fdisk -baw /dev/sdXX/data
disk/prep /dev/sdXX/plan9
.EE
.SH SOURCE
.B /sys/src/cmd/disk/partfs.c
.SH SEE ALSO
.IR sd (3),
.IR disksim (8),
.IR prep (8)