Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: HOWTO: Securly Clear Free Hard Drive Space with Scrub

  1. #1
    Join Date
    Jun 2005
    Location
    Albuquerque, New Mexico
    Beans
    272
    Distro
    Ubuntu Development Release

    HOWTO: Securly Clear Free Hard Drive Space with Scrub

    This how to covers the use of SCRUB, developed by Jim Garlick, to securly clear free hard drive space. Scrub uses user-selectable pattern algorithms that are compliant with DoD 5520.22-M or NNSA NAP-14.x.

    ----------------------------------------------------------------------------

    Step 1: Install Alien.

    Code:
    sudo apt-get install alien
    Step 2: Download Scrub.

    Step 3: Convert RPM file to DEP.

    Code:
    sudo alien scrub_1.8-2_i386.rpm
    Step 4: Install scrub

    Code:
    sudo dpkg -i scrub_1.8-2_i386.deb
    Step 5: Create a scratch directory for scrub.

    Code:
    sudo mkdir /scratch
    Step 6: Run Scrub (as root).

    Code:
    scrub -X /scratch/junk | sudo rm -f  /scratch/junk

    Updated
    : Updated download location.
    Last edited by GrammatonCleric; August 1st, 2008 at 03:32 PM.
    "Nice jail. Looks strong."
    - H. Houdini

  2. #2
    Join Date
    Oct 2005
    Location
    Fribourg,Switzerland
    Beans
    1,755
    Distro
    Ubuntu Gnome 14.04 Trusty Tahr

    Re: HOWTO: Securly Clear Free Hard Drive Space with Scrub

    Well it sure works but something got me very worried!
    /dev/hda2 10080520 9952800 0 100% /
    I had to Ctrl + C to stop it because I have a 5.3 GB 'junk' file!!
    I misunderstood you, I guess. I thought it would free up space (as in unnecessary files) not the whole drive.
    Anyone has an idea as to what I'm supposed to do to revert back? Thnx in advance.

    PS: My backup is for Dapper; just upgraded this here machine to Edgy and, therefore I have no Edgy backup to restore.
    Last edited by xyz; March 5th, 2007 at 10:48 AM.
    my JAMENDO * The XY sex-determination system is the sex-determination system found in humans and Z was my donor! * Tarot and Poya Sutra | * # 12755

  3. #3
    Join Date
    Jun 2005
    Location
    Albuquerque, New Mexico
    Beans
    272
    Distro
    Ubuntu Development Release

    Re: HOWTO: Securly Clear Free Hard Drive Space with Scrub

    Scrub is not use to free up hard drive space. It's used to "securely wipe" free hard drive space. Say you have a bunch of sensitive data (i.e. patient files, financial data, deleted audio files before you send your hard drive to the RIAA =P, etc.) you may have deleted from your drive but you want to make sure the data is unrecoverable. Just because you delete a file does not mean it is unrecoverable.

    How to recover deleted files:

    Scrub will fill a partition gradually expanding and filling a single file with random data thus over witting any deleted files in that partition. If you read setup 7 you can simply delete the scrub junk file. =)

    -GC
    Last edited by GrammatonCleric; March 5th, 2007 at 01:01 PM.
    "Nice jail. Looks strong."
    - H. Houdini

  4. #4
    Join Date
    Oct 2005
    Location
    Fribourg,Switzerland
    Beans
    1,755
    Distro
    Ubuntu Gnome 14.04 Trusty Tahr

    Re: HOWTO: Securly Clear Free Hard Drive Space with Scrub

    Yes indeed...I misunderstood you!
    If you care to have a look:
    I 'scrubbed my Ubuntu...'
    I explain what I did there.

    For some reason I don't understand it doesn't look like I lost data??
    Thanks for your reply.
    my JAMENDO * The XY sex-determination system is the sex-determination system found in humans and Z was my donor! * Tarot and Poya Sutra | * # 12755

  5. #5
    Join Date
    Oct 2005
    Beans
    80

    Re: HOWTO: Securly Clear Free Hard Drive Space with Scrub

    Does this clear Free Hard Drive Space on /Home partition?

  6. #6
    Join Date
    Jun 2005
    Location
    Albuquerque, New Mexico
    Beans
    272
    Distro
    Ubuntu Development Release

    Re: HOWTO: Securly Clear Free Hard Drive Space with Scrub

    Quote Originally Posted by bluebyt View Post
    Does this clear Free Hard Drive Space on /Home partition?
    It will "Scrub" whatever partition you output the junk file to. If your /home is in the same partition as your "/" then yes. If you have your /home mounted to it's own partition then you could run scrub like.

    Code:
    sudo scrub -X /home/junk
    DON'T FORGET TO DELETE THE JUNK FILE WHEN SCRUB IS DONE.

    -GC
    "Nice jail. Looks strong."
    - H. Houdini

  7. #7
    Join Date
    Oct 2005
    Beans
    80

    Re: HOWTO: Securly Clear Free Hard Drive Space with Scrub

    Quote Originally Posted by GrammatonCleric View Post
    It will "Scrub" whatever partition you output the junk file to. If your /home is in the same partition as your "/" then yes. If you have your /home mounted to it's own partition then you could run scrub like.

    Code:
    sudo scrub -X /home/junk
    DON'T FORGET TO DELETE THE JUNK FILE WHEN SCRUB IS DONE.

    -GC
    I tried this "sudo scrub -X /home/junk" but I get this error:

    scrub: scrub.c:204: scrub_free: Assertion `filetype(path) == NOEXIST || filetype(path) == REGULAR' failed.

  8. #8
    Join Date
    Jun 2005
    Location
    Albuquerque, New Mexico
    Beans
    272
    Distro
    Ubuntu Development Release

    Re: HOWTO: Securly Clear Free Hard Drive Space with Scrub

    Can you post your partition layout? Run...

    Code:
    df -h
    ...from the command line and post the output.


    --GC
    "Nice jail. Looks strong."
    - H. Houdini

  9. #9
    Join Date
    Oct 2005
    Beans
    80

    Re: HOWTO: Securly Clear Free Hard Drive Space with Scrub

    Here you go:

    df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/hda4 7.2G 3.9G 3.1G 57% /
    varrun 506M 212K 506M 1% /var/run
    varlock 506M 0 506M 0% /var/lock
    procbususb 506M 88K 506M 1% /proc/bus/usb
    udev 506M 88K 506M 1% /dev
    devshm 506M 0 506M 0% /dev/shm
    lrm 506M 26M 481M 5% /lib/modules/2.6.20-9-generic/volatile
    /dev/hda3 12G 4.6G 6.2G 43% /home
    /dev/hda1 19G 15G 4.3G 78% /media/sda1

  10. #10
    Join Date
    Jun 2005
    Location
    Albuquerque, New Mexico
    Beans
    272
    Distro
    Ubuntu Development Release

    Re: HOWTO: Securly Clear Free Hard Drive Space with Scrub

    When you run...

    Code:
    sudo scrub -X /home/junk
    Is a junk file created? Scrub appears to be complaining about either the path/a missing output file (i.e. junk) or permissions to write to the path.

    Try creating a junk file before running scrub....

    Code:
    sudo touch /home/junk
    or try doing ....

    Code:
    sudo -i
    then run...

    Code:
     scrub -X /home/junk
    -GC
    "Nice jail. Looks strong."
    - H. Houdini

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •