File: swriteboot.8

package info (click to toggle)
aboot 0.9b-3+etchnhalf.1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 980 kB
  • ctags: 1,656
  • sloc: ansic: 8,975; perl: 738; makefile: 382; asm: 309; sh: 3
file content (50 lines) | stat: -rw-r--r-- 1,925 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.\" sdisklabel - Write secondary SRM bootloader to harddisk
.TH swriteboot 8 "17 January 1995" "David Mosberger" ""
.SH NAME
swriteboot \- Write secondary SRM bootloader to harddisk.
.SH SYNOPSIS
\fBswriteboot\fP [-v] [-f#] <dev> <bootloader> [kernel]
.SH DESCRIPTION

\fBswriteboot\fP can be used to write a secondary bootstrap loader 
and - optionally - a kernel to
a harddisk.  The loader is written in a way that allows the SRM
firmware to boot from that disk (SRM is the firmware that is also used
to boot DEC Unix and OpenVMS).  Specifically, the loader is written to
a physically contiguous range of sectors starting at sector 2 and the
first sector is updated such that the SRM firmware can find the boot
loader.  \fBswriteboot\fP may fail if the bootstrap loader is too big
to fit into the sectors reserved for boot purposes.  It is therefore
suggested to reserve the first 512 sectors of a harddisk for boot
purposes.  This will leave 256KB of space for a secondary bootstrap
loader which should be plenty (currently, the \fBaboot\fP bootstrap
loader is about 80KB large). Use more if you want to have a kernel in this
area, too - 2MB should be sufficient in this case.

.P
The \fI<dev>\fP argument specifies the special device to which the
\fI<bootloader>\fP file should be written to.  The boot loader file
must be a header-less image (not an object file) containing the raw
contents of the text, data, and bss sections.  A typical command to
make SCSI disk 0 bootable with the \fIaboot\fP loader is shown
below:

.I "e2writeboot /dev/fd0 bootlx"

.P
The \fI-v\fP option makes swriteboot be a bit more verbose.
.P
The \fI-f#\fP option tells wrtiteboot to ignore an overlap of the boot area with
partition \fI#\fP.

.nf
.SH SEE ALSO
.IR aboot (8) ,
.IR mke2fs (8) ,
.IR e2writeboot (8)
.nf
.SH AUTHORS
.nf
Bob Manson <manson@magnus.acs.ohio-state.edu>
Michael Schwingen <m.schwingen@stochastik.rwth-aachen.de>
.fi