swriteboot.8 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. .\" sdisklabel - Write secondary SRM bootloader to harddisk
  2. .TH swriteboot 8 "17 January 1995" "David Mosberger" ""
  3. .SH NAME
  4. swriteboot \- Write secondary SRM bootloader to harddisk.
  5. .SH SYNOPSIS
  6. \fBswriteboot\fP [-v] [-f#] <dev> <bootloader> [kernel]
  7. .SH DESCRIPTION
  8. \fBswriteboot\fP can be used to write a secondary bootstrap loader
  9. and - optionally - a kernel to
  10. a harddisk. The loader is written in a way that allows the SRM
  11. firmware to boot from that disk (SRM is the firmware that is also used
  12. to boot \fBHP Tru64\fP, \fBOpenVMS\fP and *BSD).
  13. Specifically, the loader is written to occupy
  14. a physically contiguous range of sectors starting at sector 2 and the
  15. first sector is updated such that the SRM firmware can find the boot
  16. loader. \fBswriteboot\fP may fail if the bootstrap loader is too big
  17. to fit into the sectors reserved for boot purposes. It is therefore
  18. suggested to reserve the first 512 sectors of a harddisk for boot
  19. purposes. This will leave 256 kB of space for a secondary bootstrap
  20. loader which should be plenty (currently, the \fBaboot\fP(8) bootstrap
  21. loader is about 90 kB large). Use more if you want to have a kernel in this
  22. area, too - 2 MB should be sufficient in this case.
  23. .P
  24. The \fI<dev>\fP argument specifies the special device to which the
  25. \fI<bootloader>\fP file should be written to. The boot loader file
  26. must be a header-less image (not an object file) containing the raw
  27. contents of the text, data, and bss sections. A typical command to
  28. make SCSI disk 0 bootable with the \fIaboot\fP(8) loader is shown
  29. below:
  30. .I "swriteboot /dev/sda bootlx"
  31. .P
  32. The \fI-v\fP option makes \fBswriteboot\fP be a bit more verbose.
  33. .P
  34. The \fI-f#\fP option tells \fBswriteboot\fP to ignore an overlap of the boot area with
  35. partition \fI#\fP.
  36. .P
  37. The \fI-c#\fP option explicitly tells \fBswriteboot\fP the boot partition.
  38. If this argument is missing, then \fBswriteboot\fP tries to autodetect the
  39. boot partition if possible. Note that you can set the boot partition later
  40. on with \fBabootconf\fP(8) as well.
  41. .nf
  42. .SH SEE ALSO
  43. .IR aboot (8) ,
  44. .IR abootconf (8) ,
  45. .IR mke2fs (8) ,
  46. .IR e2writeboot (8)
  47. .nf
  48. .SH AUTHORS
  49. .nf
  50. Bob Manson <manson@magnus.acs.ohio-state.edu>
  51. Michael Schwingen <michael@schwingen.org>
  52. Helge Kreutzmann <debian@helgefjell.de> (Update of man page)
  53. .fi