October 3rd, 2010, 19:27
--read-sector
Reads from the specified sector number, and dumps the contents in hex to standard output. The sector number must be given (base10) after this flag. hdparm will issue a low-level read (completely bypassing the usual block layer read/write mechanisms) for the specified sector. This can be used to definitively check whether a given sector is bad (media error) or not (doing so through the usual mechanisms can sometimes give false positives).
--make-bad-sector
Deliberately create a bad sector (aka. "media error") on the disk. EXCEPTIONALLY DANGEROUS. DO NOT USE THIS FLAG!! This can be useful for testing of device/RAID error recovery mechanisms. The sector number is given as a (base10) parameter after the flag. Depending on the device, hdparm will choose one of two possible ATA commands for corrupting the sector. The WRITE_LONG works on most drives, but only up to the 28-bit sector boundary. Some very recent drives (2008) may support the new WRITE_UNCORRECTABLE_EXT command, which works for any LBA48 sector. If available, hdparm will use that in preference to WRITE_LONG. The WRITE_UNCORRECTABLE_EXT command itself presents a choice of how the new bad sector should behave. By default, it will look like any other bad sector, and the drive may take some time to retry and fail on subsequent READs of the sector. However, if a single letter f is prepended immediately in front of the first digit of the sector number parameter, then hdparm will issue a "flagged" WRITE_UNCORRECTABLE_EXT, which causes the drive to merely flag the sector as bad (rather than genuinely corrupt it), and subsequent READs of the sector will fail immediately (rather than after several retries). Note also that the --repair-sector flag can be used to restore (any) bad sectors when they are no longer needed, including sectors that were genuinely bad (the drive will likely remap those to a fresh area on the media).
October 3rd, 2010, 19:34
October 4th, 2010, 14:51
drc wrote:That's not how it works. You don't add things to the G-List yourself. Defect handling occurs in a manner that is transparent to the user, so when a sector is remapped all you know is that a sector is remapped (by noting increase in SMART values, for example).
Once it has been remapped you don't get access to the original one anymore.
October 4th, 2010, 15:02
October 4th, 2010, 15:15
drc wrote:True, you can obtain access to original sectors by clearing or editing the G-List, but this is outside the domain of user actions.
October 4th, 2010, 15:22
linux-hdd wrote:drc,
I am not familiar with the meaning of "UNC error" and "ECC data". These concepts are new to me and I need to understand them before being able to make sense of your post, could you please give a brief explanation?
It seems that somehow I took for granted that hdparm was able to interact with the HD at a much deeper level than it truly does.
Yes. Tools such as PC-3000 interact with the drives at a vendor-specific command level (i.e. outside of the ATA specification, which is what I was referring to as the normal domain of user actions)linux-hdd wrote:And how can a user go about broadening his domain of actions to the extent of being able to edit the G-List? PC-3000?
October 30th, 2013, 12:18
drc wrote:In no cases are sectors removed from G-List.
In any event this is handled by drive firmware, not the user.
CHKDSK /R Locates bad sectors and recovers readable information
October 30th, 2013, 20:50
In theory, if FBI thinks you have some sensitive data on your disk and that the data can incriminate you (if you use Dropbox, Skype or many other client-server programs then they probably can see everything you have on your disks), it can ask Microsoft to mark the sectors where those files are located as bad sectors (adding them to the G-List) so you can't delete the files.
Do you think such things are practiced already?
Thanks
Powered by phpBB © phpBB Group.