# Linux – Is there a way to restart badblocks

linux

I have a 1TB drive that I'd like to run badblocks on, but as I understand it would take about 3 days, I'd like to run it in chunks ( say overnight each night ) so the computer it's in is available for use during the day. Is something like that possible?

#### Best Answer

• There is a way to specify from which block badblocks should start and the last block, (see man badblocks):

badblocks [ -svwnfBX ] [ -b block-size ] [ -c blocks_at_once ] [ -e max_bad_blocks ] [ -d read_delay_factor ] [ -i input_file ] [ -o output_file ] [ -p num_passes ] [ -t test_pattern ] device [ last-block ] [ first-block ]