mbrlabel(8) - NetBSD Manual Pages

MBRLABEL(8)             NetBSD System Manager's Manual             MBRLABEL(8)


NAME
mbrlabel - update disk label from MBR label(s)
SYNOPSIS
mbrlabel [-fqrw] device
DESCRIPTION
mbrlabel is used to update a NetBSD disk label from the Master Boot Record (MBR) label(s) found on disks that were previously used on DOS/Windows systems (or other MBR using systems). mbrlabel scans the MBR contained in the very first block of the disk, then walks through every extended partition found and generating addi- tional partition entries for the disk from the MBRs found in those ex- tended partitions. Each MBR partition which does not have an equivalent partition in the disk label (equivalent in having the same size and offset) is added to the first free partition slot in the disk label. A free partition slot is defined as one with an fstype of `unused' and a size of zero (`0'). If there are not enough free slots in the disk label, a warning will be is- sued. The raw partition (typically partition c, but d on i386 and some othe platforms) is left alone during this process. By default, the proposed changed disk label will be displayed and no disk label update will occur. Available options: -f Force an update, even if there has been no change. -q Performs operations in a quiet fashion. -r Update both the in-core and the on-disk label if the in-core la- bel has been changed. -w Update the on-disk label if it has been changed.
SEE ALSO
disklabel(8), fdisk(8)
HISTORY
The mbrlabel command appeared in NetBSD 1.4. NetBSD 1.5.3 December 27, 2000 1

Powered by man-cgi (2024-08-26). Maintained for NetBSD by Kimmo Suominen. Based on man-cgi by Panagiotis Christias.