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:
|
SOURCE
/sys/src/cmd/disk/partfs.c |
SEE ALSO
fs(3), sd(3), disksim(8), prep(8) |