:: Re: [DNG] Can this drive be saved?
Página Inicial
Delete this message
Reply to this message
Autor: golinux
Data:  
Para: Bruce Perens
CC: dng
Assunto: Re: [DNG] Can this drive be saved?
I was wondering if a reformat might be possible but if it requires the
nuclear option so be it. LOL! I've only had to dd a handful of times so
searched and found this command to zero a drive. Will that get the job
done? Any idea how long that might take on a 1 TB drive? There is
cost|benefit|aggravation to consider . . .

dd if=/dev/zero bs=1M of=/dev/sda

In any case, I'll wait till the dock arrives for further testing to make
that decision.

Thanks again. Nice to see that you're still hanging around the campfire
. . . :)

On 2020-08-29 19:52, Bruce Perens wrote:
> If you just want to reuse the physical drive, without the data, there
> is a
> way to do that. Write zeros the entire length of the block device. If
> there
> are enough spare sectors left on the disk, the bad ones will be
> relocated
> as you write them. The various disk tools will then tell you what the
> overall health of the drive is.
>
> On Sat, Aug 29, 2020, 4:12 PM <golinux@???> wrote:
>
>> On 2020-08-29 17:15, Bruce Perens via Dng wrote:
>> > Copy the block partition (not the mounted files) to a same size or
>> > larger
>> > blank block partition using ddrescue or gddrescue. Try to mount that
>> > read
>> > only and copy the files off. If it doesn't work, try to restore the
>> > superblock using one of the tutorials online.
>> >
>>
>> Thanks Bruce . . .
>>
>> Unfortunately, I don't have spare 1 TB drives laying around. Since
>> that
>> drive is an exact copy of another still working drive, no critical
>> data
>> has been lost so no need to copy files.
>>
>> I'm guessing that this failure is beyond fsck . . .
>>
>> golinux
>> _______________________________________________
>> Dng mailing list
>> Dng@???
>> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>>