POV-Ray : Newsgroups : povray.off-topic : A simple matter Server Time
5 Nov 2024 10:22:21 EST (-0500)
  A simple matter (Message 1 to 10 of 10)  
From: Invisible
Subject: A simple matter
Date: 13 Jan 2009 11:18:05
Message: <496cbebd$1@news.povray.org>
Does anybody know of a way to make the Unix "dd" tool *not* abort if the 
output device has bad blocks? (That's *output*, not input.) I'm trying 
to erase a harddrive, but it appears to be defective. dd keeps giving up 
as soon as it reaches the first bad block.


Post a reply to this message

From: Darren New
Subject: Re: A simple matter
Date: 13 Jan 2009 12:11:35
Message: <496ccb47$1@news.povray.org>
Invisible wrote:
> Does anybody know of a way to make the Unix "dd" tool *not* abort if the 
> output device has bad blocks? (That's *output*, not input.) I'm trying 
> to erase a harddrive, but it appears to be defective. dd keeps giving up 
> as soon as it reaches the first bad block.

I'd be happy if it didn't hang when you tried to seek past the last block of 
the disk and write. :-)

-- 
   Darren New, San Diego CA, USA (PST)
   Why is there a chainsaw in DOOM?
   There aren't any trees on Mars.


Post a reply to this message

From: Kyle
Subject: Re: A simple matter
Date: 13 Jan 2009 14:47:32
Message: <496cefd4$1@news.povray.org>
Invisible wrote:
> Does anybody know of a way to make the Unix "dd" tool *not* abort if the 
> output device has bad blocks? (That's *output*, not input.) I'm trying 
> to erase a harddrive, but it appears to be defective. dd keeps giving up 
> as soon as it reaches the first bad block.

Doesn't answer your specific question, but perhaps dban would be a 
better alternative?  Granted, I don't know if it would perhaps gag on 
bad blocks as well.


Post a reply to this message

From: Jim Henderson
Subject: Re: A simple matter
Date: 13 Jan 2009 17:02:09
Message: <496d0f61$1@news.povray.org>
On Tue, 13 Jan 2009 16:18:02 +0000, Invisible wrote:

> Does anybody know of a way to make the Unix "dd" tool *not* abort if the
> output device has bad blocks? (That's *output*, not input.) I'm trying
> to erase a harddrive, but it appears to be defective. dd keeps giving up
> as soon as it reaches the first bad block.

The man page suggests "noerror" might be the option you're looking for....

Jim


Post a reply to this message

From: Invisible
Subject: Re: A simple matter
Date: 14 Jan 2009 04:35:11
Message: <496db1cf$1@news.povray.org>
Jim Henderson wrote:

> The man page suggests "noerror" might be the option you're looking for....

That makes it ignore *read* errors, but not *write* errors.

With enough Googling, I found lots of people complaining about this, but 
no fixes for it.

However, I discovered a program called dd_rescue which ignores write 
errors by default. So that solves me problem...


Post a reply to this message

From: Darren New
Subject: Re: A simple matter
Date: 14 Jan 2009 12:53:27
Message: <496e2697$1@news.povray.org>
Invisible wrote:
> With enough Googling, I found lots of people complaining about this, but 
> no fixes for it.

I think the fix is to write your own DD program. If you're just zeroing a 
disk, it's probably about 10 lines of code.

-- 
   Darren New, San Diego CA, USA (PST)
   Why is there a chainsaw in DOOM?
   There aren't any trees on Mars.


Post a reply to this message

From: Eero Ahonen
Subject: Re: A simple matter
Date: 14 Jan 2009 13:12:41
Message: <496e2b19$1@news.povray.org>
Invisible wrote:
> Does anybody know of a way to make the Unix "dd" tool *not* abort if the
> output device has bad blocks? (That's *output*, not input.) I'm trying
> to erase a harddrive, but it appears to be defective. dd keeps giving up
> as soon as it reaches the first bad block.

Dunno if they help in that direction, but have you tried ddrescue or
dd_rescue?

-Aero


Post a reply to this message

From: Orchid XP v8
Subject: Re: A simple matter
Date: 14 Jan 2009 15:25:08
Message: <496e4a24$1@news.povray.org>
Eero Ahonen wrote:

> Dunno if they help in that direction, but have you tried ddrescue or
> dd_rescue?

dd_rescue did what I wanted.

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Jim Henderson
Subject: Re: A simple matter
Date: 14 Jan 2009 15:38:32
Message: <496e4d48$1@news.povray.org>
On Wed, 14 Jan 2009 09:35:11 +0000, Invisible wrote:

> Jim Henderson wrote:
> 
>> The man page suggests "noerror" might be the option you're looking
>> for....
> 
> That makes it ignore *read* errors, but not *write* errors.
> 
> With enough Googling, I found lots of people complaining about this, but
> no fixes for it.
> 
> However, I discovered a program called dd_rescue which ignores write
> errors by default. So that solves me problem...

Ah, that would explain the difference - I had used that for imaging a 
dead hard drive, but it would've been read errors.

But it seems you found your answer. :-)

Jim


Post a reply to this message

From: Eero Ahonen
Subject: Re: A simple matter
Date: 14 Jan 2009 16:03:34
Message: <496e5326@news.povray.org>
Orchid XP v8 wrote:
> Eero Ahonen wrote:
> 
>> Dunno if they help in that direction, but have you tried ddrescue or
>> dd_rescue?
> 
> dd_rescue did what I wanted.
> 

I just realized you had written that earlier. But hey, 1) problem
solved, 2) you did yourself (I assume). :)

-Aero


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.