From owner-freebsd-questions@FreeBSD.ORG Mon Jul 23 04:02:13 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A06611065673 for ; Mon, 23 Jul 2012 04:02:13 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (mx-out.r-bonomi.com [204.87.227.120]) by mx1.freebsd.org (Postfix) with ESMTP id 5C6468FC12 for ; Mon, 23 Jul 2012 04:02:13 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.4/rdb1) id q6N43iBQ029276 for freebsd-questions@freebsd.org; Sun, 22 Jul 2012 23:03:44 -0500 (CDT) Date: Sun, 22 Jul 2012 23:03:44 -0500 (CDT) From: Robert Bonomi Message-Id: <201207230403.q6N43iBQ029276@mail.r-bonomi.com> To: freebsd-questions@freebsd.org In-Reply-To: <500d2320.f8bzaFvCSay0b7rK%perryh@pluto.rain.com> Subject: Re: fsck on FAT32 filesystem? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jul 2012 04:02:13 -0000 > From perryh@pluto.rain.com Sun Jul 22 22:15:48 2012 > Date: Mon, 23 Jul 2012 03:10:40 -0700 > From: perryh@pluto.rain.com > To: bonomi@mail.r-bonomi.com > Cc: freebsd-questions@freebsd.org > Subject: Re: fsck on FAT32 filesystem? > > Robert Bonomi wrote: > > > MSDOS/PCDOS had -no- O/S functions to directly access actual disk > > devices. The ONLY fuctionality provided to the user, by the "O/S" > > was filesystem based access. To get 'raw' device access, one had > > to bypass the O/S entirely, and use direct BIOS calls (INT 13h). > > FALSE TO FACT. > > MSDOS/PCDOS had no _documented_ functions to directly access the > disks, bypassing the file system, but the functions _did_ exist. I'm sure you can provide the DOS 'function number' for those calls, and cites to published data confirming. > The debugger's "read sector" and "write sector" commands used them, > and I suspect chkdsk, scandisk, and format probably also used them > although I never had occasion to verify one way or the other. My experince in porting MSDOS 3.1 to a non pc-clone architecture was that fdisk, format, chkdsk, debug, and sys all invoked INT 13H directly.