blob: c22b8d4b8d90a840923a242e3bcb261f41abdb33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
.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)
|