1.\" $NetBSD: sgivol.8,v 1.5 2007/12/01 18:35:06 wiz Exp $ 2.\" 3.\" Copyright (c) 2006 Stephen M. Rumble 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. The name of the author may not be used to endorse or promote products 12.\" derived from this software without specific prior written permission. 13.\" 14.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 15.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 16.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 18.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24.\" 25.Dd March 10, 2007 26.Dt SGIVOL 8 27.Os 28.Sh NAME 29.Nm /usr/mdec/sgivol 30.Nd configure SGI Volume Header 31.Sh SYNOPSIS 32.Nm 33.Op Fl fq 34.Ar device 35.Nm 36.Op Fl fq 37.Fl i 38.Op Fl h Ar vhsize 39.Ar device 40.Nm 41.Op Fl fq 42.Fl r 43.Ar vhfilename 44.Ar diskfilename 45.Ar device 46.Nm 47.Op Fl fq 48.Fl w 49.Ar vhfilename 50.Ar diskfilename 51.Ar device 52.Nm 53.Op Fl fq 54.Fl d 55.Ar vhfilename 56.Ar device 57.Nm 58.Op Fl fq 59.Fl p 60.Ar partno 61.Ar partfirst 62.Ar partblocks 63.Ar parttype 64.Ar device 65.Sh DESCRIPTION 66The 67.Nm 68program prepares an SGI Volume Header to be used to boot 69.Nx . 70The 71.Tr SGI 72PROM is able to load executables within the header, which in turn are used 73to load the kernel from another file system. 74.Sh OPTIONS 75The following options are available: 76.Bl -tag -width 123456 77.It Fl f 78Force the operation. 79Do not ask the user before proceeding. 80.It Fl h 81Set the size of the newly initialized volume header in blocks. 82One block is 512 bytes. 83The default volume header size is 3135 blocks (1.53MB). 84.It Fl q 85Suppress output. 86.El 87.Sh PARTITION TYPES 88The numerical partition types for the volume header include: 89.Bd -unfilled -offset indent 90 0: Volume Header 91 1: Replicated Tracks 92 2: Replicated Sectors 93 3: Raw 94 4: BSD4.2 file system 95 5: SysV file system 96 6: Entire Volume (all disk blocks) 97 7: EFS 98 8: Logical Volume 99 9: Raw Logical Volume 100 10: XFS 101 11: XFS Log 102 12: XLV Volume 103 13: XVM Volume 104.Ed 105.Sh EXAMPLES 106To display the existing volume header and partition table on disk 107.Dq sd0 : 108.Dl Ic sgivol sd0 109.Pp 110To initialize a new volume header 42 512-byte blocks large on disk 111.Dq sd0 : 112.Dl Ic sgivol -i -h 42 sd0 113.Pp 114To copy a file 115.Pa boot 116from the volume header to local file 117.Pa /tmp/boot 118on disk 119.Dq sd0 : 120.Dl Ic sgivol -r boot /tmp/boot sd0 121.Pp 122To copy a local file 123.Pa /usr/mdec/ip2xboot 124to the volume header as 125.Pa boot 126on disk 127.Dq sd0 : 128.Dl Ic sgivol -w boot /usr/mdec/ip2xboot sd0 129.Pp 130To delete the existing file 131.Pa boot 132from the volume header on disk 133.Dq sd0 : 134.Dl Ic sgivol -d boot sd0 135.Pp 136To change partition 0 to type 4 (BSD4.2) beginning at block offset 3200 137and continue for 28000 blocks on disk 138.Dq sd0 : 139.Dl Ic sgivol -p 0 3200 28000 4 sd0 140.Sh SEE ALSO 141.Xr boot 8 142