home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / att / 1886 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  52.8 KB

  1. Xref: sparky comp.sys.att:1886 news.answers:2210
  2. Newsgroups: comp.sys.att,news.answers
  3. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!newsserver.pixel.kodak.com!laidbak!tellab5!vpnet!serveme!gagme!greg
  4. From: greg@gagme.chi.il.us (Gregory Gulik)
  5. Subject: AT&T 3B2 Frequently Asked Questions and Answers
  6. Message-ID: <1992Jul20.222114.7424@gagme.chi.il.us>
  7. Followup-To: comp.sys.att
  8. Originator: greg@gagme
  9. Lines: 1296
  10. Sender: usenet@serveme.chi.il.us (Usenet)
  11. Organization: GAGME Public Access UNIX, Chicago, Illinois, USA
  12. Date: Mon, 20 Jul 1992 22:21:14 GMT
  13. Approved: news-answers-request@MIT.Edu
  14.  
  15. Archive-name: 3b2-faq
  16.  
  17.               AT&T 3B2 FREQUENTLY ASKED QUESTIONS
  18.  
  19. This article contains the answers to many Frequently Asked Questions
  20. (FAQ) often posed to the net. It is posted because the same questions
  21. pop up time after time. This will hopefully help out by not having
  22. these questions posted over and over, and help new users know what
  23. questions there are to ask in the first place! 8^)
  24.  
  25. This article includes answers to the following questions.
  26.  
  27. First, the questions:
  28.  
  29. Subject:  0 SPECIAL NOTE
  30. Subject:  1 How do I install a second ST-506 drive on my 3B2?
  31. Subject:  2 How do I create a second swap partition?
  32. Subject:  3 How can I get X11 for the 3B2?
  33. Subject:  4 How do I install a non AT&T SCSI drive on my 3B2?
  34. Subject:  5 I get data overrun errors when using a Telebit
  35.         on an EPORTS card running at 19.2K baud.
  36. Subject:  6 What does the 'NOTICE: File Table Overflow' error mean?
  37. Subject:  7 How do I set up anonymous ftp?
  38. Subject:  8 Is there a reposity of ftp-able 3B2 programs?
  39. Subject:  9 How do I run Unix from floppy (for example, to repair a damage
  40.             hard drive file system)?
  41. Subject: 10 What is/was the 3B Journal?
  42. Subject: 11 What are the various models of 3B2s and their differences?
  43. Subject: 12 How do I build GCC on the 3B2?
  44.  
  45. Now, the answers:
  46.  
  47.  
  48. ------------------------------------------------------------------------------
  49. Subject:  0 SPECIAL NOTE
  50. ------------------------------------------------------------------------------
  51.  
  52. If you are going to be at all serious about the 3B2, and especially if
  53. you are relying on yourself for maintenance, the first thing you want
  54. to do is obtain the AT&T 3B2 Computer Maintenance Manual.
  55.  
  56. It contains diagrams of all 3B2 computers up to the 3B2/600, parts
  57. lists, breakdown procedures, troubleshooting information, and sources
  58. of additional documentation.
  59.  
  60. In addition, it contains the "3B2 Computer Maintenance Utilities"
  61. diskette called "idtools" (formerly known as "devtools").  This floppy
  62. is bootable, and once running, the following options are available:
  63.  
  64.         > format floppy diskettes
  65.         > format hard disk drives
  66.         > verifies hard disk format
  67.         > disk-to-disk high speed copies
  68.         > disk-to-disk copy by sectors
  69.         > disk-to-memory copies
  70.         > defect table builder
  71.         > writes sanity track
  72.         > change default boot information
  73.  
  74. While some of these options are also available from UNIX, all the
  75. utilities here can be run on a machine with a damaged (or missing) hard
  76. disk, often allowing the drive to be repaired that is otherwise
  77. unbootable.
  78.  
  79. This manual and disk can be ordered from the AT&T Customer Information
  80. Center in Indianapolis, IN.  It has select code 305-395, and at press
  81. time it sold for about $125.  The AT&T CuIC can be reached at:
  82.  
  83.     (800) 432-6600    Continental US
  84.     (317) 322-6556    elsewhere
  85.  
  86. The CuIC takes phone orders with a credit card, and with a purchase
  87. order for qualifying companies.  They have many other UNIX-related
  88. books as well, so be sure to ask for their free "AT&T Documentation
  89. Guide", select code 000-011.
  90.  
  91. ------------------------------------------------------------------------------
  92. Subject:  1 How do I install a second ST-506 drive on my 3B2?
  93. ------------------------------------------------------------------------------
  94.  
  95. Copyright 1989 by Owens-Laing Publications.
  96.  
  97. Title:  Disk Expansion on the 3B2
  98. Author: Stephen Friedl (friedl@mtndew.Tustin.CA.US)
  99. Issue:  3B Journal, 4Q 1989
  100. [Edited by Gregory Gulik]
  101.  
  102. [ conventions are:  *bold* and _italics_ ]
  103.  
  104.  Introduction
  105.  ------------
  106.  
  107. The 3B2/400 family (/300, /310 and /400) computers use standard MFM
  108. disk drives, and it is possible to add or replace these drives yourself
  109. -- in this article we show you how to do this.
  110.  
  111. The 3B2/500 and larger machines all have SCSI (Small Computer Systems
  112. Interface) disk drives, so these instructions do not apply to them.
  113. For the duration of this article, "3B2" means the 3B2/400 and below,
  114. and in the case where there are differences among these included models
  115. we will mention them.
  116.  
  117. Before doing any drive replacement, you must obtain the _3B2 Computer
  118. Maintenance Reference Manual_ from AT&T.  This document contains quite
  119. a bit of useful information about your 3B2 hardware, and it is helpful
  120. in its own right.  What makes it so special is the "idtools" diskette
  121. that comes with it.  This floppy disk contains numerous utilities that
  122. will help you diagnose and troubleshoot your computer, as well as the
  123. disk formatting tools we need for our expansion project.
  124.  
  125.  What we don't tell you
  126.  ----------------------
  127.  
  128. This is a fairly technical topic, and it relies on substantial
  129. knowledge of UNIX system administration.  Those steps directly related
  130. to the formatting operation are covered here, but others such as backup
  131. and restore from tape, disk space allocation, and rebooting the machine
  132. are prerequisite knowledge.  AT&T's sysadm documentation covers a great
  133. deal of it, but if these things are new to you, perhaps you're not
  134. ready to give this a go just yet.
  135.  
  136. Please keep in mind that if this is not done correctly (especially the
  137. backups), you could lost most or all of your computer's data in a very
  138. short time.  You must have at least one full, verified backup of all
  139. filesystems, with _two_ backups being safer.  In addition, it is a good
  140. idea to try this during an off time when you can afford to be down for
  141. while if things don't go so well.
  142.  
  143. Finally, we have tried to present this information as accurately and
  144. clearly as we can, but we cannot guarantee that there are no bugs.
  145. Check everything, verify steps with the manual, and ask a local wizard
  146. if you get stuck.  Of course, you undertake this procedure at your own
  147. risk.
  148.  
  149.  Selecting a drive
  150.  -----------------
  151.  
  152. There are many drives on the market that are satisfactory, and we
  153. present some guidelines here for selecting one.  We have our favorites,
  154. but most available ST-506 drives can be used in the 3B2.  Note that
  155. these are suggestions only, not endorsements or guarantees of
  156. compatibility.
  157.  
  158. The first restriction is that the idtools software will not format more
  159. than 1024 cylinders in a single drive, and a drive with more will
  160. simply have the excess cylinders ignored.  This is an unfortunate but
  161. unavoidable waste of disk space, giving us a practical limit of about
  162. 135Mbyte.  (15 heads x 1024 cyls x 18 blks/track x 512 bytes/block).
  163.  
  164. Most of the drives found in the original 3B2 are made by Control Data
  165. (or their subsidiary, Imprimis), and these Wren II drives are of
  166. excellent quality, and they represent a very safe route.  These drives
  167. are available with formatted capacities of 30 and 72 megabytes, and
  168. they have an average access time of about 28 msec.  Other brands known
  169. to work include Maxtor, Miniscribe, Priam, Micropolis and others.  Some
  170. of these drives have more than 1024 cylinders which allows them to be
  171. used, but at less than their advertised capacity.
  172.  
  173.  Disk types and the Equipped Device Table
  174.  ----------------------------------------
  175.  
  176. Each drive in the 3B2 is formatted with a _disk type_, which is a small
  177. number that identifies the drive to the machine.  The disk type indexes
  178. into a table of drive information, and this table is part of the
  179. /dgn/edt_data file.  This file is used to fill the Equipped Device
  180. Table, a list of currently-available hardware devices maintained by the
  181. firmware.  Part of this list, the _subdevice table_, describes the
  182. possible hard disk drives.
  183.  
  184.  Getting started
  185.  ---------------
  186.  
  187. Now that the formatting tools have arrived and a drive has been
  188. obtained, we are ready to do the installation.  It is at this point
  189. that a full backup of the entire system is in order and to review the
  190. relevent portions of the Maintenance Manual.
  191.  
  192. After backing up the current drives, shut down the machine, turn off
  193. the power, and remove the power plug.  Open the case, note the current
  194. configuration of the drive cables, and remove them along with the power
  195. connectors.
  196.  
  197. Select "drive 0" on the drive select jumpers, insert/enable the
  198. terminating resistor, and place the drive back in the cage.  Connect
  199. drive zero's data cable (the thin ribbon cable), the last connector on
  200. the wide control cable, and the power cable to the rear of the drive.
  201. Pay particular attention to pin one orientation, and insure that all
  202. connections are snug.
  203.  
  204. At this point you are ready to turn on the machine.  Plug in the 3B2
  205. power cable and turn the switch to "ON".  The console should show a
  206. SELF CHECK, followed shortly by
  207.  
  208.     FW ERROR 1-02: DISK SANITY FAILURE
  209.                EXECUTION HALTED
  210.  
  211.     SYSTEM FAILURE: CONSULT YOUR SYSTEM ADMINISTRATION UTILITIES GUIDE
  212.  
  213. This ominous message is actually expected, and it just means that the
  214. disk drive is not formatted yet.  At this point, type your current
  215. firmware password (usually "mcp") followed by RETURN, and you will be
  216. presented with the normal firmware menu.
  217.  
  218. At this point you should boot "/idtools" from the floppy drive (load
  219. device 0, FD5).  Once booted, idtools displays an informational message
  220. and asks that RETURN be hit.
  221.  
  222. Note that this entire process is covered in Appendix B of the
  223. Maintenance Reference Manual, and we strongly recommend that you review
  224. sections
  225.  
  226.     Hard Disk Formatter (B-8),
  227.     Defect Table Builder (B-33), and
  228.     Writing Sanity Track (B-47)
  229.  
  230. plus the introduction before continuing.
  231.  
  232.  
  233.  Running Idtools
  234.  ---------------
  235.  
  236. At the first menu, "formhard" should be entered.  It will ask which disk
  237. should be formatted, and the proper response is zero in most cases.  If
  238. you are doing this procedure on a machine with two drives installed, be
  239. _very_ careful when answering this question.
  240.  
  241. Next, you are asked for drive configuration information.  You must
  242. enter the drive type (from a previous section) plus the drive
  243. dimensions, and the following table summarizes several models we know
  244. about.  If your drive is not shown, consult your vendor documenation
  245. for this information.
  246.  
  247. Drive type    drv id    cyls trk/cyl sec/trk byte/cyl     abbrev
  248. --------------- ------    ---- ------- ------- --------      ------
  249. Wren II 30MB       3     697     5    18    512       HD30
  250. Wren II 72MB       5     925     9    18    512       HD72
  251. Fujitsu M2243AS       8     754    11      18      512       HD72C
  252. Micropolis 1325    5    1024     8      18      512       HD72
  253. Maxtor 1140       4*     918    15    18    512       HD120
  254. Maxtor 1190      11    1224+   15    18    512       HD135
  255. Miniscribe XXXX    4*
  256. Priam XXXX
  257.  
  258. * selected by user
  259. + can only use 1024 cylinders on this drive
  260.  
  261. Note that "tracks/cylinder" means "heads", and the sectors/track and
  262. bytes/cylinder values the same for all drives.  The drive ID is shown
  263. as 4 for high-capacity drives, and it assumes that this number was
  264. inserted into the Equipped Device Table subdevice listing.
  265.  
  266. In the following examples, user responses are in *bold*, and the drive
  267. shown is a Maxtor 1140.  Note that the default entries shown may vary
  268. from machine to machine.
  269.  
  270.     Format which disk [ 0 or 1 ] (0)?  *0*
  271.  
  272.     Drive id: 3- ? *4*
  273.     Number of cylinders: 687 - ?  *918*
  274.     Numbers tracks/cyl: 5 - ?  *15*
  275.     Number sectors/track: 18 - ? *18*
  276.     Number bytes/sector: 512 - ? *512*
  277.  
  278. Once these values have been entered, idtools shows where it will place
  279. various housekeeping areas on the disk, almost all stored on the first
  280. two cylinders.  You need not concern yourself with the specific values
  281. printed.
  282.  
  283.  Defect Mapping
  284.  --------------
  285.  
  286. The bad block listing (with various alternate names, such as "Flag
  287. Track Log") is usually found on a sticker on top of the drive.  To
  288. simplify data entry, it is a good idea to photocopy this sticker while
  289. it is on the drive, because later the drive might not be in such a
  290. comfortable reading position (especially if it is in a drive cage).
  291.  
  292. The first prompt in this section asks if the backup defect table should
  293. be modified.  A formatted drive normally has two copies of the defect
  294. table on disk in case one is lost, but a blank drive has no such
  295. table.  Answering "yes" to this question means that the data you enter
  296. here is stored in both places.
  297.  
  298. To enter the defects, enter "new" when asked, then "bc" for the type of
  299. defect byte count.  Then, for each bad sector, enter the cylinder
  300. number, the head number, and the byte count, all separated by spaces.
  301. This "byte count" field is often shown on the disk label as "BFIND"
  302. (bytes from index) or "BCAI" (byte count after index), and it is
  303. distinct from the sector number.  Most entries have a block length of
  304. one, but if the label shows more than this then it must be the fourth
  305. field on the line.
  306.  
  307. An entry of "q" terminates the input, and displays the entire list of
  308. blocks entered.  It is vital that this list be checked completely, and
  309. edits made if necessary.  An entry of just a RETURN accepts the current
  310. list and moves onto the next prompt.
  311.  
  312.                Format entire disk - type 1
  313.               Format single track - type 2
  314.     Format from selected track to end - type 3
  315.  
  316.     Select type of format [1, 2, or 3] (1) ?
  317.  
  318. Entering "1" followed by RETURN starts the formatting process, and when
  319. it completes it starts a verify pass where all blocks on the disk are
  320. examined for errors.  This operation can take some time on a large
  321. drive, and idtools shows its progress with a message displayed every
  322. five cylinders formatted.
  323.  
  324. After the format and verify, idtools writes the "sanity track" with the
  325. "fixdisk" program.  The sanity track contains a special data pattern
  326. that validates the drive to the 3B2, and it takes just a moment and
  327. requires no input from you.
  328.  
  329. With the conclusion of the fixdisk operation the drive is formatted.
  330. You can remove the idtools floppy and power the machine down.
  331.  
  332.  Closing up the machine
  333.  ----------------------
  334.  
  335. The machine should now be put back together and the original drives
  336. reinstalled.  It is important that all drive selects and terminating
  337. resistors be installed properly, following the rules mentioned
  338. previously.
  339.  
  340. The first drive in the machine has the lowest drive select jumper
  341. (usually position zero) and connected to the zero data cable (usually
  342. the bottom drive).  The second drive in the machine has the next drive
  343. select (usually position one) and the other data cable, and the control
  344. cable connects them both.  The drive that is at the physical end of the
  345. control cable must have the terminating resistor.
  346.  
  347. Disk drives installed into an XM expansion module have special rules on
  348. termination, and these are documented and diagramed on pages 6-23 and
  349. 6-24 of the Maintenance Reference Manual.
  350.  
  351.  Partitioning the drive
  352.  ----------------------
  353.  
  354. The easiest case is adding a second drive to a machine that previously
  355. had only one.  After installing the new unit, boot /unix from the hard
  356. drive and enter single-user mode (this is much easier if you have
  357. edited /etc/inittab).
  358.  
  359. With the /usr partition mounted, run the "sysadm" command, and at each
  360. successive menu, enter "diskmgmt", "harddisk", and "partitioning" in
  361. turn.  This enters the partitioning operation and it should prompt you
  362. for the relevant information.  We do not discuss strategies for
  363. allocating filesystem resources, as this is covered in the AT&T system
  364. administrative documentation.
  365.  
  366. Once the drive is partitioned, the added filesystems (say, /usr2 and
  367. /usr3) may be used immediately.
  368.  
  369. All other cases involve replacing existing drives, and it most
  370. expedient to use the full restore procedure for this.  A full backup is
  371. absolutely required here for this operation, and it should be verified
  372. once it is made.
  373.  
  374. Boot the "Essential Utilities - Disk 1" floppy and select the "Full
  375. Restore" operation.  This procedure includes a partitioning step that
  376. allows you to allocate your new disk resources.  Follow the
  377. instructions shown on the screen.
  378.  
  379. After the core set of floppies -- five or six disks -- you can
  380. interrupt this process, boot /unix from the hard disk, and restore all
  381. of your backups.  You may have to install the Cartridge Tape Utilities
  382. if your backups are stored on that medium.
  383.  
  384. WARNING: This "full restore" operation destroys all data on all hard
  385. disks during the partitioning, and you _must_ have a full set of
  386. reliable, verified backups before considering this step, and two full
  387. sets of backups would not be a bad idea.  If these backups are not done
  388. properly, all data on the disks will be LOST.  Please be very careful
  389. when doing this, as mistakes can be costly.
  390.  
  391.  
  392.  Compatibility note
  393.  ------------------
  394.  
  395. Some early models of the 3B2/300 do not permit a 72MB hard drive to be
  396. added to the system board.  The recognizing signs for this restriction
  397. are documented in the Maintenance Reference Manual on page 7-21, and
  398. 3B2/300 owners should consult this information before starting this
  399. project.
  400.  
  401. While the documentation does not mention the reason for this
  402. restriction, we speculate that any drive with more than eight heads
  403. cannot be used in these older machines.
  404.  
  405. ------------------------------------------------------------------------------
  406. Subject:  2 How do I create a second swap partition?
  407. ------------------------------------------------------------------------------
  408.  
  409. These are the steps I used to add a second swap partition to my
  410. 3B2/400.  Why add a second  swap area?   By default, the SVR3.1
  411. system disks (the version I use) make one swap area of 10196 blocks
  412. on the first hard disk (/dev/rdsk/c1d0s1).  While this 5Mb area
  413. seems plenty for most uses, I managed to exhaust it.  It was time to
  414. RTFM.  While the manual gives you the confidence to say that you *can*
  415. increase the number of swap partitions, it doesn't clearly tell you
  416. exactly how to go about doing that.  What follows are the steps you
  417. can follow to add another swap partition to your system.
  418.  
  419. Are you adding this swap space "just to balance the load"?  If so,
  420. forget it.  The effect is negligible and clearly not worth the effort.
  421. I have been unsuccessful in conclusively proving whether or not SVR3.1
  422. does perform balanced allocation of the swap space.  It seems to knock
  423. a huge chunk off the first partition before it even touches the second
  424. one.  I would not think of doing this unless you have SVR3.1 or
  425. SVR3.2.  Earlier versions do not have the advanced swap handling
  426. functions, and may not even allow you to do this.  Upgrade time.
  427. The only reason to add another swap partition is if you have a valid
  428. reason to do so (i.e. you have exhausted your present swap space).
  429. Remember that swap cannot be used for anything else, you take space
  430. away from your mountable filesystems when you add swap space.
  431.  
  432. Please keep in mind that this is *your* system, and these steps can
  433. easily wipe out all your data files.  Take adequate care to back
  434. up your data.  Make sure your backups work before you start any of this.
  435.  
  436. IT IS STRONGLY RECOMMENDED THAT YOU HAVE A PAPER COPY OF THESE
  437. DIRECTIONS IN FRONT OF YOU AS YOU PERFORM THIS TASK.
  438.  
  439. Step 0: BACK UP THE SYSTEM!  I cannot stress this enough.
  440.         If you have a tape drive, use that in preference over the
  441.     floppy drive.  Back up the /, /usr, and /usr2 partitions.
  442.     While it is not mandatory, it's also a good idea to back up
  443.     everything else just in case catastrophe strikes.  Expect the
  444.     worst and hope for the best.
  445.  
  446. Step 1: Reload the Foundation floppies and select a custom partition
  447.         setup.  Pick the sizes you want for the new swap partitions.
  448.     Since you are adding a second swap partition, it is up to you
  449.     if you wish to add to (or keep) the original 5Mb swap
  450.     partition.  It is mandatory that you keep *some* swap space on
  451.     the first disk.  There is no rule that says the 2 partitions must
  452.     be equal in size.  Finish the full restore.
  453.  
  454.     For Your Information: the sizes of the partitions are
  455.     dependent on the number of blocks per cylinder group.  That
  456.     means, you can specify size in units of (18 * number of
  457.     heads).  If you specify a number that is not a round figure,
  458.     the machine will round it for you.  RECORD THIS NUMBER!!!
  459.     This new partition will be named /usrX (where X is a positive
  460.     integer) and there will be a filesystem made upon it.  Do not worry.
  461.  
  462. Step 2: Bring up unix, log in as root, and bring the machine to runlevel 1.
  463.         When the machine is in single-user mode, make sure that all
  464.     disk partitions are unmounted (except for the root partition!)
  465.  
  466. Step 3: Make a temporary file with the existing partition data:
  467.  
  468.         # prtvtoc /dev/rdsk/c1d1s6 > /tmp/disk.data
  469.  
  470. Step 4: Edit the disk.data file.  Make the following changes:
  471.         change the tag field from 0 to 3 (from 'user' to 'swap')
  472.         change the flags from 00 to 01 (unmountable partition)
  473.         delete all the initial comments (lines with initial *'s)
  474.     Double check this file to make sure you got it right
  475.  
  476. Step 5: Save this data back to the hard disk.  If you choose to chicken
  477.         out, do it BEFORE THIS STEP:
  478.  
  479.         # fmthard -s /tmp/disk.data /dev/rdsk/c1d1s6
  480.  
  481. Step 6: Edit /etc/fstab to remove the reference to the now defunct
  482.         filesystem.  You don't have to do anything else to the actual
  483.     partition to remove the filesystem - the system will page over
  484.     the superblock and inode lists by itself.
  485.  
  486. Step 7: Use /etc/swap to tell the system that the partition is ready
  487.         for paging/swapping.  The best way to do this is to make the
  488.     system add this partition each time it boots.  Create a file
  489.     called /etc/rc2.d/S00SETSWAP.  Link it to the file
  490.     /etc/init.d/S00SETSWAP.  In this file, add the following line:
  491.  
  492.     /etc/swap -a /dev/dsk/c1d1sYY 0 XXXXX
  493.  
  494.     In this case, the Y's in the disk name should be set to the
  495.     disk partition that the new swap space is to be located on.
  496.     Usually, this is partition 8 (if you specified the swap space
  497.     as the first partition on the disk before /usr).  The 0 (zero)
  498.     signifies that swap activity is to start at the 0th block of
  499.     the partition - the start.  Replace the XXXXX with the number
  500.     of blocks available in the partition.  This is the number you
  501.     recorded in Step 1 above.
  502.  
  503. Step 8: Reboot and pray.  If it all went well, the machine will come
  504.         up in multi-user mode.  Once again, log in as root and bring
  505.     the machine down to single-user state.  Make sure that the
  506.     system is actually using the new partition with the 
  507.  
  508.     # /etc/swap -l
  509.  
  510.     command.  You should see the original swap partition
  511.     (/dev/dsk/c1d0s1) as well as your new partition listed.
  512.  
  513.     If your machine did not boot for some bizarre reason, reload
  514.     the system again (go to step 1), making sure that you do
  515.     everything correctly.
  516.  
  517. Step 9: Restore your data.  If you backed up on floppy, just restore
  518.         them in order and reboot.  If you backed up on a CTC tape drive,
  519.         you must install the Cartridge Tape Utilities disk, reboot,
  520.         recover your data, and reboot one last time.  IF you didn't back
  521.         up your data, then you're SOL.
  522.  
  523.         A note to those with XDC and SCSI drives - the maneuvers you
  524.         have just completed only messed up the data on the 2 internal
  525.         disk drives.  Any data on your 3rd (and higher) drives should
  526.         remain untouched.  
  527.  
  528. There is another way to do this whole thing without reloading the
  529. entire OS.  It involves having a boot floppy with prtvtoc, fmthard,
  530. swap, and a few other files on it.  You would have to make this before
  531. hand (explained in a different question).  In this instance, you would
  532. only alter the partitions on the disk you added the new partition to.
  533. This, however, would force you to re-create and restore filesystems on the
  534. partition(s) you borrowed space from.  For my time and money, it was
  535. easier (and less error-prone) to add the swap partition by reloading
  536. the Foundation disks.  True Blue Gurus (TM) can experiment with the
  537. second method.
  538.  
  539. Comments and criticisms welcome.
  540.  
  541. Jeffrey L. Bromberger ------- System Manager ------- Tramway Unix Systems
  542. jeffrey@squid.tram.com      Anywhere!{van-bc,limbic,icus}!tram!jeffrey
  543.  
  544. ------------------------------------------------------------------------------
  545. Subject:  3 How can I get X11 for the 3B2?
  546. ------------------------------------------------------------------------------
  547.  
  548. From: aj4640@dean1.usma.edu  Robertson John MAJ at US Military Academy, West
  549. Point, N
  550.  
  551. [Read the P.S. at the end of this message before attempting to
  552.  ftp these files.]
  553.  
  554. The X11 R4 distribution tape contains sources to run clients on a 3b1.
  555. Several of us have hacked those sources to enable clients to run on a
  556. 3b2.
  557.  
  558. I wish I could offer the source patches directly but for various
  559. reasons, I can't.  However, 3b2 users are more than welcome to have the
  560. clients, the libraries, the include files, and the pre-processor.  This
  561. will get X-windows up on your 3b2 without the xdaemon stuff (as long as
  562. you have the Wollongong networking stuff.)  With this stuff, you'll
  563. have a pile of ready-to-run clients as well as the tools needed to
  564. compile your own X11 applications.
  565.  
  566. In addition to the default X11 R4 clients, bin.tar.Z also has a running
  567. copy of tgif, xdvi, xmahjongg [you'll need to do the fonts for your
  568. server.  UTSL!], and lots of other neat stuff.
  569.  
  570. The lib.tar.Z contains libX11.a, libXt.a, etc.  In addition, the
  571. app-defaults for all the clients in bin.tar.Z are also here.
  572.  
  573. include.tar.Z has all the include files.  You'll need these if you want
  574. to compile your own stuff.
  575.  
  576. cpp.tar.Z is a compiled version of the X11 distribution preprocessor.
  577. In this version, you'll need to define the symbol 3b2 before
  578. invocation.  It will not gag on the big header files that many X
  579. applications use.
  580.  
  581. The files can be obtained via anonymous ftp from euler.math.usma.edu.
  582. They are in pub/3b2.  Other than unpaccking and installing the clients
  583. and lib stuff in the usual places, no other special work should be
  584. needed.
  585.  
  586. I cannot offer any support for this stuff.  Take it, hack it, and have
  587. fun.  Even more, give the clients away to other suffering 3b2 users.
  588. It has made our 3b2's substantially easier to use.
  589.  
  590. Jack
  591.  
  592. P.S.  The X11R4 clients for the 3B2 have been moved to Bradley University
  593.       on erratic.bradley.edu in pub/3B2_X.  If that system is down, you
  594.       may want to also try ds3.bradley.edu, also in pub/3B2_X.
  595.  
  596. ------------------------------------------------------------------------------
  597. Subject:  4 How do I install a non AT&T SCSI drive on my 3B2?
  598. ------------------------------------------------------------------------------
  599.  
  600. From: geoff@ugc.uucp (Geoff Coleman)
  601.  
  602. Installation of Third Party SCSI drive on AT&T 3B2
  603.  
  604. 1.  Hardware Addition
  605. The hardware installation is relatively simple. The SCSI address of the
  606. disk must be set via jumpers. If the disk being added is the first
  607. outside disk for the 3B2 then the you must use an "AT&T SCSI Connect
  608. Kit".
  609.  
  610. 2.  Telling the system about the disk
  611. After the disk has been physically attached the machine should be
  612. restarted.  If the disk is one that is unknown to the 3B2 a message
  613. will appear on the console that there is an unknown scsi device "make"
  614. "model". The make and model information is important.
  615.  
  616. Once the 3b2 is rebooted login as root and cd to /etc/scsi.  At this
  617. point you should run ./edittbl -l to list all of the SCSI devices known
  618. to the system. Then run device table. The first entry is the make and
  619. must be padded with spaces to 8 characters.  The second entry is the
  620. model and must be padded to 16 characters with spaces.  The number of
  621. lu's is one unless it is a bridge controller.
  622.  
  623. At this point you should reboot the machine and there should be no
  624. unknown device error message on bootup.
  625.  
  626. 3.  Formatting the disk
  627. Once the system has been rebooted login as root and change the run
  628. level to single user mode and remount /usr if need be.
  629.  
  630. At this point you need to cd to /usr/lib/scsi and edit the file
  631. tc.index.  Add an entry for the new disk in the same manner as the
  632. other entries in this file. Make sure that the model number starts in
  633. column 9 and is padded out to 16 characters, if you receive an unable
  634. to open script file message on formatting the problem is most likely in
  635. this entry.
  636.  
  637. At this point you can run the format program from either sysadm or the
  638. command line. After the format has finished reboot the system and the
  639. disk should be listed as a formatted disk.
  640.  
  641. ------------------------------------------------------------------------------
  642. Subject:  5 I get data overrun errors when using a Telebit
  643.             on an EPORTS card running at 19.2K baud.
  644. ------------------------------------------------------------------------------
  645.  
  646. From: woods@robohack.UUCP (Greg A. Woods)
  647.  
  648. Actually, in most cases the EPORTS card *never* loses interrupts.  It
  649. is after all a true smart-card with rather impressive specifications.
  650. A single card can sustain 9600 bps input on 4 ports simultaneously in
  651. cooked mode without any flow control and not drop a bit (on a
  652. 3b2/400).  With hardware flow control working, and in raw mode, it'll
  653. suck up 3 * 38.4K baud without loss.  Of course the latter demands that
  654. at least 34% of the CPU be available.  In actual practice I'd say a
  655. 3b2/400 with an EPORTS card would do great with 4-5 Telebit T-2500's at
  656. 19.2K baud, just as long as all it had to do was run uucico's.  A
  657. second EPORTS card might permit a few more modems, but you'd very soon
  658. run out of CPU on a 3b2/400, even with just uucico's running -- it's
  659. only about 1.25 (VAX)MIPS.
  660.  
  661. In actual fact, it is the damn disk controller/driver that can suck the
  662. system down.  The worst problem is when the disk driver/disk/controller
  663. loses an interrupt, or a command ACK, or something, and freezes,
  664. hanging the entire system for up to 20 seconds before it recal's the
  665. drives.  This is the risk of using fast ST-506 drives on a 3b2....
  666.  
  667. Paging, or heaven forbid -- swapping, uses a lot of resources and will
  668. cause uucico's to get behind in ack'ing, even at 2400 baud, esp. with
  669. only a 3-packet window size.
  670.  
  671. When my 3b2/400 is reasonably quiescent, I get an average of 760 cps
  672. throughput on UUCP input from a Telebit T-1000, and, with UUCP
  673. spoofing, and apparent output rate of at least 980 cps!  (I run the
  674. port at 19.2K baud with PEP connections.)  This is regardless of
  675. activity on the other 2400 baud modem, or even when also sending output
  676. through the layers driver to my 5620 -- all on the same EPORTS.
  677.  
  678. ------------------------------------------------------------------------------
  679. Subject:  6 What does the 'NOTICE: File Table Overflow' error mean?
  680. ------------------------------------------------------------------------------
  681.  
  682. From: v.hoang@att.com
  683.  
  684. it means more files being opened than the limit you've set for the
  685. system.  Edit /etc/master.d/kernel and bump up the values of NFILE,
  686. NINODE & NS5INODE (or something close to that), then cd /boot,
  687. mkboot -k KERNEL, touch /etc/system then reboot the system.
  688.  
  689. ------------------------------------------------------------------------------
  690. Subject:  7 How do I set up anonymous ftp?
  691. ------------------------------------------------------------------------------
  692.  
  693. From: rdc30@nmrdc1.nmrdc.nnmc.navy.mil (LCDR Michael E. Dobson)
  694. Subject: Anonymous ftp with WIN/TCP 3.0.x YES!!
  695.  
  696. Contrary to the documentation for WIN/TCP 3.0.{0,1}, it is possible to set
  697. up anonymous ftp.  The Bugs: note in the documentation about if not being
  698. fully implemented in this release seems to be just a documentation
  699. ommision.  I saw the method to use on a US military 3B2 Users Group mailing
  700. list.  The missing parts are the creation of a dev directory in the root of
  701. the ftp account directory with null and tcp devices created with mknod, and
  702. the inclusion of the services file in the etc subdir along with group and
  703. passwd files.  You of course need ls & pwd in bin and a pub tree.  Below is
  704. the output of ls -lR in my ftp root as well as the passwd in ~ftp/etc/passwd.
  705. Try it out and see.
  706.  
  707.  
  708. total 4
  709. drwxr-xr-x   2 root     other         64 Jan 23 11:12 bin
  710. drwxr-xr-x   2 root     other         64 Jan 23 11:09 dev
  711. drwxr-xr-x   2 root     other         80 Jan 23 11:13 etc
  712. drwxr-xr-x   2 ftp      sys          240 Jan 23 11:16 pub
  713.  
  714. /usr3/ftp/bin:
  715. total 111
  716. ---x--x--x   1 root     other      35678 Jan 23 11:11 ls
  717. ---x--x--x   1 root     other      19551 Jan 23 11:11 pwd
  718.  
  719. /usr3/ftp/dev:
  720. total 0
  721. crw-rw-rw-   1 root     sys       49,  2 Jan 23 11:09 null
  722. crw-rw-rw-   1 root     sys       63, 38 Jan 23 11:09 tcp
  723.  
  724. /usr3/ftp/etc:
  725. total 4
  726. -r--r--r--   1 root     other        336 Jan 23 11:12 group
  727. -r--r--r--   1 root     other         56 Jan 23 11:13 passwd
  728. -r--r--r--   1 root     other        884 Jan 23 11:12 services
  729.  
  730. /usr3/ftp/pub:
  731. total 0
  732.  
  733.  
  734. Contents of ~/ftp/etc/passwd:
  735.  
  736.  
  737. ftp:x:13:1:Anonymous FTP Account:/usr3/ftp:/usr/bin/ftp
  738.  
  739.  
  740. -- 
  741. Mike Dobson, Sys Admin for      | Internet: rdc30@nmrdc1.nmrdc.nnmc.navy.mil
  742. nmrdc1.nmrdc.nnmc.navy.mil      | UUCP:   ...uunet!mimsy!nmrdc1!rdc30
  743. AT&T 3B2/600G Sys V R 3.2.2     | BITNET:   dobson@usuhsb or nrd0mxd@vmnmdsc
  744. WIN/TCP for 3B2                 | MCI-Mail: 377-2719 or 0003772719@mcimail.com
  745.  
  746.  
  747. ------------------------------------------------------------------------------
  748. Subject:  8 Is there a reposity of ftp-able 3B2 programs?
  749. ------------------------------------------------------------------------------
  750.  
  751. From: Jeffrey A. Thompson <jeffrey@rigel.econ.uga.edu>
  752.  
  753. Here is a list of software I have compiled on my 3b2 (roscoe.msit.uga.edu)
  754. available via anonymous ftp. I have all the source too.
  755.  
  756. 287172 Nov 19 13:37 bash*          GNU's Bourne Again Shell
  757.  35137 Apr  5  1990 compress*      
  758.   5959 Aug 22 20:55 culimit*       Program to change the ulimit of a shell to
  759.                                    10 megabytes instead of 1 megabyte. 
  760.  48615 Jan 25 11:10 gab*           My own little talk program for up to 19 
  761.                        people ; uses shared memory and semaphores
  762. 174992 Aug 23  1990 kermit*        The standard kermit.
  763.  60393 May 19  1990 rb*            X/Y/Z modem
  764.  60393 May 19  1990 rx*
  765.  60393 May 19  1990 rz*
  766.  59254 May 19  1990 sb*
  767.  32546 Nov  6 08:17 ship*          Zip's ship 
  768.  59254 May 19  1990 sx*
  769.  59254 May 19  1990 sz*
  770.  35137 Apr  5  1990 uncompress*
  771.  61743 Nov  6 08:17 unzip*         Unzip ; I love zip. It works on everything.
  772.                    and better compression than compress 
  773.                                    (average 10 to 30 percent better 
  774.                                    compression)
  775.  38784 Jun 22  1991 uudecode*
  776.  23781 Jun 22  1991 uuencode*
  777.  20844 Sep  7 17:51 uvapc*         A standard pascal compiler
  778.  35137 Apr  5  1990 zcat*          
  779.  75420 Nov  6 08:15 zip*           Can produce pkzip compatible zips (-k opt)
  780.  35188 Nov  6 08:15 zipnote*
  781.  36904 Nov  6 08:15 zipsplit*      Splits up a zip file into smaller zip files
  782.                                    Great for copying stuff onto a floppy disk.
  783.  
  784. --jat
  785.  
  786. ------------------------------------------------------------------------------
  787. Subject:  9 How do I run Unix from floppy (for example, to repair a damage
  788.         hard drive file system)?
  789. ------------------------------------------------------------------------------
  790.  
  791.                Running a Standalone Shell on a 3B2
  792.  
  793.                         Stephen J. Friedl
  794.                     [Edited by Gregory Gulik]
  795.  
  796.                          April 25, 1988
  797.  
  798.  
  799.           NB:  the   procedures   described   here
  800.           require  substantial  knowledge  of  UNIX and
  801.           entail a significant risk of causing loss  of
  802.           data.  The obvious disclaimers apply here, so
  803.           use at your own risk.  Please be careful.
  804.  
  805.  
  806. Introduction
  807.  
  808.      This document is an introduction to operating your 3B from a
  809. standalone /unix.  Even with inoperable hard drives, it is possible to
  810. insert the boot floppy (Essential Utilities Disk 1), say some magic
  811. words, and receive a # prompt.  At this point you can do major surgery
  812. on the failing machine, often recovering a drive previously thought to
  813. be lost.
  814.  
  815.      Our style is informal and we'll use lots of examples to illustrate
  816. the points at hand.  We have been using standalone shells for quite
  817. some time and have learned a great deal; we hope to pass this
  818. information on to you.  Please read this document carefully before
  819. trying the methods described here, and if possible have a wizard around
  820. when giving it a go.  This can be dangerous business: as has been said
  821. before, it is a time where experience and informed courage count for
  822. much.
  823.  
  824.  
  825. Conventions
  826.  
  827.      Throughout this document, sample usage sessions will be shown
  828. indented, with user input in bold.  To make it easier to distinguish
  829. between a multiuser UNIX shell and a standalone one, we will show
  830. multiuser UNIX's root prompt as ## and the standalone prompt as #.
  831.  
  832.  
  833. >>> Back up your boot disks b->
  834.  
  835.      This cannot be emphasized enough.  Your boot floppies are the key
  836. to your machine, and without them the machine is down.
  837.  
  838. Why do you want a standalone /unix?
  839.  
  840.      The most compelling reason for a standalone shell is when the
  841. primary drive has gone down and must be recovered.  While working from
  842. a standalone /unix is slow and tedious, it can often save an entire
  843. hard disk with minimal data loss.
  844.  
  845.      We have also used this standalone shell to repair a corrupt
  846. /etc/inittab, to fix /etc/passwd, to restore a /bin/login that had been
  847. removed, and to install new bootstraps on the hard drive.  With a
  848. standalone boot disk in hand, a host of possibilities presents itself.
  849.  
  850.  
  851. What is on your boot disk?
  852.  
  853.      Before booting this floppy, take some time to explore its
  854. contents, as the disk has a filesystem on it that can be mounted and
  855. perused.  To do this, insert a COPY of the Essential Utilities Floppy 1
  856. (from now on, "the boot floppy") into the drive with a write-protect
  857. tab.  Now,
  858.  
  859.           ## mount /dev/dsk/c0d0s5 /install -r
  860.  
  861.      Because boot floppies vary from release to release, it would be
  862. most helpful to simply get a listing of the contents of your particular
  863. boot floppy.
  864.  
  865.      Once finished, the floppy must be unmounted:
  866.  
  867.           ## cd /
  868.           ## umount /dev/dsk/c0d0s5
  869.  
  870.  
  871. "Open Sesame"
  872.  
  873.      To give standalone a try, first shut the machine down to firmware
  874. mode.  Assuming the machine is now in firmware mode, put a copy of the
  875. boot disk into the drive.  Note that some versions of the operating
  876. system (Sys V Release 2, at least) require that the boot floppy be
  877. write-enabled (i.e., no write-protect tab); it is this requirement that
  878. mandates multiple backups of the boot floppy.  UNIX will be updating
  879. the disk while it runs -- the superblock, access times, etc. -- and if
  880. the machine crashes at the wrong time it simply will not boot again
  881. without an fsck.  Be careful.
  882.  
  883.      Type in your firmware password and boot /unix from the floppy
  884. drive (Option 0, named `FD5') instead of the hard drive (Option 1,
  885. named `HD30' or `HD72').  It can take several minutes for UNIX to boot,
  886. but when it does, the familiar menu will be displayed:
  887.  
  888.                1) Full Restore
  889.                2) Partial Restore
  890.                3) Dual-Disk Upgrade
  891.                4) Release Upgrade
  892.                Selection? [1, 2, 3, 4, quit, help]
  893.  
  894.      At this point, type the phrase
  895.  
  896.                            magic mode
  897.  
  898.      The system recognizes this special option and responds:
  899.  
  900.           Poof!
  901.  
  902.           Selection? [1, 2, 3, 4, quit, help, shell, copy]
  903.  
  904.      Notice the new options?  Now type shell, then RETURN, and you will
  905. be greeted with the familiar # prompt.  You are now running a
  906. standalone shell on the floppy.
  907.  
  908.      A few reminders here: a floppy filesystem is not able to hold much
  909. data, and many common utilities are unavailable.  When dealing with the
  910. standalone shell, one must learn alternatives to these utilities.  For
  911. example, echo * can replace ls(1), and cat > file can serve as a poor
  912. replacement to ed(1).  One must become remarkably resourceful when
  913. working in an environment as restricted as this.  We will see later how
  914. we can enhance this confined environment with additional tools.
  915.  
  916.  
  917. Standalone devices
  918.  
  919.      The floppy's /dev directory contains a host of entries, some of
  920. them referring to partitions on the hard drive.  While a particular
  921. partition may have several names, we generally use the following
  922. devices to refer to the hard disk:
  923.  
  924.           Partition        What it is (on the hard disk)
  925.           -----------      -----------------------------
  926.           /dev/idsk00      / filesystem
  927.           /dev/idsk01      swap area
  928.           /dev/idsk02      /usr filesystem
  929.           /dev/idsk06      the entire disk
  930.           /dev/idsk07      boot partition
  931.           /dev/idsk08      optional filesytem (/u or /usr2)
  932.  
  933.  
  934. Mounting the hard drive
  935.  
  936.      To gain access to the primary hard drive, partitions of interest
  937. are mounted onto directories on the floppy.  The device names are
  938. selected from the table in the previous section.
  939.  
  940.      Before mounting a partition, we recommend running the filesystem
  941. check fsck(1m) first.  The mount command will fail if the the
  942. superblock is not in order -- this is often the case after a crash.  In
  943. addition, it gives a convenient verification of the device status and
  944. the the filesystem's name and volume.
  945.  
  946.           # /etc/fsck /dev/idsk00
  947.  
  948.      While some errors are to be expected while checking the root
  949. partition, a total failure is a very serious error.  Our experience
  950. defines "total failure" as an indication by fsck that it cannot find
  951. any possible traces of a filesystem.  In particular, "CAN NOT READ: BLK
  952. 1" is one of the more ominous messages we have seen.
  953.  
  954.      Once fsck grants the filesystem a clean bill of health, it is
  955. ready to be mounted.  Rather than take up space for a handful of common
  956. commands, AT&T has rolled several of them into one:  fsys.  It is
  957. undocumented and appears to only be used on the boot floppy.  Some
  958. versions of the boot disk do contain the mount and umount programs and
  959. those can be used instead of fsys.
  960.  
  961.      Fsys takes a handful of options, not all of which are interesting
  962. to us in standalone mode.  Used in the install scripts for a handful of
  963. filesystem-related duties, we will use it simply as a replacement for
  964. mount(1m) and umount(1m).  To mount the hard disk's root filesystem
  965. onto the floppy's /install directory, do:
  966.  
  967.           # fsys -m /install /dev/idsk00
  968.  
  969.      Fsys will complain on an error, and this brings us to a serious
  970. bug in this program: if either the mount directory or the partition's
  971. device name are invalid for any reason, the error message will always
  972. point to the partition device name.  This can be, to put it lightly,
  973. "misleading".
  974.  
  975.      With the hard drive's root filesystem mounted on /install, it is
  976. now fully part of the standard directory tree.  While the floppy has no
  977. editor or many of the helpful tools, the root partition does, and these
  978. can be exploited.  When beginning an extended standalone session on the
  979. primary drive, we have found it helpful to extend the shell's search
  980. path:
  981.  
  982.           # PATH=/install/bin:/install/etc:$PATH ; export PATH
  983.  
  984.      Now the familiar ls, ed, (but not vi) and many other commands are
  985. available.  Since they will be loaded from the hard drive, execution is
  986. much faster.
  987.  
  988.      As an example, assume that the root password has been forgotten
  989. and the machine is basically closed.  The solution suggested by AT&T's
  990. documentation (in the System Administration Utilities Guide) is to do a
  991. partial restore.  The difficulty with this approach is that many
  992. important system files -- /etc/passwd, /etc/inittab, /etc/gettydefs,
  993. and others -- are overwritten in the process.  Even with a full backup,
  994. this can be an unpleasant undertaking.
  995.  
  996.      An alternate approach will use the standalone shell.  The general
  997. strategy is to mount the hard drive, edit the password file, and boot
  998. multiuser UNIX.  The full procedure is:
  999.  
  1000.           (boot standalone /unix)
  1001.           # fsck /dev/idsk00
  1002.           # fsys -m /install /dev/idsk00
  1003.           # /install/bin/ed /install/etc/passwd
  1004.           (edit the file in the standard way)
  1005.           w
  1006.           q
  1007.           # fsys -u /dev/idsk00
  1008.  
  1009.      At this point, the root drive is now unmounted and the system may
  1010. be rebooted.  Normally you can just type exit at the shell prompt and
  1011. you will be returned to the monitor and asked what program to boot.  If
  1012. that doesn't work on your version, try:
  1013.  
  1014.           # sync
  1015.           # sync
  1016.           # /etc/uadmin 2 2
  1017.  
  1018.      Uadmin(1m) is documented in the manual (you must also refer to the
  1019. uadmin(2) manual page) -- the above does a normal return to the monitor
  1020. (i.e., firmware).  WARNING: uadmin(1m) is available from full UNIX as
  1021. well but is very dangerous.  Use it with extreme caution and only if
  1022. you really know what uadmin does.
  1023.  
  1024.  
  1025. Making a standalone boot disk
  1026.  
  1027.  
  1028.           ================== WARNING ==================
  1029.           Only do this on backup copies of  the  disks,
  1030.           NEVER to the main Essential Utilities Disk.
  1031.           ================== WARNING ==================
  1032.  
  1033.  
  1034.      The Essential Utilities Disk 1 contains many files needed by the
  1035. automatic restore/upgrade procedures, but for standalone work, many are
  1036. not needed.  After working with these disk for some time, we were able
  1037. to narrow down what is helpful to have on the disk and what is not.
  1038. The following procedure (run from multiuser mode, signified by the ##
  1039. prompt) will convert an Essential Utilities disk to a standalone boot
  1040. disk.
  1041.  
  1042.           (from hard disk UNIX)
  1043.           ## fsck /dev/dsk/c0d0s5
  1044.           ## mount /dev/dsk/c0d0s5 /install
  1045.           ## cd /install/inst/bin
  1046.           ## mv fsys pdinfo swap ttyset ../../bin
  1047.           ## cd /install
  1048.           ## /bin/rm -rf inst
  1049.           ## cp /bin/ed /install/bin
  1050.           ## cp /etc/fsdb /install/etc
  1051.           ## cat > /install/inittab
  1052.           is:s:initdefault:
  1053.           sh:s:respawn:/bin/sh < /dev/console > /dev/console 2>&1
  1054.           ^D
  1055.           ## cd /
  1056.           ## umount /dev/dsk/c0d0s5
  1057.  
  1058.      While there may be other files on this floppy that are not needed,
  1059. we have operated on the principle of least customization.  It has been
  1060. our experience that keeping the procedure simple allows it to be done
  1061. on-the-fly (say, at a customer site) and minimizes the exploration
  1062. required when a new operating system disk is released.
  1063.  
  1064.      In addition, it is not wise to pack the disk too tightly.  The
  1065. editor requires adequate space under /tmp, so an almost-full disk
  1066. precludes editing all but the smallest files; this applies whether the
  1067. file being edited resides on the hard drive or the floppy.
  1068.  
  1069.      Once this is done, the new disk will come up in standalone mode
  1070. without the need for magic mode.  In addition ed(1) and fsdb(1m) are
  1071. available.  The other tools mentioned (pdinfo, swap, ttyset) are
  1072. helpful but not required by the basic procedures.
  1073.  
  1074.      It has been our experience that any version (SVR2, SVR3) of boot
  1075. disk can be used with any version of hard disk UNIX without difficulty
  1076. for doing simple operations such a performing filesystem checks or
  1077. editing /etc/passwd.  For more complex operations, such as
  1078. repartitioning the hard drive or restoring the bootstraps, higher
  1079. version compatibility is required.
  1080.  
  1081.  
  1082. Security Considerations
  1083.  
  1084.      It should be apparent that knowledge of these standalone methods
  1085. is tremendously powerful.  In addition to being able to rescue a
  1086. foundering machine, an unrestricted path to root has been provided as
  1087. well.  While all the standard rules about physical security of the
  1088. computer apply here, an additional step may be taken to thwart a
  1089. would-be interloper.
  1090.  
  1091.      The responsible system administrator of a machine in a hostile
  1092. environment will generally change the computer's firmware password.
  1093. This magic word is required before the monitor on the 3B2 motherboard
  1094. will boot from a floppy, and lack of this password prevents a malicious
  1095. user from simply pulling the power plug to enter firmware mode.
  1096.  
  1097.      In addition to changing the firmware password, the floppy key
  1098. floppy should itself be secured.  When the computer is restarted with
  1099. this disk in the drive, it will clear the non-volatile RAM (NVRAM) and
  1100. restore the default parameters.  Because the firmware password is
  1101. included in these "default parameters", this disk should be kept out of
  1102. non-trusted hands.
  1103.  
  1104.  
  1105. Conclusion
  1106.  
  1107.      We solicit bug reports, comments, and suggestions on this
  1108. document.  Please direct them to:
  1109.  
  1110.     Stephen J. Friedl
  1111.     Software Consultant
  1112.     1891 Running Branch Way
  1113.     Tustin, CA 92680
  1114.     +1 714 544-6561 voice
  1115.     +1 714 838-0099 fax
  1116.  
  1117.     Internet:    friedl@mtndew.Tustin.CA.US
  1118.     Usenet:        {backbones}!uunet!mtndew!friedl
  1119.  
  1120. ------------------------------------------------------------------------------
  1121. Subject: 10 What is/was the 3B Journal?
  1122. ------------------------------------------------------------------------------
  1123.  
  1124.     The _3B Journal_ was put out sporadically by Owens-Laing
  1125.     Publications for several years in the late 1980s, and I used to be
  1126.     the technical editor.  The magazine dealt with the 3B1 and 3B2
  1127.     platforms, and the content varied from very markety-oriented to
  1128.     quite technical (the latter usually written by me).
  1129.  
  1130.     The publisher never seemed to get a handle on the business end of
  1131.     running a magazine, and I've heard nothing past the fourth quarter,
  1132.     1989 issue.  The current phones are disconnected, and I have NO
  1133.     information on subscriptions or anything like that.
  1134.  
  1135.          -- Stephen Friedl  friedl@mtndew.Tustin.CA.US   3/12/1992
  1136.  
  1137.  
  1138. ------------------------------------------------------------------------------
  1139. Subject: 11 What are the various models of 3B2s and their differences?
  1140. ------------------------------------------------------------------------------
  1141.  
  1142. [I'm putting this together mostly from memory and from discussions
  1143.  with other people.  Please feel free to make corrections.]
  1144.  
  1145. The 3B2 family of consists of the following models:
  1146.  
  1147. 3B2/300
  1148.  
  1149.     Processor:
  1150.         WE32000
  1151.         almost 1 MIPS
  1152.  
  1153.     Memory:        
  1154.         Supports a maximum of 4 MB of RAM using two half height
  1155.         2 MB memory cards.
  1156.  
  1157.     Slots:
  1158.         4 standard slots.
  1159.  
  1160.     Features:
  1161.         MFM disk controller on motherboard
  1162.         1 internal full-height drive bay
  1163.         1 720 K floppy drive
  1164.  
  1165. 3B2/310
  1166.  
  1167.     Processor:
  1168.         WE32100 (supports optional MAU)
  1169.         1.5 MIPS
  1170.  
  1171.     Memory:
  1172.         Supports a maximum of 4 MB of RAM using two half height
  1173.         2 MB memory cards.
  1174.  
  1175.     Slots:
  1176.         4 standard slots.
  1177.  
  1178.     Features:
  1179.         MFM disk controller on motherboard
  1180.         1 internal full-height drive bay
  1181.         1 720 K floppy drive
  1182.  
  1183. 3B2/400
  1184.  
  1185.     Processor:
  1186.         WE32100 (supports optional MAU)
  1187.         1.5 MIPS
  1188.  
  1189.     Memory:
  1190.         Supports a maximum of 4 MB of RAM using either two half
  1191.         height or full height 2 MB memory cards.
  1192.  
  1193.     Slots:
  1194.         12 standard slots.
  1195.  
  1196.     Features:
  1197.         MFM disk controller on motherboard
  1198.         2 internal full-height drive bays
  1199.         1 720 K floppy drive
  1200.         1 23 MB cartridge tape drive
  1201.  
  1202. 3B2/500
  1203.  
  1204.     Processor:
  1205.  
  1206.     Memory:
  1207.  
  1208.     Slots:
  1209.  
  1210.     Features:
  1211.  
  1212. 3B2/600
  1213.  
  1214.     Processor:
  1215.  
  1216.     Memory:
  1217.  
  1218.     Slots:
  1219.  
  1220.     Features:
  1221.  
  1222. ------------------------------------------------------------------------------
  1223. Subject: 12 How do I build GCC on the 3B2?
  1224. ------------------------------------------------------------------------------
  1225.  
  1226. John L. Wehle ported GCC to the WE32000 series processor, and it
  1227. first appeared in release 2.2 of GCC.
  1228.  
  1229. To build the GCC release on the 3B2, download the latest GCC
  1230. distribution and allocate at least 35 MB of disk space to do the
  1231. build.  Follow the directions in the INSTALL file.  The following
  1232. are some notes that will make the install go smoother.
  1233.  
  1234. First of all, older versions of /lib/cpp are not capable of
  1235. processing one of the source files.  I recommend building the
  1236. distribution until the GNU cpp is done.  Then, temporarily replace
  1237. your /lib/cpp with the GNU version, and add the following flag to
  1238. CFLAGS:
  1239.  
  1240. CFLAGS = -U__STDC__
  1241.  
  1242. When stage1 is complete, you could remove the -U__STDC__ flag
  1243. and restore your original cpp.
  1244.  
  1245. Basically, the steps are as follows:
  1246.  
  1247.     $ configure --target=we32k-att-sysv3
  1248.     $ make LANGUAGES=c
  1249.     $ make stage1
  1250.     $ make LANGUAGES=c CC=stage1/gcc CFLAGS="-Bstage1/ -g"
  1251.  
  1252. [It is imporant to note that due to a bug in the AT&T compiler,
  1253.  the optimizer doesn't get compiled correctly at this point.]
  1254.  
  1255.     $ make stage2
  1256.     $ make CC=stage2/gcc CFLAGS="-Bstage2/ -g -O"
  1257.  
  1258. [Some people still have problems with the optimizer at this point.
  1259.  If you do, just do not use the -O flag when compiling GCC.  The
  1260.  symptom you will experience that tells you the -O flag should be
  1261.  removed is the compilation of cccp.c will take a VERY long time.
  1262.  Kill the compile and restart without the -O.]
  1263.  
  1264.     $ make stage3
  1265.     $ make CC=stage3/gcc CFLAGS="-Bstage3/ -g -O"
  1266.  
  1267. To verify everything built correctly:
  1268.  
  1269.     $ for file in *.o; do
  1270.     > tail +10c $file > foo1
  1271.     > tail +10c stage3/$file > foo2
  1272.     > cmp foo1 foo2 || echo $file
  1273.     > done
  1274.  
  1275. Then, to install the distribution:
  1276.  
  1277.     $ make CC=stage3/gcc CFLAGS="-Bstage3/ -g -O" install
  1278.  
  1279. Good luck!
  1280.  
  1281. [These notes are a combination of my own experiences with building the
  1282.  GCC compiler on a 3B2/400 and discussions with John Wehle, the author
  1283.  of the port.]
  1284.  
  1285. NOTES:
  1286.  
  1287. The GCC binaries available on several anonymou FTP sites will not
  1288. work with certain version of the standard C compiler.  It appears
  1289. to be some sort of linker problem.
  1290.  
  1291. Speaking of linker problems, GCC will not work all that well with
  1292. the standard C shared library -lc_s.  The workaround for this is
  1293. to compile your program with GCC, but the link will fail.  When it
  1294. does, use something like the following to do the link stage:
  1295.  
  1296. $ cc -O -L/usr/local/lib/gcc-lib/we32k-att-sysv/2.2.2 program.o \
  1297.     -o program -lgcc -lc_s
  1298.  
  1299. This way, you will not only get fast binaries, but small ones as
  1300. well.
  1301.  
  1302. ==============================================================================
  1303. If you have any other questions, or better answers, please send
  1304. mail to 'greg@gagme.chi.il.us'
  1305. ==============================================================================
  1306.  
  1307. -- 
  1308. Gregory A. Gulik                                        Call Gagme, a public
  1309.        greg@gagme.chi.il.us  ||  gulik@depaul.edu       access UNIX system at
  1310.    ||  gulik@rtsg.mot.com                               (312) 714-8568
  1311.