home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / bsd / 5050 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  2.5 KB

  1. Path: sparky!uunet!cs.utexas.edu!swrinde!sdd.hp.com!uakari.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!uw-beaver!cornell!cs.cornell.edu!cchase
  2. From: cchase@cs.cornell.edu (Craig Chase)
  3. Newsgroups: comp.unix.bsd
  4. Subject: 386BSD asboot problems (bug?)
  5. Keywords: DOS, BIOS, SCSI, disklabel
  6. Message-ID: <1992Sep3.135756.20840@cs.cornell.edu>
  7. Date: 3 Sep 92 13:57:56 GMT
  8. Sender: news@cs.cornell.edu (USENET news user)
  9. Followup-To: comp.unix.bsd
  10. Organization: Electrical Engineering, Cornell University, Ithaca NY
  11. Lines: 50
  12. Nntp-Posting-Host: bullwinkle.cs.cornell.edu
  13.  
  14. I encountered some trouble configuring my SCSI hard disk with the partitions
  15. I want.
  16.  
  17. The disk geometry being simulated is 2048 sectors/cyl (1Meg per cyl) which is swell.
  18. Anyway, I labeled the disk:
  19.  
  20. DOS blocks     0-40959 (cyls 0 - 19)
  21. root (as0a)    40960 - 421887 (cyls 20-205)
  22. swap (as0b)    380928 - 483327 (cyls 206-236)
  23.  
  24.  
  25. Anyway, this is all swell, 30 meg of swap, 20 meg of DOS 180 meg for files....
  26. Problem is, the machine wouldn't boot multiuser anymore.  After sticking printf
  27. statements in init and ruling out problems there, I started looking at boot.c
  28.  
  29. A few more printf's (and a lot of disklabel ....  ;  shutdown -r now) later
  30. it appears that asboot is becoming confused about what the offset should
  31. be for the root partitions.  
  32.  
  33. Quoting from boot.c
  34.     if (lp->d_type == DTYPE_SCSI)
  35.         off = htonl(scsisn);
  36.  
  37. However, htonl(scsisn) is 0, and the correct offset should be 40960.
  38. (Hmmm, it just occurs to me that I don't remember if I printed scsisn
  39. before the "host-to-network" byte swapping, (that must have been when
  40. dinner was ready....) I should have done that.  Perhaps there's just
  41. a byte-swapping problem?)
  42.  
  43. scsisn is an offset (established in srt0.c) which boot.c reads, but doesn't
  44. write.  I don't know who writes this value, it would seem reasonable that it
  45. is part of the disklabel, but I'm already at the limits of my understanding.
  46.  
  47. So, my questions are:
  48.  
  49. 1) has anyone else had trouble succesfully labeling a SCSI disk with
  50.    DOS as the first partitions (and 386BSD after)?
  51.  
  52. 2) What is scsisn, and where might I find the header files that describe
  53.    the DOS/BIOS partition tables?
  54.  
  55. 3) Have I encountered a bug in disklabel, asboot, bootas, or none of the above?
  56.  
  57. Craig
  58.  
  59. -- 
  60. ------------------------------------------------------------------------
  61. | Craig Chase            |          This space for rent                |
  62. | cchase@ee.cornell.edu  |                555-8968                     |
  63. ------------------------------------------------------------------------
  64.