home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / Other / Coherent / DemonArchives / docs / coh3.tip.faq.z / coh3.tip.faq
Encoding:
Text File  |  1995-10-10  |  25.5 KB  |  771 lines

  1. This is the Frequently (occassionally)
  2. Asked Questions posting for comp.os.coherent,
  3. with answers about the COHERENT operating system, V3.2.  It
  4. is also posted on comp.os.coherent, but it is not a full FAQ for
  5. comp.os.coherent.  Companion postings have answers that apply to both
  6. Version 4.0 and 4.2.nn and answers that apply to 4.2.05 and X11 alone.
  7.  
  8. Some general notes:
  9.  
  10. When used alone, the word "Coherent" is used to mean any of the
  11. versions that may have been released.
  12.  
  13. Unless otherwise specified, these answers refer to COHERENT.3.2, which
  14. is the oldest release still seemingly still in use.
  15.  
  16. Many people have contributed to this list, directly or indirectly.  In
  17. some cases, an answer has been adapted from one or more postings on the
  18. comp.os.coherent newsgroup.  Our thanks to all of those who post answers.
  19. The name (or names) at the end of an entry indicate that the information
  20. was taken from postings by those individuals; the text may have been
  21. edited for this FAQ.  These citations are only given to acknowledge the
  22. contribution.
  23.  
  24. Cautionary Note.
  25. The Mark Williams Company is no longer trading. Coherent is no longer in
  26. development or production in any release, and the whole team is disbanded.
  27.  
  28. This FAQ is put in the net occassionally by
  29. the Keeper Of The FAQ, Bob Chalmers. robert@chalmers.com.au.
  30. Contributions Are Welcome.   There have been no contributions for over 2 years.
  31. Sources can be found on nanguo.chalmers.com.au 
  32.  
  33.     Thanks to "fingers" of no-real-name fame for puffing on the flame.
  34.  
  35.        T E C H N I C A L  T I P S  F O R  C O H E R E N T  3.2 
  36.  
  37.               Technical Tips FAQ for Rev 3.2 of Coherent
  38.  
  39.     C O N T E N T S
  40.     ================
  41.  
  42. Q1.    Modem devices:
  43. Q2.    Remote logins:
  44. Q3.    Fast modems:
  45. Q4.    Simultaneous users:
  46. Q5.    Usenet news software:
  47. Q6.    Email packages:
  48. Q7.    The 64K question:
  49. Q8.    Compiler hints:
  50. Q9.    Hardware configurations:
  51. Q10.    Termio hints:
  52. Q11.    Curses:
  53. Q12.    More uucp:
  54. Q13.    How to create a bootable >>>R/W<<< floppy from Coherent:
  55. Q14.    Master Boot Reinstallation:
  56. Q15.    Line Printer Help:
  57. Q16.    Moving data from a Sun to Coherent:
  58. Q17.    Multi-Volume Archive:
  59. Q18.    SCSI MKFS Notes:
  60. Q19.    DOS to Coherent:
  61. Q20.    Uuinstall Bug Help:
  62. Q21.    Xwindows:
  63. Q22.    Tar Help:
  64. Q23.    Setting Boot Partition: DOS or Coherent?
  65. Q24.    A Backup Script:
  66.  
  67. K E E P E R S  O F  T H E  F A Q:
  68. Robert Chalmers        robert@chalmers.com.au
  69.  
  70. T E C H N I C A L  T I P S :
  71. -----------------------------------------------------------------------
  72. Q1.
  73. MODEM DEVICES:
  74.  
  75. Q: What devices should I use with a modem for dialing in / dialing out
  76.  
  77. A: For dialing in you should use a device with modem control. For example
  78.    com1r or com2r. That is important to ensure that when the calling site
  79.    dropped carrier, that also at your site SIGHUP is sent to already running
  80.    processes, to ensure that the modem hangs up (dropping DTR) and a new
  81.    getty is opened on that port to enable further logins.
  82.  
  83.    For dialing out or local terminals you do not need modem control 
  84.    Also you do not have to worry about cabling problems, just use some
  85.    of those null modem cables available in most computer stores.
  86.  
  87. Q2.
  88. REMOTE LOGINS:
  89. Q:  How do I enable logins via modem to my machine:
  90.  
  91. A:  I assume that modem is set to AUTO-ANSWER (ATS0=1) and the cabling
  92.     is ok.
  93.     Edit the file  /etc/ttys. Here an example for com2:
  94.     
  95.     0rPcom2r
  96.   
  97.     0            = not yet enabled (enable = allow login, run getty)
  98.  
  99.     r            = remote access   (will enable asking of a password
  100.                                     for remote-access (see /etc/passwd)
  101.                    Why ? System security, additional password
  102.  
  103.     P            = speed (your modem is connected to the computer)
  104.                    P = 9600 Baud, I use this for my Telebit Modem
  105.        
  106.     com2r        = device with modem control, when CARRIER is lost it
  107.                    will sent SIGHUP to all processes running on that
  108.                    line and will also drop DTR so a modem hangup or 
  109.                    a modern modem does a hardware reset.
  110.  
  111.      Now type the following:
  112.      enable com2r    (for Coherent 3.2 that's enough)
  113.      kill -1 1       (Coherent 3.0.0 or 3.1.0, Process INIT will start
  114.                       a getty on com2r)
  115.  
  116.  
  117. Q3.
  118. FAST MODEMS:
  119. Q:    Can I use fast modems with Coherent ?
  120.  
  121. A:    Yes you can. But you must think about the following:
  122.  
  123.       a) maximum  Baud rate between modem - machine is 9600 Baud
  124.          (Coherent as a multiuser/multitasking environment is
  125.           not fast enough for 19200 Baud)
  126.  
  127.       b) cps-rates in transfer depend on modem/method
  128.  
  129.          calling into my machine (T2500) with a USR, using sz for transfer:
  130.                    480 cps to 600 cps (compressed, uncompressed files)
  131.  
  132.          calling out with uucp (T2500):
  133.                    860 cps
  134.  
  135.          The rate may differ if you use a slow 286 or 386. The above results
  136.          were yielded with a 386/33.
  137.  
  138.  
  139. Q4.
  140. SIMULTANEOUS USERS:
  141. Q:    I want to use Coherent as a multiuser operating system. How many
  142.       users can work with it at the same time ?
  143.  
  144. A:    Now 11 User:
  145.       console   : 1
  146.       com1      : 1
  147.       com2      : 1
  148.       Multiport : 8
  149.       --------------
  150.                  11
  151.  
  152.       I still do not know if there are device drivers for intelligent
  153.       Multiport-Cards but as far as I know there are only drivers for
  154.       "dumb" Multiport-Cards and only in polled mode.
  155.       Therefore you need a very fast machine for "multiuser"
  156.  
  157.  
  158. Q5.
  159. USENET NEWS SOFTWARE:
  160. Q:    Is there any Net-News Software for Coherent ?
  161.  
  162. A:    Yes, there are several packages available:
  163.  
  164.       1. CNEWS  -  the famous package
  165.  
  166.          difficult to install (although there is a nice installation
  167.          script in the Coherent version). Only for advanced users !
  168.          Has no reader !
  169.  
  170.       2. WNEWS 3.0  -  News for MINIX, ported to Coherent
  171.  
  172.          based on BNEWS - small, not bad
  173.          Has no reader
  174.  
  175.       3.  GNEWS 2.0 (or newer now ?)
  176.  
  177.          all you need for News, easy to install, Newsreader, nice
  178.  
  179.       4.  rn
  180.  
  181.           the well known newsreader
  182.  
  183.       5.  tass 
  184.       
  185.             curses based newsreader. Nice, but you should not have
  186.             too much groups or articles in /usr/spool/news.
  187.  
  188.       6.  bsnews
  189.  
  190.           small news package for receiving news via email
  191.  
  192.  
  193. Q6.
  194. EMAIL PACKAGES:
  195. Q:    I do not like Coherent's mailer. What can I use instead of it ?
  196.  
  197. A:    WMAIL 3.63  -  a minix port, MAILX-clone
  198.  
  199.       comb 1.29   -  curses based mailer, nice interface
  200.  
  201.       You should ensure that in both cases you have smail 2.5 as
  202.       a smart-mailer that understands domain addresses.
  203.       smail 2.5 is already in Coherent 3.2
  204.  
  205. Q7.
  206. THE 64K QUESTION:
  207. Q:    Does Coherent really have a 64 kb limitation ? I want to port
  208.       the GNU-C-Compiler and compile big programs.
  209.  
  210. A:    Coherent programs are limited to 64 K for code and 64 k for data
  211.       and stack. The limit is not in the compiler, it's in the kernel
  212.       or at least in the actual system design. No process can exceed this
  213.       limitation.
  214.       But Binaries in Coherent are about 40 % smaller so big programs
  215.       for "Real-UNIXES" may also be portable
  216.  
  217. Q8.
  218. COMPILER HINTS:
  219. Q:    I write a C-program that seems to be ok but it still core dumped.
  220.       Is this a compiler error ? Is my program wrong ?
  221.  
  222. A:    If a program needs a lot of space for local data (resided on the
  223.       stack in most cases) then the maximum size for the stack may be
  224.       exceeded and your return addresses or other important things were
  225.       overwritten.
  226.       With the program fixstack you can increase the size for the stack
  227.       (and also cut the space for data)
  228.       Try size my_prog before and after fixstacking to see the difference.
  229.  
  230. Q9.
  231. HARDWARE CONFIGURATIONS:
  232. Q:     What hardware (Motherboard, hard disk) do I need for Coherent ?
  233.  
  234. A:     Difficult question. Minimum is a AT 286 with 640 KB RAM and a
  235.        hard disk (MFM,RLL,ESDI,SCSI (some), IDE (some)) with at least
  236.        10 MB free disk space.
  237.  
  238.        Nevertheless Coherent is not the fastest operating system, so
  239.        a 386 with at least 25 MHZ and 4 MB RAM and a fast hard disk
  240.        (a hard disk is always too small !!!!) is the minimum config-
  241.        uration for a usable multi-user-operating.
  242.  
  243. Q10.
  244. TERMIO HINTS:
  245. Q:    I compiled a program that uses termio but it did not work.
  246.  
  247. A:    The termio in Coherent (at least 3.1.0 and the first 3.2.0) did
  248.       not work in all cases. So try the sgtty, that works fine.
  249.       When porting programs try to find the -DBSD-parts. There you will
  250.       find in most cases the sgtty-parts you need for porting.
  251.  
  252. Q11.
  253. CURSES:
  254. Q:    I compiled a program that uses curses but the screen sometimes get
  255.       garbled or the machine seems to hang
  256.  
  257. A:    Maybe you still have an old libcurses.a. Replace it with a newer
  258.       copy.
  259.  
  260. Q12.
  261. MORE UUCP:
  262. Q:    I often loose email or files after receiving them with UUCP.
  263.  
  264. A:    Try to get the newest UUCP-update from MWCBBS. The old packages
  265.       still have some problems. Check the permissions, at least for example
  266.       with comparing them with those on your original diskettes.
  267.       Check also the permissions of the needed directories.
  268.       In /usr/spool/uucp/Logs./uucp-program you will find the "hints" of the
  269.       "uucp-program" (uucico, uucp, uux,uuxqt) what goes wrong.
  270.       In Coherent 3.2. you have the program uucheck that will check your
  271.       uucp-installation and is also able to "fix" problems. But you have to
  272.       run it twice if you run it as root because the first time it creates
  273.       the needed directories and the second run sets the correct permission.
  274.  
  275. Q:    I am having a problem connecting to uucp sites not running Coherent 
  276.       after updating to Coherent 3.2.  The error looks like a parity 
  277.       problem, with an {expect} / {actually got} output like: 
  278.     uu315323t 342og310n:   (With backslashes before the numbers)
  279.  
  280. A:      Again, get the latest UUCP package from MWCBBS.  The 3.2 Coherent 
  281.       release may exhibit a parity problem which is cured with the latest 
  282.       uucp release.
  283.  
  284. Q13.
  285. HOW TO CREATE A BOOTABLE >>>R/W<<< FLOPPY from Coherent
  286.     From: Peter Fillingham     fillingham@att.com
  287.  
  288. The COHERENT Operating System Release Notes (Release 3.1.0)
  289. along with the main manual suggest ways of creating a bootable
  290. floppy.  One difficulty of this procedure is that, after 
  291. producing a bootable floppy, one can't write to it !
  292. The following shell programs are suggested as a way making a
  293. bootable floppy, and below is the fix recommended by mwc
  294. for making the bootable floppy system read-write.
  295.  
  296.  
  297. (0) first boot your system from your hard disk, login in as root,
  298. use mkdir to make a convenient subdirectory [e.g., /bin/temp ]. 
  299. cd to /bin/temp. Place disk #1 of your mwc original floppies in 
  300. drive A:, then enter
  301.  
  302.  
  303. dd if=/dev/fha0 of=cohboot count=80 bs=30b
  304.  
  305. Run it in the background if you wish [follow the above line with 
  306. an &; use ps -axfl if you are curious].  This will take just over 
  307. three minutes depending on the speed of your system.  What is
  308. going on is that dd is creating an image of your boot floppy in
  309. you default directory with the file name cohboot. When it finishes,
  310. remove the mwc original floppy, and insert a blank disk.
  311.  
  312.  
  313. (1) Next run the following shell program:
  314.  
  315.  
  316. echo "/etc/fdformat -v /dev/fha0"
  317. /etc/fdformat -v /dev/fha0
  318. echo "/etc/badscan -o proto /dev/fha0 2400"
  319. /etc/badscan -o proto /dev/fha0 2400
  320.  
  321.  
  322.  
  323. Run it in the background if you wish; it takes time.
  324. The echo lines simply display each command line just before it is
  325. carried out to tell you what is going on. The second and fourth
  326. lines format the floppy and check for bad blocks, respectively.
  327. In addition, a file (proto) is being built in your default
  328. subdirectory.  This file will contain a list of the bad blocks:
  329. look for a line with %b in it. Probably it is best to use only
  330. a floppy with NO bad blocks: so try until you find one.
  331.  
  332.  
  333. (2) make sure you have a subdirectory /f0 on your hard disk;
  334.  
  335. if not, use mkdir /f0.
  336.  
  337. (3) Next run the following shell program:
  338.  
  339.  
  340. echo "/etc/mkfs /dev/fha0 proto"
  341. /etc/mkfs /dev/fha0 proto
  342. echo "cp /conf/boot.fha /dev/fha0"
  343. cp /conf/boot.fha /dev/fha0
  344. echo "dd if=cohboot of=/dev/fha0 count=80 bs=30b"
  345. dd if=cohboot of=/dev/fha0 count=80 bs=30b
  346. echo "/etc/mount /dev/fha0 /f0"
  347. /etc/mount /dev/fha0 /f0
  348. echo "cd /f0 "
  349. cd /f0 
  350. echo "^G DONE but f0 still mounted !"
  351.  
  352.  
  353.  
  354. The second line produces the file system on the floppy using the 
  355. information from file proto.  The fourth line copies boot.fha
  356. to the floppy.  The sixth line transfers the image of your
  357. system boot floppy to your newly formatted disk (note all
  358. these things take time). Finally, the floppy is mounted so that
  359. while you have booted from the hard disk and have root permissions
  360. you can write to the floppy. The last line simply rings the bell
  361. and tells you it is done.
  362.  
  363.  
  364. (4) next (noting that your default directory is /f0, i.e. the
  365.  
  366.   floppy disk) enter:
  367.   
  368.   mv begin autoboot
  369.     then enter
  370.   db coherent
  371.     then enter
  372.   ronflag
  373.     the response is
  374.   ronflag=001
  375.     then enter
  376.   .=0
  377.     then a response appears
  378.   ronflag=000
  379.     then enter
  380.   :q
  381.     and you should get back your prompt.
  382.  
  383.  
  384.  
  385.  
  386. (5) Finally while the floppy is still mounted, cp over your most useful
  387. programs to the appropriate directories (e.g., vi or me, du, df ...)
  388. Lastly umount f0, shutdown, sync and boot your writable floppy.
  389.  
  390.  
  391.  
  392. Q14.
  393. MASTER BOOT REINSTALLATION:
  394.     From: doug@mwc.com (Doug Peterson)
  395. I want to upgrade the DOS partition from MS-DOS 3.3 to 5.0, and the 
  396. installation program refuses to work with the Coherent master bootstrap
  397. program. It no longer asks for the ability to boot Coherent!
  398.  
  399. The problem specifically is caused be Microsoft's faulty update install
  400. procedure. They assume you have no other operating system on the 
  401. computer.
  402.  
  403. When the 5.0 update install is run, the procedure archives the original
  404. master boot block of the hard drive and rewrites a brand new one. 
  405. Problem is, it takes Coherent's master boot along with it. To restore 
  406. the master boot is very simple:
  407.  
  408. Use dos 5.0 fdisk to change the active partition to COHERENT. Reboot.
  409.  
  410. Use COHERENT's fdisk utility with the -b option to rewrite a new master
  411. boot. Specifically; fdisk -b /conf/mboot /dev/at0x <ENTER>
  412.  
  413. Once completed, you can now boot either system no matter which one is 
  414. active or inactive.
  415.  
  416.  
  417.  
  418. Q15.
  419. LINE PRINTER HELP: From: dave@uvm-gen!pete (Dave Peterson)
  420. I have my printer hooked up to lpt1 and cannot get any output.  I have 
  421. checked my files, but, no luck.  What's the problem?
  422.  
  423. 1) ls -li   ( The i will list the inode number, this will tell you where
  424.               you have linked /dev/lp to. )
  425.  
  426. 2) ln -f /dev/lpt2 /dev/lp  ( link to lpt2  IBM and MWC number the ports 
  427.                            differently thus lpt2 is the first printer )
  428.                            [ you need to be root or bin to do the link ]
  429.                             
  430. This is a partial listing of my /dev directory note the first number is
  431. the inode number.  I have linked lp to lpt2.
  432.   174 c-w--w--w-  2 bin        bin          3   1 Mon Nov 25 17:36 /dev/lp
  433.   101 c-w--w--w-  1 bin        bin          3   0 Fri Apr 27  1990 /dev/lpt1
  434.   174 c-w--w--w-  2 bin        bin          3   1 Mon Nov 25 17:36 /dev/lpt2
  435.   173 c-w--w--w-  1 bin        bin          3   2 Fri Apr 27  1990 /dev/lpt3
  436.  
  437. As a final point when you send data to /dev/lpt2 use pipes not redirection.
  438. Try cat (file) | /dev/lpt2  it works for me.
  439.  
  440.  
  441. Q16.
  442. MOVING DATA FROM A SUN TO COHERENT:
  443.         (From: PINEAU@uqac.uquebec.ca (Louis Pineau))
  444.  
  445. First, the floppy have to be formatted whether on the sun or on the
  446. Coherent system (with fdformat /dev/rfd0c on the sun). Once the floppy
  447. is formatted, there is no need to reformat or mkfs it for the life of the
  448. floppy or until something unusual happens.
  449.  
  450. To write and read the floppy, on both system (sun and coherent), I use the
  451. command "ustar" since it can handle multi-volume files (files that are too
  452. large to fit on a single floppy).
  453.  
  454.  
  455. Thus, on the sun, I do:
  456.   /usr/5bin/ustar -cvf /dev/rfd0c file [files ...]    to write on the floppy
  457.   /usr/5bin/ustar -tvf /dev/rfd0c                     to list the floppy
  458.   /usr/5bin/ustar -xvf /dev/rfd0c [file ...]          to read the floppy
  459.  
  460.  
  461. On my coherent system, I use the same commands without the /usr/5bin prefix
  462. and with the proper floppy device (/dev/fva1 on my system).
  463.  
  464. I know that there is a way to read or write ms-dos formatted floppy but in
  465. order to mount or unmount the floppy, you must become superuser.
  466.  
  467.  
  468.  
  469. Q17.
  470. MULTI-VOLUME ARCHIVE: (From: jr@connie.de.convex.com (Joachim Riedel))
  471.  
  472. I'm trying to archive a 5 mb file (which is itself a compressed cpio file)
  473. from hard disk onto floppy disk (fva1). I've tried cpio and tar and even pax
  474. directly but cannot get past one volume. 
  475.  
  476. Use the raw device (i.e. /dev/rfva1 ) instead of the device  fva1.
  477.  
  478. Q18.
  479. SCSI MKFS NOTES: Answer From: stephen@mwc.com (Stephen Davis)
  480.  
  481. I am trying to add a second scsi drive to my system.  mkfs will not accept 
  482. a proto file.  What do I do?
  483.  
  484. You do not badscan a SCSI drive. Instead of giving mkfs a proto file, you give
  485. it the total number of blocks in the partition. The number of blocks is listed
  486. in the partition table under f-disk.
  487.  
  488.  
  489.  
  490. Q19.
  491. DOS TO COHERENT:
  492. Q: The question is, is it possible to read DOS-format 360KB-diskettes?
  493.  
  494. A: yes it is :-)   From: lvds@tfpbbs.uucp (Laurent Cas)
  495.  
  496. Here is the device type reference table:
  497. Device name  Sectors/track  Heads  Sectors  Bytes   Format
  498. /dev/f9a0          9          2      720    360 KB   5.25"
  499. /dev/fqa0          9          2     1440    720 KB   3.5"
  500. /dev/fha0         15          2     2400    1.2 MB   5.25"
  501. /dev/fva0         18          2     2880    1.44 MB  3.5"
  502.  
  503.  
  504. If your 360KB drive is 'A:' (MSDOS reference) you can do dos t /dev/f9a0
  505. to list your disk, or if your 360KB is 'B:' you will have to do dos t /dev/f9a1
  506.  
  507. drive A is number 0 and drive B is number 1 ; same for partitions on your
  508. hard disk...
  509.  
  510.  
  511. Cheers, Laurent.
  512.  
  513.  
  514. Q20.
  515. UUINSTALL BUG HELP: (From norm@mwc.com)
  516.  
  517. Using Coherent 3.2, I run UUINSTALL, upon exiting, I am back at my 
  518. prompt, but, the system hangs. the only way to restart via a reboot.
  519. Is this problem specific to 3.2 or is it something I have possibly done?
  520.  
  521. This is a bug in the 3.2.0 release of uuinstall. Occasionally, upon exiting,
  522. it leaves your terminal in "raw" mode.  The Errata sheet which is included
  523. with 3.2 releases mentions this, as far as I know.  To fix your terminal
  524. after exiting uuinstall, enter the following (note that <ctrl-J> is the control
  525. key plus the letter J):
  526.  
  527.  
  528.     <ctrl-J> stty sane <ctrl-J>
  529.  
  530.  
  531. Q21.
  532. XWINDOWS:  (From doug@mwc:)
  533.  
  534. From time to time, we get people asking about X windows on Coherent. Many new
  535. entrants into the field of UNIX have probably heard of the popular UNIX
  536. graphics interface called X-WINDOWS.
  537.  
  538. X-WINDOWS was developed by MIT. To the best of our knowledge they still hold
  539. the rights to the source code and it is in the public domain.
  540.  
  541. To the best of our knowledge, the source code takes up 110mb of disk space!
  542. The binaries, an additional 12 - 20mb's of disk space. It requires TCP or
  543. Streams support, neither of which is in COHERENT.
  544.  
  545. X-windows it seems, has become somewhat of a popular GUI for
  546. UNIX in a very short time. Various hardware firms have developed and are
  547. marketing X-workstations, servers and cards.
  548.  
  549. On page 14 of the November 1991 issue of UNIX REVIEW, is an ad for
  550. X11 Release 5 for System V/386. The price advertised is $495 with printed
  551. manuals, $395 without. So, X is not cheap via the commercial route.
  552.  
  553. Given COHERENT'S small model compiler, it is obviously impossible at this
  554. time for COHERENT to even compile the code, let alone run it. COHERENT 386,
  555. currently undergoing intensive development, will feature a 32-bit native
  556. mode compiler.
  557.  
  558. At this time, we don't envision COHERENT ever shipping with X-Windows
  559. given the fact that the size of it would double the size of COHERENT
  560. overnight.
  561.  
  562.  
  563. Q22.
  564. TAR HELP:
  565.  
  566. The Coherent version of tar has been known to create problems for users.
  567. It is believed that the latest version of tar has alleviated most of these
  568. problems. Some of the original problems include inability to read a tar archive
  569. to tar creating recursive inode/file loops that can only be removed by
  570. "clri".  The more recent Coherent releases also includes ustar, which 
  571. appears to be much more robust.  It has been suggested to use the ustar
  572. command instead of the Coherent native tar command in most cases.
  573.  
  574.  
  575. Q23.
  576. SETTING BOOT PARTITION: DOS or Coherent?
  577.  
  578. Occasionally, a user may want to boot to Coherent for the most part, rather
  579. than come up in DOS by default.  You can leave the DOS partition in tact,
  580. and switch between the preferred operating systems on as "as needed" basis.
  581. To do this, simply use the fdisk program in either operating system and 
  582. make the partition active for the operating system that resides there. Reboot
  583. the system, (AMI Bios system owners require a hard reset) and the system will
  584. now boot to the partition made active with fdisk. For example, if you wish
  585. to boot DOS by default, make the first partition active.  If you want to boot
  586. Coherent by default, make the partition active that Coherent resides on.
  587.  
  588. Q24.
  589. A BACKUP SCRIPT:   From udo@umunk.gun.de Thu Aug 20 07:58:16 1992
  590.  
  591.     [ This script was Written by Udo Munk, a name you will see thoughout 
  592.     the Coherent 4.0 manual.  Udo has ported a *lot* of software to
  593.     Coherent, and following is a backup script Udo sent me some time
  594.     ago.  I am very appreciative of his efforts, he has made a very
  595.     positive difference in the quality of software available for 
  596.     Coherent, as well as many features used in Coherent, (terminfo and
  597.     tic just to name two).  I wish I could contribute so much!  
  598.     Thanks Udo!  ]  --Mike 
  599.  ----- cut here -----
  600.  # shell script to backup Coherent's system files to disk
  601.  # Should work with Coherent 3.x and Coherent 4.0.
  602.  # At the end of the file are the installation dependent files, 
  603.  # please change to your needing.
  604.  # Written by Udo Munk (udo@umunk.GUN.de)
  605.  
  606.  # the output device:
  607.  # [May need to be changed to reflect your particular floopy drive type --Mike ]
  608.  OUTDEV=/dev/fva1
  609.  
  610.  echo -n "Put a disk with a filesystem in $OUTDEV and hit return: "
  611.  read dummy
  612.  /etc/mount $OUTDEV /mnt
  613.  
  614.  echo "Copying files in / ..."
  615.  cp .profile /mnt
  616.  cp backup /mnt
  617.  
  618.  echo "Copying files in /bin ..."
  619.  if [ ! -d /mnt/bin ]
  620.  then
  621.      mkdir /mnt/bin
  622.  fi
  623.  cp /bin/mount /mnt/bin
  624.  cp /bin/umount /mnt/bin
  625.  
  626.  echo "Copying files in /etc ..."
  627.  if [ ! -d /mnt/etc ]
  628.  then
  629.      mkdir /mnt/etc
  630.  fi
  631.  cp /etc/.profile /mnt/etc
  632.  cp /etc/brc /mnt/etc
  633.  cp /etc/checklist /mnt/etc
  634.  cp /etc/domain /mnt/etc
  635.  cp /etc/drvld.all /mnt/etc
  636.  cp /etc/group /mnt/etc
  637.  cp /etc/logmsg /mnt/etc
  638.  cp /etc/modemcap /mnt/etc
  639.  cp /etc/motd /mnt/etc
  640.  cp /etc/mount.all /mnt/etc
  641.  cp /etc/newusr /mnt/etc
  642.  cp /etc/passwd /mnt/etc
  643.  cp /etc/profile /mnt/etc
  644.  cp /etc/rc /mnt/etc
  645.  cp /etc/serialno /mnt/etc
  646.  cp /etc/shutdown /mnt/etc
  647.  cp /etc/termcap /mnt/etc
  648.  cp /etc/timezone /mnt/etc
  649.  cp /etc/ttys /mnt/etc
  650.  cp /etc/umount.all /mnt/etc
  651.  cp /etc/uucpname /mnt/etc
  652.  
  653.  # if available copy files in /etc/default
  654.  if [ -d /etc/default ]
  655.  then
  656.      echo "Copying files in /etc/default ..."
  657.      cpdir /etc/default /mnt/etc/default
  658.  fi
  659.  
  660.  echo "Copying files in /usr/bin ..."
  661.  if [ ! -d /mnt/usr ]
  662.  then
  663.      mkdir /mnt/usr
  664.  fi
  665.  if [ ! -d /mnt/usr/bin ]
  666.  then
  667.      mkdir /mnt/usr/bin
  668.  fi
  669.  cp /usr/bin/modeminit /mnt/usr/bin
  670.  cp /usr/bin/ramdisk /mnt/usr/bin
  671.  
  672.  echo "Copying files in /usr/lib ..."
  673.  if [ ! -d /mnt/usr/lib ]
  674.  then
  675.      mkdir /mnt/usr/lib
  676.  fi
  677.  if [ -f /usr/lib/crontab ]
  678.  then
  679.      cp /usr/lib/crontab /mnt/usr/lib
  680.  fi
  681.  cp /usr/lib/units /mnt/usr/lib
  682.  
  683.  echo "Copying files in /usr/lib/mail ..."
  684.  if [ ! -d /mnt/usr/lib/mail ]
  685.  then
  686.      mkdir /mnt/usr/lib/mail
  687.  fi
  688.  cp /usr/lib/mail/aliases /mnt/usr/lib/mail
  689.  cp /usr/lib/mail/paths /mnt/usr/lib/mail
  690.  
  691.  echo "Copying files in /usr/lib/uucp ..."
  692.  if [ ! -d /mnt/usr/lib/uucp ]
  693.  then
  694.      mkdir /mnt/usr/lib/uucp
  695.  fi
  696.  cp /usr/lib/uucp/L-devices /mnt/usr/lib/uucp
  697.  cp /usr/lib/uucp/L.sys /mnt/usr/lib/uucp
  698.  cp /usr/lib/uucp/Permissions /mnt/usr/lib/uucp
  699.  
  700.  # if available save /usr/lib/news
  701.  if [ -d /usr/lib/news ]
  702.  then
  703.      if [ ! -d /mnt/usr/lib/news ]
  704.      then
  705.          mkdir /mnt/usr/lib/news
  706.      fi
  707.      echo "Copying files in /usr/lib/news ..."
  708.      cp /usr/lib/news/active /mnt/usr/lib/news
  709.      cp /usr/lib/news/distributions /mnt/usr/lib/news
  710.      cp /usr/lib/news/newsgroups /mnt/usr/lib/news
  711.      cp /usr/lib/news/organization /mnt/usr/lib/news
  712.      cp /usr/lib/news/sys /mnt/usr/lib/news
  713.  fi
  714.  
  715.  # if available save /usr/spool/cron/crontabs
  716.  if [ -d /usr/spool/cron/crontabs ]
  717.  then
  718.      if [ ! -d /mnt/usr/spool ]
  719.      then
  720.          mkdir /mnt/usr/spool
  721.      fi
  722.      if [ ! -d /mnt/usr/spool/cron ]
  723.      then
  724.          mkdir /mnt/usr/spool/cron
  725.      fi
  726.      echo "Copying files in /usr/spool/cron/crontabs ..."
  727.      cpdir /usr/spool/cron/crontabs /mnt/usr/spool/cron/crontabs
  728.  fi
  729.  
  730.  # save /usr/local/lib
  731.  # these are my personal needs! edit for your own!
  732.  if [ ! -d /mnt/usr/local ]
  733.  then
  734.      mkdir /mnt/usr/local
  735.  fi
  736.  if [ ! -d /mnt/usr/local/lib ]
  737.  then
  738.      mkdir /mnt/usr/local/lib
  739.  fi
  740.  echo "Copying files in /usr/local/lib ..."
  741.  cp /usr/local/lib/Cu.sys /mnt/usr/local/lib
  742.  cpdir /usr/local/lib/xc /mnt/usr/local/lib/xc
  743.  cpdir /usr/local/lib/minicom /mnt/usr/local/lib/minicom
  744.  
  745.  /etc/umount $OUTDEV
  746.  /etc/fsck $OUTDEV
  747.  echo "Backup ready, remove disk from $OUTDEV."
  748.  ----- cut here -----
  749.  
  750.  
  751. Q24.
  752. DISCLAIMER:
  753. ANY REFERENCE TO THIS ARTICLE, IN ANY FORM, IS PURELY AT YOUR OWN RISK!
  754. All opinions, tips, and instructions in this article are those of the 
  755. contributors, and not of any company associated with the individual 
  756. contributor,
  757. or any company mentioned in this article.  Any reference to this article 
  758. is done purely AT YOUR OWN RISK!  The information contained within is
  759. not guaranteed to be free of errors in any way.  
  760.  
  761. The intention of this note
  762. is only to inform curious usenet readers about some aspects of the operating
  763. system of Coherent, and those companies mentioned are encouraged to add
  764. corrections, additions, or suggest deletions to this note to as per their
  765. policy or willingness to provide positive criticism.
  766.  
  767.  
  768. TRADEMARKS
  769. Unix is the trademark of AT&T / Unix System Laboratories, Inc.
  770. Coherent is the trademark of the Mark Williams Company.
  771.