xref: /plan9/sys/man/8/partfs (revision 27acba7cf6d37c65abba4ecf8ad572a5980447ad)
PARTFS 8
NAME
partfs - serve file, with partitions
SYNOPSIS
disk/partfs [ -Dr ] [ -d diskname ] [ -m mtpt ] [ -p 9load-parts ] [ -s srvname ] diskimage
DESCRIPTION
Partfs presents the file diskimage in the manner of sd (3) on mtpt / diskname (default /dev/sdXX ). Changes made to the disk are written through to diskimage unless the -r option is given.

When setting disk geometry with the geometry control message, the arguments are sectors and sector size.

The -m option causes partfs to mount its synthetic file system at mtpt instead of /dev .

The -p option causes partfs to treat 9load-parts as a partition environment variable constructed by 9load (see 9boot (8)) and adds the defined partitions. This is used primarily by boot (8) to assist booting from USB disks.

The -s option causes partfs to post its 9P service at /srv/ service .

EXAMPLES
Partition a USB flash device:
.EX disk/partfs /dev/sdU0.0/data disk/mbr -m /386/mbr /dev/sdXX/data disk/fdisk -baw /dev/sdXX/data disk/prep /dev/sdXX/plan9
SOURCE
/sys/src/cmd/disk/partfs.c
SEE ALSO
fs (3), sd (3), disksim (8), prep (8)