Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!munnari.oz.au!comp.vuw.ac.nz!lloyd From: lloyd@comp.vuw.ac.nz (Lloyd Parkes) Newsgroups: comp.os.minix Subject: disk geometry, was Re: 3.5" disks, PS/2 model 50Z Message-ID: Date: 14 Jan 90 22:42:25 GMT References: <7866@nigel.udel.EDU> Sender: news@comp.vuw.ac.nz (News Admin) Organization: Dept. of Computer Science, Victoria Uni. of Wellington, NZ. Lines: 36 In-Reply-To: Peter_Van_Epp@cc.sfu.ca's message of 10 Jan 90 19:38:17 GMT In article <7866@nigel.udel.EDU> Peter_Van_Epp@cc.sfu.ca writes: next project. Re reading this I just noticed the part about without a file system, assuming that the disk has been formatted by MSDOS format (and I suspect, for DOS to read it but I haven't tried!) there is a "boot block" (without boot code but with the disk parms) on Track 0 sector 1 head 0 of the disk (my boot mods depend on this fact!), so the block is there unless the disk has been run through mkfs as noted above. This is true of Format from PCDOS 3.2 No, the DOS boot block will be overwritten by any use of /dev/[at|fd]0, especially as a tar device. I have ~200 floppy disks, and only two of them have Minix file systems on them. The others either have DOS or are tar backups. There is definately no boot block on a tar volume. This means that the driver must count, both the number of sectors, and the number of tracks, preferably independently. This would allow 800K low density disks in an AT drive for instance (very useful under DOS these). Also the 1.2M drive has the ability to detect a disk change, I don't know if the 3.5" drives have this ability, or if Minix uses it, or even how useful it would be in Minix. The problem of finding out the geometry of a disk with no file system on it is very hard (if you don't want to thrash the drive). One solution, might be start the sector numbering (on track 0 anyway) from some number other than zero. Different start numbers would indicate different disk geometries, and you would avoid those deadly seek to track 79 :-) This of course raises other problems. Lloyd -- ------------------------------------------------------------------------ Lloyd | lloyd@comp.vuw.ac.nz | "... I can gleek upon occasion." - Parkes | ...!uunet!vuwcomp!lloyd | Nick Bottom ------------------------------------------------------------------------