home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / minix / 5236 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  6.3 KB

  1. Path: sparky!uunet!mcsun!sun4nl!philapd!apdnm!apdnmi!baukje.idca.tds.philips.nl!groot
  2. From: groot@idca.tds.philips.nl (Henk de Groot)
  3. Newsgroups: comp.os.minix
  4. Subject: Re: Copiing 1.5 distribution disks (sumarry)
  5. Message-ID: <groot.727603707@baukje.idca.tds.philips.nl>
  6. Date: 21 Jan 93 08:08:27 GMT
  7. References: <groot.726912460@baukje.idca.tds.philips.nl> <KDULING.93Jan14083632@freedom.nmsu.edu> <groot.727213313@baukje.idca.tds.philips.nl> <1993Jan18.144415.2849@dct.ac.uk>
  8. Sender: news@idca.tds.philips.nl
  9. Reply-To: groot@idca.tds.philips.nl (Henk de Groot)
  10. Lines: 130
  11. X-Disclaimer: This opinion is mine alone
  12.  
  13. In <1993Jan18.144415.2849@dct.ac.uk> mcramm@dct.ac.uk (McRamm) writes:
  14.  
  15. >In article <groot.727213313@baukje.idca.tds.philips.nl>, groot@idca.tds.philips.nl (Henk de Groot) writes:
  16. >> See, that's the problem, you need to have minix running to do this. I just
  17. >> got the package so I have nothing running! So it leaves me the option to
  18. >> install without a backup and make the backup later, or to use another OS. 
  19. >> I want the last option, I don't want to use the originals.
  20. >> It seems that the disk are rather marginal, I tried many things on my own
  21. >> PC but it just didn't work.
  22.  
  23. >Maybe I'm missing something but coudln't you just use the demo version?
  24. >I seem to recall that that's exactly what I did on my old Amiga 2000 to make
  25. >my first backups.
  26.  
  27. Bingo, I tried that! Only... the demo version doesn't have dd on it. I ended
  28. up using 'tee' the following way 'tee /dev/null < /dev/fd0 > /dev/fd0'. I
  29. only wished the copies actualy worked :-(, they didn't. Somehow my drive was
  30. not good enough.
  31.  
  32. I will sumarise what I found so far to make an end at the discussion and
  33. maybe to help others with the same problem.
  34.  
  35. =============================================================================
  36.         How to copy minix distribution disks (on a PC)
  37.  
  38. When you get the distibuton disk from Prentice Hall, the first thing to do is
  39. write-protect them all and make copies. Making copies can be a real problem
  40. without MINIX, because you have to use DOS or another OS.
  41.  
  42. Using a DOS machine:
  43. If you have 360 Kb disk diskcopy works fine. The minix distribution disk
  44. don't have a media-byte at the proper place so diskcopy will copy 40 tracks
  45. which is fine. Use the following procedure:
  46.     prepare an ordinary DOS 360 kb floppy.
  47.     format your traget disk with DOS.
  48.     now the copy process:
  49.         insert the ordianry DOS floppy
  50.         type 'dir a:'
  51.         exchange the DOS floppy for the source floppy
  52.         start 'diskcopy a: a:' (or on two (the same) drives 
  53.                     diskcopy a: b:)
  54.         exchange with target disk if diskcopy asks for it.
  55.     this does the job on 360 kb disks.
  56.  
  57. On 720 kb disks this procedure doesn't work, diskcopy will only copy 40 of
  58. the 80 tracks.
  59.  
  60. For 720 kb disks you do the following:
  61.     get a MINIX demonstration disk and start it. Prepare a harddisk
  62.     partition of 1000 blocks (mkfs /dev/hd2 1000 to make a filesystem
  63.     on partition 2 of the harddisk). You must of course prepare your
  64.     harddisk before doeing this (and make backups of the other
  65.     patitions too!!!). You have to use another disk because the
  66.     demonstrion disk is full and can't hold an 720 kb image anyway.
  67.     mount the harddisk on /user of the demonstration disk.
  68.     cd to /user
  69.     copy the disk in with 'tee /dev/null < /dev/fd0 > image'
  70.     copy the image out to the target with 'tee /dev/null < image >
  71.     /dev/fd0'
  72.     
  73.     If you don't have the demonstration disk, but have enough programming
  74.     skill try to write a small program using direct bios calls (int 13)
  75.     (I did this, I took the main part from a book though). Let the
  76.     program read the floppydisk and write to the harddisk. Also prepare
  77.     a program to do the reverse. Now format your target disk with DOS
  78.     (important - there must be an DOS structure on it!). Also prepare 
  79.     an ordianry disk (used to do 'DIR' on).
  80.     
  81.     now the copy process:
  82.         insert the ordianry DOS floppy
  83.         type 'dir a:'
  84.             (this will set the bios disk parameters to the
  85.              correct state)
  86.         exchange the DOS floppy for the soucre floppy
  87.         start your copy-in program.
  88.         put in your target disk.
  89.         start your copy-out program.
  90.             (because the target disk contains an DOS structure
  91.              at the start the bios will set the correct settings
  92.              before the disk is written!)
  93.     this does the job on 720 kb disks.
  94.  
  95. If all this fails you may try PC-TOOLS or NORTON. I have tried norton, but it
  96. didn't work for me, see next paragraph. It supposed to work. Maybe you have
  97. to do the 'dir' trick with norton too, or let norton first look on the DOS
  98. disk, than exchange the disk an write the disk to a file.
  99.  
  100. If all this fails you may have marginal disks. You can return the disks or
  101. try to copy them on another computer. If you are lucky to have a real UNIX
  102. system (or another MINIX system) can try to copy them there using the normal
  103. unix tools (I assume you know them).
  104.  
  105. I had trouble with my disks, I couldn't copy them under DOS at all. I used
  106. and AT&T UNIX system to copy them. The UNIX system did't have any problem
  107. with it. Now that I had non-mariginal copies I tried to copy them again
  108. using DOS. I succeded very well with the raw copy program using direct
  109. bios calls. I could hear from the sound of the drive (stepping of the head)
  110. that there was no problem anymore.
  111.  
  112. If you realy can't copy them the only alternative is use the originals to
  113. setup the system. You can leave all the disks write-protected except the
  114. /usr disk and the last disk of the distribution (I didn't look why). As soon
  115. as you have MINIX running you can copy the disks using 'dd'.
  116.  
  117. I hope this will help others with the same problem.
  118.  
  119.  
  120. H. de Groot - groot@idca.tds.philips.nl
  121.  
  122. Disclaimer:
  123.     I didn't try the 360 kb floppy copy, I got this information from
  124.     others. I did try the copy methods for 720 kb, but they did't work
  125.     for me on my originals. I mentioned them anyway because they should
  126.     work according to others. I checked the raw-copy menthod on my copied
  127.     disks an that one worked anyway for non-marginal disks. 
  128.  
  129. P.S: Digital Equipment Corporation has nothing to do with this posting!
  130. =============================================================================
  131.  
  132. Kind Regards,
  133.  
  134. Henk.
  135.  
  136. P.S. Dennis Cheng-Zen Yang from Taiwan - thanks for your response, mail
  137. bounced ...
  138.  
  139. --
  140.   /   /            Henk de Groot      | Dep.: IISS-SE (System Management)
  141.  /---/ __  __  /   Loc: V2/A05        | Mail: groot@idca.tds.philips.nl
  142. /   / (-_ / / /(   Tel: +31 55 432104 | Digital Equipment Corporation
  143.