Commande sdparm - Arch30n/blog GitHub Wiki

Gestion du SMART BMS (Background Media Scans)

Sous Linux:

# view the current values for the background media settings
sdparm /dev/sdb -p bc

# enable Background Media scans - set to 0 to disable
sdparm /dev/sdb -p bc -s EN_BMS=1

# number of hours between media scans - here, run a scan every 24 hours
sdparm /dev/sdb -p bc -s BMS_I=24

# how many milliseconds the drive must be idle before a scan can begin
# here, the drive must be idle for two second at time of scan start,
# or else the scan will wait until the drive is idle for 2000ms.
# the same applies if scan is interrupted for user activity - scan resumes when
# this period of time has elapsed with no activity.
sdparm /dev/sdb -p bc -s MIN_IDLE=2000

# how many milliseconds the drive is permitted to take to return to regular service
# if a command is received during a background media scan - here, the drive must
# stop the BMS within 500ms of receiving a read/write command from the host
sdparm /dev/sdb -p bc -s MAX_SUSP=500