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
  • 93,103
  • 40
  • 240
  • 233
Sergio
  • 21

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
  • 93,103
  • 40
  • 240
  • 233
Celada
  • 44,132