DISK161(1)

NAME
disk161 - System/161 disk utility

SYNOPSIS
disk161 create [-f] filename size
disk161 info filename ...
disk161 resize filename delta-size

DESCRIPTION
The disk161 utility manages System/161 disk images.

create
    When run with the create command, it creates a new disk image of the requested size. Unless the -f (force) option is given, disk161 will not erase or clobber an already-existing file.

info
    When run with the info command, disk161 prints information about one or more disk image files.

resize
    When run with the resize command, disk161 changes the size of an existing disk image file by the requested amount delta-size, which may be positive or negative. Note that disk161 changes the physical size of the disk; if the disk image contains a file system or other data, one must also take file-system-level steps to resize the logical structure. In particular, shrinking a disk image without first shrinking the file system on it will throw away data and often fatally corrupt the file system.

The size and delta-size values may be given in bytes (plain number, or "b" suffix), sectors ("s" suffix), kilobytes ("K" suffix), or (traditional) megabytes and gigabytes ("M" and "G" suffixes respectively); sizes must be a multiple of the sector size, which is 512 bytes.

Note that System/161 disk images contain a 1-sector header with a signature string; this is to help prevent accidents.

SEE ALSO
sys161(1)

BUGS
System/161 only supports native System/161 disk images, which are plain raw images with a 512-byte header. It would be helpful to support compression and possibly other more advanced formats, such as the qemu(1) qcow2 format.