1 .\" $NetBSD: sgivol.8,v 1.8 2008/09/24 18:19:13 reed Exp $
3 .\" Copyright (c) 2006 Stephen M. Rumble
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
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.
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.
30 .Nd configure SGI Volume Header
74 program prepares an SGI Volume Header to be used to boot
78 PROM is able to load executables within the header, which in turn are used
79 to load the kernel from another file system.
81 The following options are available:
82 .Bl -tag -width 123456
85 Do not ask the user before proceeding.
87 Set the size of the newly initialized volume header in blocks.
88 One block is 512 bytes.
89 The default volume header size is 3135 blocks (1.53MB).
94 The numerical partition types for the volume header include:
95 .Bd -unfilled -offset indent
100 4: BSD4.2 file system
102 6: Entire Volume (all disk blocks)
105 9: Raw Logical Volume
112 To display the existing volume header and partition table on disk
116 To initialize a new volume header 42 512-byte blocks large on disk
118 .Dl Ic sgivol -i -h 42 sd0
122 from the volume header to local file
126 .Dl Ic sgivol -r boot /tmp/boot sd0
129 .Pa /usr/mdec/ip2xboot
130 to the volume header as
134 .Dl Ic sgivol -w boot /usr/mdec/ip2xboot sd0
136 To delete the existing file
138 from the volume header on disk
140 .Dl Ic sgivol -d boot sd0
142 To move (rename) an existing file
146 in the volume header on disk
148 .Dl Ic sgivol -m file1 file2 sd0
150 To change partition 0 to type 4 (BSD4.2) beginning at block offset 3200
151 and continue for 28000 blocks on disk
153 .Dl Ic sgivol -p 0 3200 28000 4 sd0