xref: /netbsd-src/share/man/man8/man8.x68k/newdisk.8 (revision 99f13c162d27669b6dc9ebb1777726d2c5a5730f)
1*99f13c16Swiz.\"	$NetBSD: newdisk.8,v 1.12 2017/02/18 21:47:11 wiz Exp $
27330ce45Sminoura.\"
37330ce45Sminoura.\" Copyright (c) 1998 MINOURA Makoto.
47330ce45Sminoura.\" All rights reserved.
57330ce45Sminoura.\"
67330ce45Sminoura.\" Redistribution and use in source and binary forms, with or without
77330ce45Sminoura.\" modification, are permitted provided that the following conditions
87330ce45Sminoura.\" are met:
97330ce45Sminoura.\" 1. Redistributions of source code must retain the above copyright
107330ce45Sminoura.\"    notice, this list of conditions and the following disclaimer.
117330ce45Sminoura.\" 2. Redistributions in binary form must reproduce the above copyright
127330ce45Sminoura.\"    notice, this list of conditions and the following disclaimer in the
137330ce45Sminoura.\"    documentation and/or other materials provided with the distribution.
147330ce45Sminoura.\" 3. All advertising materials mentioning features or use of this software
157330ce45Sminoura.\"    must display the following acknowledgement:
167330ce45Sminoura.\"    This product includes software developed by Minoura Makoto.
177330ce45Sminoura.\" 4. The name of the author may not be used to endorse or promote products
187330ce45Sminoura.\"    derived from this software without specific prior written permission
197330ce45Sminoura.\"
207330ce45Sminoura.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
217330ce45Sminoura.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
227330ce45Sminoura.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
237330ce45Sminoura.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
247330ce45Sminoura.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
257330ce45Sminoura.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
267330ce45Sminoura.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
277330ce45Sminoura.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
287330ce45Sminoura.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
297330ce45Sminoura.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
307330ce45Sminoura.\"
313af2acdcSchristos.Dd February 17, 2017
320f1257e6Swiz.Dt NEWDISK 8 x68k
33997634feSjoerg.Os
347330ce45Sminoura.Sh NAME
357330ce45Sminoura.Nm newdisk
367330ce45Sminoura.Nd "Prepare a new disk to be usable for X680x0"
377330ce45Sminoura.Sh SYNOPSIS
387330ce45Sminoura.Nm
393e9a8268Sminoura.Op Fl vnfcp
407330ce45Sminoura.Op Fl m Ar mboot
417330ce45Sminoura.Ar raw_device
427330ce45Sminoura.Sh DESCRIPTION
437330ce45Sminoura.Nm
447330ce45Sminouraprepares a new hard disk to be bootable from by X680x0.  It should NOT be used
457330ce45Sminourafor floppy disks.
467330ce45Sminoura.Pp
477330ce45SminouraIt creates a disk mark for IOCS to determine the disk geometry,
487330ce45Sminourawrites the primary boot program (mboot), and creates empty partition table.
497330ce45SminouraThe option are as follows:
507330ce45Sminoura.Bl -tag -width flag
517330ce45Sminoura.It Fl v
527330ce45SminouraVerbose mode.
537330ce45Sminoura.It Fl n
547330ce45SminouraDryrun mode.  Nothing is written to the disk.
557330ce45Sminoura.It Fl f
567330ce45SminouraForce.  Usually, when
577330ce45Sminoura.Nm
587330ce45Sminouradetects existing disk mark, it aborts with some error messages.
597330ce45Sminoura.Fl f
607330ce45Sminouraoption prevents this behaviour.
617330ce45Sminoura.It Fl c
627330ce45SminouraCheck only.
637330ce45Sminoura.Nm
64f46e568aScjeplooks at the disk whether it is already marked.
653e9a8268Sminoura.It Fl p
663e9a8268SminouraDo not create the partition table.
677330ce45Sminoura.It Fl m Ar mboot
687330ce45SminouraSpecifies the mboot program to be written.
697330ce45Sminoura.El
707330ce45Sminoura.Sh FILES
717330ce45Sminoura.Bl -tag -width /usr/mdec/mboot -compact
727330ce45Sminoura.It Pa /usr/mdec/mboot
737330ce45SminouraThe default primary boot program.
747330ce45Sminoura.El
757330ce45Sminoura.Sh SEE ALSO
76*99f13c16Swiz.Xr installboot 8 ,
77*99f13c16Swiz.Xr x68k/boot 8
787330ce45Sminoura.Sh HISTORY
797330ce45SminouraThe
807330ce45Sminoura.Nm
817330ce45Sminourautility first appeared in
827330ce45Sminoura.Nx 1.5 .
834e2d7523Swiz.Sh AUTHORS
844e2d7523Swiz.Nm
854e2d7523Swizwas written by
86a5684d07Swiz.An MINOURA Makoto Aq Mt minoura@NetBSD.org .
87