📄 swriteboot.8
字号:
.\" sdisklabel - Write secondary SRM bootloader to harddisk.TH swriteboot 8 "17 January 1995" "David Mosberger" "".SH NAMEswriteboot \- 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 loaderand - optionally - a kernel toa harddisk. The loader is written in a way that allows the SRMfirmware to boot from that disk (SRM is the firmware that is also usedto boot \fBCompaq Tru64\fP, OpenVMS and *BSD).Specifically, the loader is written toa physically contiguous range of sectors starting at sector 2 and thefirst sector is updated such that the SRM firmware can find the bootloader. \fBswriteboot\fP may fail if the bootstrap loader is too bigto fit into the sectors reserved for boot purposes. It is thereforesuggested to reserve the first 512 sectors of a harddisk for bootpurposes. This will leave 256KB of space for a secondary bootstraploader which should be plenty (currently, the \fBaboot\fP(8) bootstraploader is about 80KB large). Use more if you want to have a kernel in thisarea, too - 2MB should be sufficient in this case..PThe \fI<dev>\fP argument specifies the special device to which the\fI<bootloader>\fP file should be written to. The boot loader filemust be a header-less image (not an object file) containing the rawcontents of the text, data, and bss sections. A typical command tomake SCSI disk 0 bootable with the \fIaboot\fP(8) loader is shownbelow:.I "e2writeboot /dev/fd0 bootlx".PThe \fI-v\fP option makes \fBswriteboot\fP be a bit more verbose..PThe \fI-f#\fP option tells \fBswriteboot\fP to ignore an overlap of the boot area withpartition \fI#\fP..nf.SH SEE ALSO.IR aboot (8) ,.IR abootconf (8) ,.IR mke2fs (8) ,.IR e2writeboot (8).nf.SH AUTHORS.nfBob Manson <manson@magnus.acs.ohio-state.edu>Michael Schwingen <m.schwingen@stochastik.rwth-aachen.de>.fi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -