Return to BSD News archive
Newsgroups: comp.unix.bsd.netbsd.misc Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!newsfeed.internetmci.com!in1.uu.net!news.fido.net!news.demon.co.uk!demon!peer-news.britain.eu.net!newsfeed.ed.ac.uk!dcs.ed.ac.uk!not-for-mail From: st@epcc.ed.ac.uk (Scott Telford) Subject: Re: mtools: mapping of floppy devices X-Nntp-Posting-Host: amber.epcc.ed.ac.uk Message-ID: <DIG63o.CBI.0.staffin.dcs.ed.ac.uk@dcs.ed.ac.uk> Sender: cnews@dcs.ed.ac.uk (UseNet News Admin) Organization: Edinburgh Parallel Computing Centre, University of Edinburgh, UK. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0] References: <5xtE1bYJo$B@rimki.toppoint.de> Date: Wed, 22 Nov 1995 13:42:55 GMT Lines: 45 In article <5xtE1bYJo$B@rimki.toppoint.de>, Christoph Rimek (chrimek@rimki.toppoint.de) wrote: > So what is what? I can link fd0.1440 to any of the existing fd0? > devices, but which link is the "correct" one? Is there any table > that describes the floppy formats and their mapping to the BSD-devices? From the 386BSD FAQ: 6.5 How can I use mtools with the 'new' floppy naming convention? With the adoption of BSD 4.4, there is a new way of accessing the floppy disk drive types. The method uses the minor device number to specify different media sizes and densities. These densities are established by a table from the file /usr/src/sys/arch/i386/isa/fd.c (in NetBSD, your mileage may vary). The table in FreeBSD's fd.c is likely to be slightly different. The order of the entries defines the order of the minor numbers, so the table below has the following characteristics: /dev/fd0a 1 /* 1.44MB diskette */ /dev/fd0b 2 /* 1.2 MB AT-diskettes */ /dev/fd0c 3 /* 360kB in 1.2MB drive */ /dev/fd0d 4 /* 360kB PC diskettes */ /dev/fd0e 5 /* 3.5" 720kB diskette */ /dev/fd0f 6 /* 720kB in 1.2MB drive */ /dev/fd0g 7 /* 360kB in 720kB drive */ struct fd_type fd_types[] = { { 18,2,0xff,0xcf,0x1b,0x6c,80,2880,1,FDC_500KBPS,2,"1.44MB" }, { 15,2,0xff,0xdf,0x1b,0x54,80,2400,1,FDC_500KBPS,2,"1.2MB" }, { 9,2,0xff,0xdf,0x23,0x50,40,720,2,FDC_300KBPS,2,"360KB/AT"}, { 9,2,0xff,0xdf,0x2a,0x50,40,720,1,FDC_250KBPS,2,"360KB/PC"}, { 9,2,0xff,0xdf,0x2a,0x50,80,1440,1,FDC_250KBPS,2,"720KB" }, { 9,2,0xff,0xdf,0x23,0x50,80,1440,1,FDC_300KBPS,2,"720KB/x" }, { 9,2,0xff,0xdf,0x2a,0x50,40,720,2,FDC_250KBPS,2,"360KB/x" }, }; -- Scott Telford, Edinburgh Parallel Computing Centre, <s.telford@ed.ac.uk> University of Edinburgh, Mayfield Rd, Edinburgh, EH9 3JZ, UK.(+44 131 650 5978) "Is it a virus, a drug, or a religion?" "What's the difference?" (Snow Crash)