I am testing secure-erase-enhanced in hdparm. I want to examine the spare sectors to check that there is no sensitive information remaining. How can I access the remapped sectors to read their contents?
The physical sectors on the HDD gets remapped if there is non-recoverable ECC error.
There is no need to examine the unused spare sectors, since they will be empty and the ones which are used are mapped instead of the original sector.
The original sector is not available to the OS (the remapping is transparent to the OS) so you won't be able to write to it or read from it. You could try to do low level formatting, but that still doesn't guarantee that you will be able to access the corrupted sector to overwrite them. Also low level formatting might not be available for your HDD model.
If you want to make sure that nobody will be able to read any information from the corrupted sectors you would have to physically damage the platter in that place.
In most cases that's an overkill for the following reasons:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.