Re: hardware recovery and RAID5 services

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 29 Jan 2022, Wols Lists told this:

> I believe there is also a way of injecting a hardware error onto a
> drive. Unless you can take a backup of the backup :-) I wouldn't
> recommend it at the moment, but there's some ATA command or whatever
> that tells the drive to flag a sector as bad, and return a read error
> until it's over-written.

See hdparm --make-bad-sector. The manpage says "EXCEPTIONALLY DANGEROUS.
DO NOT USE THIS OPTION!!". It is not lying. :)

(This is also --write-sector, which is merely VERY DANGEROUS, but can be
used to force rewrites of bad sectors. Make sure you get the sector
number right! Needless to say, if you don't, it's too late, and there's
no real way to test in advance...)



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux