Mailinglist Archive: opensuse-factory (279 mails)

< Previous Next >
Re: [opensuse-factory] cloning a hard drive with YaST
  • From: Sid Boyce <sboyce@xxxxxxxxxxxxxxxx>
  • Date: Wed, 11 Mar 2009 15:59:25 +0000
  • Message-id: <49B7DFDD.5040508@xxxxxxxxxxxxxxxx>
Carlos E. R. wrote:


On Tuesday, 2009-03-10 at 10:03 -0400, Greg Freemyer wrote:

...

If you're really curious, hdparm can create and recover bad blocks on
your media. (I think it needs a IDE/SATA hdd to work).

see hdparm --make-bad-sector and --repair-sector

Interesting...

When it creates them it uses a ATA diagnostic write to cause the per
sector crc to be bad, then on read you get a media error.

(ie on disk sectors are bigger than 512 bytes. Part of the overhead
is a crc used to verify the media has not failed.)

Not sure how it does the fix side, but you are not supposed to
permanently loose the sector, thus it is more or less safe to test
with.

I would use a drive that does not have critical data. And I assume
hdparm will be counting sectors from the beginning of the drive, not
the partition.

I'm interested, but not so much as to try with a disk that is in actual
use >:-)

I'll save this for possible future reference.

-- Cheers,
Carlos E. R.

The manpage says DANGEROUS, so this is something to try when I'm
absolutely sure I have everything on the new hard drive though I have
vital stuff backed up to 3 other boxes.
Regards
Sid.
--
Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support
Specialist, Cricket Coach
Microsoft Windows Free Zone - Linux used for all Computing Tasks

--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >