1

I accidentally ran badblocks on my entire 320 GB disk instead of a single partition:

sudo badblocks -s -v -n -f /dev/sda

It's been running for 42 hours now. How can I tell when it will be finished? Can I interrupt it safely with Ctrl+C?

Michael Mrozek
  • 91,316
  • 38
  • 238
  • 232
Sergio
  • 21
  • 2

1 Answers1

1

How can I tell when it will be finished?

You are using the -v (verbose) flag to badblocks. It should be constantly showing you:

xx.xx% done, xx:xx elapsed.

, from which you can easily estimate when it will finish.

Can I interrupt it safely with Ctrl+C?

Yes.

Michael Mrozek
  • 91,316
  • 38
  • 238
  • 232
Celada
  • 43,173
  • 5
  • 96
  • 105