Make bad sector on ...
 
Notifications
Clear all

Make bad sector on SAS Disks

3 Posts
3 Users
0 Likes
1,639 Views
(@billa316)
Posts: 5
Active Member
Topic starter
 

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

 
Posted : 21/11/2017 9:39 am
minime2k9
(@minime2k9)
Posts: 481
Honorable Member
 

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.

 
Posted : 21/11/2017 10:11 am
JaredDM
(@jareddm)
Posts: 118
Estimable Member
 

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

 
Posted : 21/11/2017 7:17 pm
Share: