From owner-freebsd-questions Tue Feb 19 11: 4:46 2002 Delivered-To: freebsd-questions@freebsd.org Received: from no-spam.it.helsinki.fi (NO-SPAM.it.helsinki.fi [128.214.205.34]) by hub.freebsd.org (Postfix) with ESMTP id F2F6E37B405 for ; Tue, 19 Feb 2002 11:04:39 -0800 (PST) Received: from mursu.pesa.fi (root@sirppi.helsinki.fi [128.214.205.27]) by no-spam.it.helsinki.fi (8.11.4/8.11.4-SPAMmers-sod-off) with ESMTP id g1JJ4b418374 for ; Tue, 19 Feb 2002 21:04:37 +0200 (EET) Received: (from poku@localhost) by mursu.pesa.fi (8.11.6/8.11.1) id g1JFOK701038; Tue, 19 Feb 2002 17:24:20 +0200 (EET) (envelope-from poku@mursu.pesa.fi) To: questions@FreeBSD.ORG Subject: fdisk and DOS floppies From: Jussi Reissell Date: 19 Feb 2002 17:24:20 +0200 In-Reply-To: "Mike Meyer"'s message of "Mon, 18 Feb 2002 15:49:50 -0600" Message-ID: <87zo25mr4r.fsf_-_@mursu.pesa.fi> Lines: 40 User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Umm, I don't have a clear picture of how fdisk used to behave with DOS floppies. I do seem to remember that I got proper partition table info with it. Not sure about it, though. On a 4.5-STABLE system, if I do a 'fdisk fd0' with a DOS formatted floppy stuffed in, I get: fdisk: can't get disk parameters on /dev/fd0; supplying dummy ones ******* Working on device /dev/fd0 ******* parameters extracted from in-core disklabel are: cylinders=1 heads=1 sectors/track=1 (1 blks/cyl) parameters to be used for BIOS calculations are: cylinders=1 heads=1 sectors/track=1 (1 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 [ bogus partition table deleted ] If I have a floppy with a ufs fs, I get a good partition table: ******* Working on device /dev/fd0 ******* parameters extracted from in-core disklabel are: cylinders=80 heads=2 sectors/track=18 (36 blks/cyl) parameters to be used for BIOS calculations are: cylinders=80 heads=2 sectors/track=18 (36 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 [ a proper partition table deleted ] Looks like the geometry numbers are screwed in the first example. I'd like to be able to get at the partition tables with DOS disks also. (Or possibly some other snappy way of distinguishing unmounted DOS disks from unmounted ufs floppies) -- muuu. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message