Hi All,
I am testing on acquisition time taken for hard disks with bad sectors.
Thus, I am using Linux's hdparm command to create bad sectors on disks for testing.
The full command I used, for example
hdparm –make-bad-sector 40000 –yes-i-know-what-i-am-doing /dev/sdb
40000 is the sector number.
When I tested this on a SATA disk, I could create bad sectors successfully for testing (I verified that there is indeed bad sector by using Guymager software for acquisition).
But when I tried the command on a SAS (Serial Attached SCSI) disk, it shows that the command has been executed successfully but subsequently when I used Guymager it shows that there is no bad sectors!!
Anyone have encountered this before? How do I create bad sectors on SAS disks?
Regards
2 things
Prefix your sector number with a 'f' and this will flag the sector as bad rather than actually trying to wreck a sector.
Secondly, the –make-bad-sector makes use of a SATA command, which has to be of a certain version. I'm not sure if the SAS protocol is the same in that respect. Even if it is, you will need to make sure that the protocol version supports this command. I think for SATA disks it was pretty much all disks manufactured after 2010.
If you really just want to create some bad sectors on there, the easy way is to just open the top cover, scratch your head a bit over the drive (to get some dander in there) and then close it back up. That'll give you some bad sectors. lol