From owner-freebsd-hackers Wed Jan 9 13:14:12 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx.wgate.com (mail.wgate.com [66.150.46.4]) by hub.freebsd.org (Postfix) with SMTP id BB82737B404 for ; Wed, 9 Jan 2002 13:14:03 -0800 (PST) To: hackers@FreeBSD.ORG Received: From MAIL.TVOL.NET (10.1.1.4[10.1.1.4 port:1506]) by mx.wgate.comMail essentials (server 2.429) with SMTP id: <5582@mx.wgate.com>transfer for ; Wed, 9 Jan 2002 4:09:15 PM -0500 ;transfer smtpmailfrom X-MESINK_Inbound: 0 X-MESINK_MailForType: SMTP X-MESINK_SenderType: SMTP X-MESINK_Sender: rjesup@wgate.com X-MESINK_MailFor: hackers@FreeBSD.ORG Received: from jesup.eng.tvol.net ([10.32.2.26]) by mail.tvol.net with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13)id C2H3VJQX; Wed, 9 Jan 2002 16:11:15 -0500 Reply-To: Randell Jesup Subject: Re: FreeBSD Floppy driver needs enhancement... From: Randell Jesup Date: 09 Jan 2002 16:12:49 -0500 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Content-Type: text/plain; charset=us-ascii x-receiver: hackers@FreeBSD.ORG x-sender: rjesup@wgate.com Content-Transfer-Encoding: Quoted-Printable MIME-Version: 1.0 Message-ID: <7dcbb25c031dc107d2@[192.168.1.4]> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Terry Lambert writes: >Julian Stacey wrote: >> Doubtless some will have bad sectors by now. Here's a rescue tool: >> http://bim.bsn.com/~jhs/src/bsd/jhs/bin/public/valid/valid.c & v= alid.1 >> >> `Valid' runs on FreeBSD, but only rescues when running on MSDOS ! >> (because read() on DOS3.2 returns the intact buffer even if the >> CRC fails, so I can then average each bit of each byte in each >> sector for all reads). `Valid' works at sector level, no knowledge >> of file systems, so it can rescue/ manipulate BSD FS sectors on >> floppy, tar images, DOS or Minix file systems etc. > >Sounds like the FreeBSD floppy driver needs to be modified to >return the full buffer, even if there is a CRC error. > >This implies a descriptor being passed, so that the CRC and >the data are seperate. > >You could probably just wadd an ioctl that expected the >descriptor to be at the front of a data buffer, so that >you passed the address of the descriptor + buffer, after >the ioctl(). > >This seems a useful feature... Yes (if anyone still cares about floppies). The old Amiga trackdisk (floppy driver) could do that, since all the decoding was in software (and via the graphics bitblitter(!)). Do the integrated disk controllers in PC's (still) allow direct raw bit access, or only after MFM decoding? Also, I seem to remember PC's can't recover from bad sector ID's= . If I remember correctly, you can read uncorrected sectors off of ATA (maybe) and SCSI (I think), at least using CAM. Quite honestly, I can see some use for this in HD's; I don't see much use for it in floppies, except maybe for HD-less servers like gnat box= es. -- Randell Jesup, Worldgate Communications, ex-Scala, ex-Amiga OS team rjesup@wgate.com "They that can give up essential liberty to obtain a little temporary safet= y deserve neither liberty nor safety." -Benjamin Franklin, Historical Review of Pennsylvania, 1759. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message