Skip to content

The Geek Worker

Random Computer Issues And Things That Fixed Them For Me

  • About this Website
  • Helpful Links

scrub: -X argument cannot exist

June 4, 2014 by geekworker

I’ve been looking for a utility that will clean disks for me – and I do realize this is no real substitute for shredding them. Anyway, scrub seems to do the job. However, when I tried to run it I got:

scrub: -X argument cannot exist

This had me stumped because I read it as “the -X argument cannot exist”, which seemed to make no sense whatsoever. And indeed it means “the argument to -X cannot be a directory that exists”. Simply running it with a new directory, like so:

root@server:/home# scrub -X /home/scrub
scrub: using NNSA NAP-14.x patterns
scrub: scrubbing /home/scrub/scrub.000 1073741824 bytes (~1GB)
scrub: random |..^C |

works.

It is notable that more current versions of scrub fix the error message to be more intuitive (mine was still 2.2).

Posted in ArticleTagged Linux, scrub
Previous story Adding Blog as a Menu Item in WordPress Next story Can I safely send a Certificate Request (CSR) by Email?

3 Comments

  1. Nils says:
    August 2, 2017 at 10:41 pm

    Welcome. And glad it helped – that's the entire purpose of this site; feeding solutions to my own problems back into Google so that others might benefit!

    Reply
  2. Masen says:
    August 2, 2017 at 10:41 pm

    It seems so obvious once you understand, but I had to google it. Thankfully, your site was 1 of 3, so i wasn't looking too long.

    Cheers mate.

    Reply
  3. FLy in the BSy says:
    August 2, 2017 at 10:41 pm

    Simply check if the -X already exist.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • Inkscape: “Document Properties” Window Not Showing Up
  • Synology Drive Client does not connect on Apple MacOS
  • “The iTunes Store is temporarily unavailable. Please try again later” when trying to subscribe to Podcast
  • “Access Denied” Errors with TortoiseSVN on Samba
  • Keyboard and Mouse Microstutters with a Dell Latitude Notebook

Recent Comments

  1. Bart on Gigabyte OSD_Sidekick: “Please check if your USB cable is connected”
  2. Jason on Sony Vegas and Sony Movie Studio: No Audio Tracks In mp4 video filefound
  3. DaReclama on OpenVPN: IP packet with unknown IP version seen
  4. vilva on Excel Formula to get Number of Days in a Month
  5. Michael (Micky) Avidan on Excel Formula to get Number of Days in a Month

© 2026 The Geek Worker. Proudly powered by WordPress.