kernel panic(?) trying to copy data off failed drive with dd

Christopher Sean Hilton chris at vindaloo.com
Wed Jun 14 13:18:44 UTC 2006


On Mon, Jun 12, 2006 at 09:37:25PM +1000, Greg Lane wrote:
> On Mon, Jun 12, 2006 at 11:16:28AM +0200, Miroslav Lachman <000.fbsd at quip.cz> wrote:
> > >Advice please?!?
> > 
> > Maybe you can try /usr/ports/sysutils/cpdup which can skip read errors. 
> > I used cpdup few years ago on HDD with bad sectors with success - lose 
> > only few unreadable files from the middle of disk.
> 
> I am installing that right now and will give it a try in the morning 
> when I am sitting next to it. I want to keep the machine alive 
> overnight while I copy some other stuff over the network to another 
> machine, since I may take this opportunity (replacing the disk) to upgrade 
> to 6-stable.
> 

The problem here is that if the drive wedges the controller then the
kernel really cannot do anything about it. Your drive is SATA so I'm
not sure if hardware exists that can help you but were it normal ATA I
would put it in an external USB or firewire enclosure and try the dd
from there. That way if the controller gets wedged during the read
process it's the USB controller and you weren't depending on it for
access to your root filesystem, swap space, etc.

-- Chris

-- 
Chris Hilton                                   chris-at-vindaloo-dot-com
------------------------------------------------------------------------
                "All I was doing was trying to get home from work!"
                                                 -- Rosa Parks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 479 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060614/6ef3cb54/attachment.pgp


More information about the freebsd-stable mailing list