PARTFS(8)PARTFS(8)NAMEpartfs - 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 writ‐
ten through to diskimage unless the -r option is given.
When setting disk geometry with the geometry control message, the argu‐
ments 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 envi‐
ronment variable constructed by 9load (see 9boot(8)) and adds the
defined partitions. This is used primarily by boot(8) to assist boot‐
ing from USB disks.
The -s option causes partfs to post its 9P service at /srv/service.
EXAMPLES
Partition a USB flash device:
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 ALSOfs(3), sd(3), disksim(8), prep(8)PARTFS(8)