xref: /netbsd-src/sbin/apmlabel/apmlabel.8 (revision 688ef4d82320c729e1f34e40c303f45748ea5cb6)
1*688ef4d8Srumble.\"	$NetBSD: apmlabel.8,v 1.3 2007/06/25 00:41:50 rumble Exp $
236f6e809Swiz.\"
3eaf2e0beSdillo.\" Copyright (C) 1998 Wolfgang Solfrank.
4eaf2e0beSdillo.\" Copyright (C) 1998 TooLs GmbH.
5eaf2e0beSdillo.\" All rights reserved.
6eaf2e0beSdillo.\"
7eaf2e0beSdillo.\" Redistribution and use in source and binary forms, with or without
8eaf2e0beSdillo.\" modification, are permitted provided that the following conditions
9eaf2e0beSdillo.\" are met:
10eaf2e0beSdillo.\" 1. Redistributions of source code must retain the above copyright
11eaf2e0beSdillo.\"    notice, this list of conditions and the following disclaimer.
12eaf2e0beSdillo.\" 2. Redistributions in binary form must reproduce the above copyright
13eaf2e0beSdillo.\"    notice, this list of conditions and the following disclaimer in the
14eaf2e0beSdillo.\"    documentation and/or other materials provided with the distribution.
15eaf2e0beSdillo.\" 3. All advertising materials mentioning features or use of this software
16eaf2e0beSdillo.\"    must display the following acknowledgement:
17eaf2e0beSdillo.\"	This product includes software developed by TooLs GmbH.
18eaf2e0beSdillo.\" 4. The name of TooLs GmbH may not be used to endorse or promote products
19eaf2e0beSdillo.\"    derived from this software without specific prior written permission.
20eaf2e0beSdillo.\"
21eaf2e0beSdillo.\" THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR
22eaf2e0beSdillo.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23eaf2e0beSdillo.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24eaf2e0beSdillo.\" IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25eaf2e0beSdillo.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26eaf2e0beSdillo.\" PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27eaf2e0beSdillo.\" OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28eaf2e0beSdillo.\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29eaf2e0beSdillo.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
30eaf2e0beSdillo.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31eaf2e0beSdillo.\"
3236f6e809Swiz.Dd May 19, 2007
33eaf2e0beSdillo.Dt APMLABEL 8
34eaf2e0beSdillo.Os
35eaf2e0beSdillo.Sh NAME
36eaf2e0beSdillo.Nm apmlabel
37eaf2e0beSdillo.Nd update disk label from Apple Partition Map
38eaf2e0beSdillo.Sh SYNOPSIS
39eaf2e0beSdillo.Nm
40eaf2e0beSdillo.Op Fl fqrw
41eaf2e0beSdillo.Ar device
42eaf2e0beSdillo.Sh DESCRIPTION
43eaf2e0beSdillo.Nm
44eaf2e0beSdillois used to update a
45eaf2e0beSdillo.Nx
46eaf2e0beSdillodisk label from the Apple Partition Map found
47eaf2e0beSdilloon disks that were previously used on Mac OS systems (or
48eaf2e0beSdilloother APM using systems).
49eaf2e0beSdillo.Pp
50eaf2e0beSdillo.Nm
51eaf2e0beSdilloscans the APM contained in the first blocks of the disk and generates
52eaf2e0beSdilloadditional partition entries for the disk from the entries found.
53eaf2e0beSdilloDriver and patches partitions are ignored.
54eaf2e0beSdillo.Pp
55eaf2e0beSdilloEach APM entry which does not have an equivalent partition in the
56eaf2e0beSdillodisk label (equivalent in having the same size and offset) is added to
57eaf2e0beSdillothe first free partition slot in the disk label.
58eaf2e0beSdilloA free partition slot is defined as one with an
59eaf2e0beSdillo.Dv fstype
60eaf2e0beSdilloof
61eaf2e0beSdillo.Sq Li unused
62eaf2e0beSdilloand a
63eaf2e0beSdillo.Dv size
64eaf2e0beSdilloof zero
65eaf2e0beSdillo.Pq Sq 0 .
66eaf2e0beSdilloIf there are not enough free slots in the disk label, a warning
67eaf2e0beSdillowill be issued.
68eaf2e0beSdillo.Pp
69eaf2e0beSdilloThe raw partition (typically partition
70eaf2e0beSdillo.Em c ,
71eaf2e0beSdillobut
72eaf2e0beSdillo.Em d
73eaf2e0beSdilloon i386 and some other platforms) is left alone during this process.
74eaf2e0beSdillo.Pp
75eaf2e0beSdilloBy default, the proposed changed disk label will be displayed and no
76eaf2e0beSdillodisk label update will occur.
77eaf2e0beSdillo.Pp
78eaf2e0beSdilloAvailable options:
79eaf2e0beSdillo.Pp
80eaf2e0beSdillo.Bl -tag -width sX
81eaf2e0beSdillo.It Fl f
82eaf2e0beSdilloForce an update, even if there has been no change.
83eaf2e0beSdillo.It Fl q
84eaf2e0beSdilloPerforms operations in a quiet fashion.
85eaf2e0beSdillo.It Fl r
86eaf2e0beSdilloIn conjunction with
87eaf2e0beSdillo.Fl w ,
88eaf2e0beSdilloalso update the on-disk label.
8936f6e809Swiz.It Fl w
9036f6e809SwizUpdate the in-core label if it has been changed.
91eaf2e0beSdillo.El
92eaf2e0beSdillo.Sh SEE ALSO
93eaf2e0beSdillo.Xr disklabel 8 ,
94eaf2e0beSdillo.Xr dkctl 8 ,
95*688ef4d8Srumble.Xr pdisk 8
96eaf2e0beSdillo.Sh HISTORY
97eaf2e0beSdilloThe
98eaf2e0beSdillo.Nm
99eaf2e0beSdillocommand appeared in
100eaf2e0beSdillo.Nx 5.0 .
101