home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / linux / 6412 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  2.6 KB

  1. Path: sparky!uunet!crdgw1!rdsunx.crd.ge.com!ariel!davidsen
  2. From: davidsen@ariel.crd.GE.COM (william E Davidsen)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: Device names (was Re: ttys2 not responding)
  5. Message-ID: <1992Jul22.143705.18067@crd.ge.com>
  6. Date: 22 Jul 92 14:37:05 GMT
  7. References: <711742044.F00069@remote.halcyon.com>
  8. Sender: usenet@crd.ge.com (Required for NNTP)
  9. Reply-To: davidsen@crd.ge.com (bill davidsen)
  10. Organization: GE Corporate R&D Center, Schenectady NY
  11. Lines: 41
  12. Nntp-Posting-Host: ariel.crd.ge.com
  13.  
  14. In article <711742044.F00069@remote.halcyon.com>, Rob.Levin@f217.n3802.z1.fidonet.org (Rob Levin) writes:
  15.  
  16. |> Could you be more specific on the BSD convention for hard disk naming? 
  17. |> And for partitions, if such a thing exists in the vanilla BSD
  18. |> environment?
  19.  
  20.   Let me try to explain several ways in which disks are named, all of
  21. which seem to me to be better than the way it's currently done in linux.
  22.  
  23.   Many BSD systems call their drives hd#P (where # is the drive # and P
  24. is the partition). Many have conventions that partition c is the whole
  25. disk. SCO uses the drive number and partition number (rather than
  26. letter), reserving the letters for a=all and d=dos (as I recall).
  27.  
  28.   Some systems include the controller number on the id, like V.4, where
  29. a device might be c0d0s3 (controller 0, device 0, slice 3).
  30.  
  31.   What I think might improve the information content of names is to
  32. include the controller and device number as digits, then the partitions
  33. as lower case characters, reserving the character A of the whole (ALL)
  34. disk. This would give hd00a, hd00b, etc, hd00A the whole disk, hd01a the
  35. 2nd disk, etc. hd10a would be the 2nd controller, drive 0. I think
  36. that's important in the near term, because there are a lot of smaller
  37. drives becoming available and people need a 2nd controller to run more
  38. than 2 drives.
  39.  
  40.   Since I'm probably going to get flamed for this anyway, I think the
  41. SCO floppy naming conventions are useful, if somewhat verbose. They're
  42. easy to remember because they contain tpi, spt, etc. fd096ds15 is device
  43. 0, 96 tpi (HD), double sided, 15 spt. The raw (character) device has an
  44. 'r' added to the front of the device name.
  45.  
  46.   While that's not optimal for linux (no one runs linux on single sided
  47. disks, do they?), I think the names in use now may have less than optimal
  48. information, and could be improved. I leave it to someone else to pick
  49. names which reflext the mimits of the existing device drivers.
  50. -- 
  51. bill davidsen, GE Corp. R&D Center; Box 8; Schenectady NY 12345
  52.     It never ceases to amaze me that otherwise rational people, able to
  53.     understand calculus, compound interest, and the income tax form, can
  54.     continue to believe that poker is a game of chance.
  55.