hdparm

get/set SATA/IDE device parameters

copy
1
0
hdparm --fallocate 10 temp_file

source | details |

copy
0
0
hdparm --trim-sector-ranges 1000:4 7894:16 /dev/sdz

source | details |