home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Distributions / ucb / 2.11BSD / HOWTO < prev    next >
Text File  |  2000-04-23  |  3KB  |  116 lines

  1.     This is a brief description of howto create a bootable 2.11BSD tape
  2.     from the files in this directory.
  3.     
  4.     First you should have a set of files/directories that look like this:
  5.  
  6. total 31653
  7. -rw-r-----   1 root  wheel       135 Apr 22 21:12 .mkisofsrc
  8. -rw-r--r--   1 root  wheel      3410 Apr 22 21:13 HOWTO
  9. -rwxr-xr-x   1 root  wheel     35236 Apr 22 20:50 boot
  10. -rwxr-xr-x   1 root  wheel        63 Apr 22 20:19 cdw
  11. -rw-r--r--   1 sms   wheel   1201381 Apr 23 20:36 chown+chmod.sh
  12. -rwxr-xr-x   1 root  wheel     37881 Apr 22 20:51 disklabel
  13. -rw-r--r--   1 root  wheel  11681254 Apr 22 20:57 file6.tar.gz
  14. -rw-r--r--   1 root  wheel   1378438 Apr 22 20:57 file7.tar.gz
  15. -rw-r--r--   1 root  wheel  14098801 Apr 22 20:58 file8.tar.gz
  16. -rwxr-xr-x   1 root  wheel     33032 Apr 22 20:51 icheck
  17. -rwxr-xr-x   1 root  wheel       493 Apr 22 20:56 m
  18. -rw-r--r--   1 root  wheel      2172 Apr 28  1991 maketape.c
  19. -rw-r--r--   1 root  wheel        95 Aug  7  1997 maketape.data
  20. -rwxr-xr-x   1 root  wheel        57 Apr 22 20:19 mk
  21. -rwxr-xr-x   1 root  wheel     33158 Apr 22 20:51 mkfs
  22. -rw-r--r--   1 root  wheel       490 Apr 22 20:51 mtboot
  23. -rwxr-xr-x   1 root  wheel     35742 Apr 22 20:51 restor
  24. drwxr-xr-x  14 sms   wheel      1024 Apr 22 20:22 root
  25. -rw-r--r--   1 sms   wheel   3440640 Apr 23 20:18 root.dump
  26. -rw-r--r--   1 sms   wheel    344682 Oct 27  1997 setup.ps
  27.  
  28.     You can ignore .mkisofsrc, cdw, mk and root but you must have AT LEAST
  29.  
  30.         boot
  31.         disklabel
  32.         file6.tar.gz
  33.         file7.tar.gz
  34.         file8.tar.gz
  35.         icheck
  36.         mkfs
  37.         mtboot
  38.         restor
  39.         root.dump
  40.  
  41.     file6.tar is a tar archive containing usr/ without usr/src or 
  42.     usr/include.
  43.  
  44.     file7.tar is a tar archive containing usr/src/sys and usr/src/include
  45.  
  46.     file8.tar is a tar archvie containing everything else in usr/
  47.  
  48.     setup.ps is a Postscript version of the setup/installation documentation
  49.  
  50.     The format of a 2.11BSD boot tape is:
  51.  
  52.     File    Blocksize    Content
  53.     0    512        mtboot
  54.         512        mtboot
  55.         512        boot
  56.     1    1024        disklabel
  57.     2    1024        mkfs
  58.     3    1024        restor
  59.     4    1024        icheck
  60.     5    10240        root.dump
  61.     6    10240        file6.tar
  62.     7    10240        file7.tar
  63.     8    10240        file8.tar
  64.  
  65.     Traditionally 2.11BSD was distributed on 2 1600bpi 9-track tapes and
  66.     file8.tar was on the second volume.  The bare MINIMUM boot tape
  67.     consists of the first 6 files (the standalone utilities and root.dump).
  68.     That is enough to load the root filesystem and boot from disk and use
  69.     tar to load the remaining files (which could be sneakernet'd over one
  70.     per tape if necessary/desired).
  71.  
  72.     There are two ways to write a boot tape.  The first uses 'dd' (the
  73.     name /dev/nrst0 is used below - substitute local conventions):
  74.  
  75.         cat mtboot mtboot boot | dd of=/dev/nrst0 obs=512
  76.         dd if=disklabel of=/dev/nrst0 obs=1024
  77.         dd if=mkfs of=/dev/nrst0 obs=1024
  78.         dd if=restor of=/dev/nrst0 obs=1024
  79.         dd if=icheck of=/dev/nrst0 obs=1024
  80.         dd if=root.dump of=/dev/nrst0 obs=10240
  81.         dd if=file6.tar of=/dev/nrst0 obs=10240
  82.         dd if=file7.tar of=/dev/nrst0 obs=10240
  83.         dd if=file8.tar of=/dev/nrst0 obs=10240
  84.  
  85.     maketape.c is a simple C program which reads a small configuration file 
  86.     (maketape.data) and will write the tape:
  87.  
  88.         cc -o maketape maketape.c
  89.         ./maketape /dev/nrst0 maketape.data
  90.  
  91.     maketape.data by default looks like this:
  92. mtboot 1
  93. mtboot 1
  94. boot 1
  95. * 1
  96. disklabel 2
  97. * 1
  98. mkfs 2
  99. * 1
  100. restor 2
  101. * 1
  102. icheck 2
  103. * 1
  104. root.dump 20
  105.  
  106.     and will write only the first 5 files.  You may either add the lines:
  107.  
  108. * 1
  109. file6.tar 20
  110. * 1
  111. file7.tar 20
  112. * 1
  113. file8.tar 20
  114.  
  115.     or simply run the 3 'dd' commands manually.
  116.