From owner-freebsd-hackers Thu Jan 10 13:29: 2 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from jhs.muc.de (jhs.muc.de [193.149.49.84]) by hub.freebsd.org (Postfix) with ESMTP id 0750437B41A; Thu, 10 Jan 2002 13:28:53 -0800 (PST) Received: from park.jhs.private (localhost [127.0.0.1]) by jhs.muc.de (8.11.0/8.11.0) with ESMTP id g0ALQeA55983; Thu, 10 Jan 2002 21:26:40 GMT (envelope-from jhs@park.jhs.private) Message-Id: <200201102126.g0ALQeA55983@jhs.muc.de> To: Terry Lambert Cc: Nils Holland , freebsd-hackers@freebsd.org, joerg@freebsd.org Subject: Re: FreeBSD Floppy driver needs enhancement... In-Reply-To: Message from Terry Lambert of "Tue, 08 Jan 2002 17:32:38 PST." <3C3B9DB6.36D9697E@mindspring.com> Date: Thu, 10 Jan 2002 22:26:40 +0100 From: Julian Stacey 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 wrote: > 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 & vali > d.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. Would be nice, Joerg W. (cc'd) looked in that direction somewhat I recall, I can't remember how far he got, I do recall some patches I didnt get to try, can't remember quite what for, Joerg, can you recall ? Anyway, if anyone does offer such a read(), I'll add it to valid(). It'd be good PR to have FreeBSD able to rescue floppies, the word would go round inside companies, & occasional colleagues would happily be told for a few minutes just how nice BSD is, while they listened to the drive progressing rescuing their data, (& making more noise & screen output on dodgy sectors). > 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... > > -- Terry > Julian J.Stacey Munich Unix (FreeBSD, Linux etc) Independent Consultant Reduce costs to secure jobs: Use free software: http://bim.bsn.com/~jhs/free/ Ihr Rauchen = mein allergischer Kopfschmerz ! Schnupftabak probieren ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message