On Tue, 13 Jul 1999, Luigi Rizzo wrote:
> Hi, i have a question.
>
> Why 'dd' does not seek over 'char' devs (specifically raw disk partitions).
Not all character devices support seeking. So, we work with the LCD...
Sorry, I don't like this either. It would be better, maybe, just to fix
character devices.
>
> My point is, when a disk develops problems, sometimes it is possible
> to recover nearby sectors e.g. using dd, and seeking to the right
> block. However running dd over the char device (rwd*) takes forever
> because the seek on char devices is implemented by reading instead.
> Using the cooked device is problematic because the buffering causes
> multiple sectors to be read and this may cause errors if some block
> nearby has problems.
You certainly make a good case. modify your local copy of dd to do
what you want.
>
> I notice that on output lseek _is_ used also on char devices.
And how else would you do it?
>
> Ideas ?
>
> cheers
> luigi
>
>
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message
>
Brian Fundakowski Feldman _ __ ___ ____ ___ ___ ___
[EMAIL PROTECTED] _ __ ___ | _ ) __| \
FreeBSD: The Power to Serve! _ __ | _ \._ \ |) |
http://www.FreeBSD.org/ _ |___/___/___/
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message