1.\" $NetBSD: newdisk.8,v 1.8 2009/03/09 19:24:32 joerg Exp $ 2.\" 3.\" Copyright (c) 1998 MINOURA Makoto. 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 3. All advertising materials mentioning features or use of this software 15.\" must display the following acknowledgement: 16.\" This product includes software developed by Minoura Makoto. 17.\" 4. The name of the author may not be used to endorse or promote products 18.\" derived from this software without specific prior written permission 19.\" 20.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 21.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 22.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 23.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 24.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 25.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30.\" 31.Dd December 24, 1999 32.Dt NEWDISK 8 x68k 33.Os 34.Sh NAME 35.Nm newdisk 36.Nd "Prepare a new disk to be usable for X680x0" 37.Sh SYNOPSIS 38.Nm 39.Op Fl vnfcp 40.Op Fl m Ar mboot 41.Ar raw_device 42.Sh DESCRIPTION 43.Nm 44prepares a new hard disk to be bootable from by X680x0. It should NOT be used 45for floppy disks. 46.Pp 47It creates a disk mark for IOCS to determine the disk geometry, 48writes the primary boot program (mboot), and creates empty partition table. 49The option are as follows: 50.Bl -tag -width flag 51.It Fl v 52Verbose mode. 53.It Fl n 54Dryrun mode. Nothing is written to the disk. 55.It Fl f 56Force. Usually, when 57.Nm 58detects existing disk mark, it aborts with some error messages. 59.Fl f 60option prevents this behaviour. 61.It Fl c 62Check only. 63.Nm 64looks at the disk whether it is already marked. 65.It Fl p 66Do not create the partition table. 67.It Fl m Ar mboot 68Specifies the mboot program to be written. 69.El 70.Sh FILES 71.Bl -tag -width /usr/mdec/mboot -compact 72.It Pa /usr/mdec/mboot 73The default primary boot program. 74.El 75.Sh SEE ALSO 76.Xr boot 8 , 77.Xr installboot 8 78.Sh HISTORY 79The 80.Nm 81utility first appeared in 82.Nx 1.5 . 83.Sh AUTHORS 84.Nm 85was written by 86.An MINOURA Makoto Aq minoura@NetBSD.org . 87