Mailinglist Archive: opensuse-factory (279 mails)

< Previous Next >
Re: [opensuse-factory] cloning a hard drive with YaST
  • From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
  • Date: Wed, 11 Mar 2009 12:53:59 +0100 (CET)
  • Message-id: <alpine.LSU.2.00.0903111250570.9084@xxxxxxxxxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkm3plsACgkQtTMYHG2NR9WHMACffQOdIPkCPylGrp1vRXQ5lyLx
cUgAniBh9LzQR6qrvv5/3oDwvbz9auzi
=Mpi2
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups