Welcome to Smokey's Security Forums.
Guests have only limited access to the board and it's features, please consider registering to gain full access!
Registration is free and it only takes a few moments to complete.

Smokey's Security Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

Smokey's Security Forums now a member of:
AQMRB - Alliance of Qualified Malware Removal Boardsâ„¢

   AQMRB - Alliance of Qualified Malware Removal Boardsâ„¢

Multilingual OTL (OldTimer ListIt) Log Analysis * Multilingual OTL Tutorials * OTL Downloads * Malware Removal * Microsoft Security Info & Alert Center * Official Jetico Inc. Support Forums

Share this topic on FacebookShare this topic on MySpaceShare this topic on Del.icio.usShare this topic on DiggShare this topic on RedditShare this topic on StumbleUponShare this topic on TwitterAuthorTopic: Wiping free space on a Linux machine  (Read 1678 times)

0 Members and 1 Guest are viewing this topic.

bulatekTopic starter

  • Full Member
  • **
  • Offline Offline
  • Posts: 11
Re: Wiping free space on a Linux machine
« Reply #8 on: March 03, 2009, 06:03:14 PM »
Thanks, all of the suggestions above worked.  I created a new thread for the logging question.
Dave...

bulatekTopic starter

  • Full Member
  • **
  • Offline Offline
  • Posts: 11
Re: Wiping free space on a Linux machine
« Reply #7 on: February 17, 2009, 07:44:33 PM »
Wonderful! That seems to work.

Next question...
When I run on Linux, is there a log file created of the BCWipe run? Where would I find it? I need to log to "prove" that the wiping was run and successful. I plan to do three separate runs. One for free space. One for slack space. And one for swap space.

Thanks,
Dave...

Nail

  • Jetico Inc. Developer
  • *
  • Offline Offline
  • location: Jetico
  • Posts: 281
    • WWW
Re: Wiping free space on a Linux machine
« Reply #6 on: February 17, 2009, 11:37:25 AM »
Hi.
Quote from: "bulatek"
1) I am just learning Linux, so, if I run wipe free space off the root filesystem, does it wipe the entire directory tree (and all associated partitions)? For example, my root is mounted on /dev/hda3 but /boot is mounted on /dev/hda1. So running wipe free space off / will wipe both of those partitions?

No. It will wipe free space on your /dev/hda3 only.

Quote from: "bulatek"
2) Is it possible (or even necessary) to wipe the Linux swap space? How do you do it? Swap is on /dev/hda2, but I do not see any mounted filesystem for that.

Try following sequence:
1. Make sure that you have enough virtual memory
2. swapoff /dev/hda2              # turn off swapping on /dev/hda2
3. bcwipe -bvmd /dev/hda2      # wipe /dev/hda2 block device
4. mkswap /dev/hda2              # prepare swap space
5. swapon /dev/hda2               # turn on swapping on /dev/hda2

Regards,
Nail

bulatekTopic starter

  • Full Member
  • **
  • Offline Offline
  • Posts: 11
Re: Wiping free space on a Linux machine
« Reply #5 on: February 12, 2009, 06:43:49 PM »
A couple more questions:

1) I am just learning Linux, so, if I run wipe free space off the root filesystem, does it wipe the entire directory tree (and all associated partitions)? For example, my root is mounted on /dev/hda3 but /boot is mounted on /dev/hda1. So running wipe free space off / will wipe both of those partitions?

2) Is it possible (or even necessary) to wipe the Linux swap space? How do you do it? Swap is on /dev/hda2, but I do not see any mounted filesystem for that.

Thanks,
Dave...

Nail

  • Jetico Inc. Developer
  • *
  • Offline Offline
  • location: Jetico
  • Posts: 281
    • WWW
Re: Wiping free space on a Linux machine
« Reply #4 on: February 11, 2009, 12:40:33 PM »
Hi.
If you want to wipe free space on root filesystem please enter
bcwipe -Fvmd /
Path must point to the filesystem's mount point.

Regards,
Nail

bulatekTopic starter

  • Full Member
  • **
  • Offline Offline
  • Posts: 11
Re: Wiping free space on a Linux machine
« Reply #3 on: February 09, 2009, 04:56:53 PM »
I tried running "bcwipe -Fvmd /tmp" and received a message saying "You can not wipe ALL free space on /tmp." I answered yes to continue past that and it proceeded to wipe. So now the questions are 1) what is NOT wiped (per message above), and 2) will I need to do run bcwipe on each directory off of the root?
Thanks,
Dave...

Nail

  • Jetico Inc. Developer
  • *
  • Offline Offline
  • location: Jetico
  • Posts: 281
    • WWW
Re: Wiping free space on a Linux machine
« Reply #2 on: February 09, 2009, 12:37:09 PM »
Hi, Dave.

"Wipe free space" command requires a mounted filesystem as parameter, not block device.
Please try bcwipe –Fvmd /tmp instead.

Regards,
Nail

bulatekTopic starter

  • Full Member
  • **
  • Offline Offline
  • Posts: 11
Wiping free space on a Linux machine
« Reply #1 on: February 06, 2009, 09:13:11 PM »
I am trying to wipe free space on a Linux machine primary drive. I log in as super user and use the command
Quote
bcwipe –Fvmd /dev/hda

 but I get the error Can not wipe free space in /dev/hda: Permission denied.

What do I need to do to accomplish this?

Thanks,
Dave...
 

* Permissions
You can't post new topics.
You can't post replies.
You can't post attachments.
You can't modify your posts.
BBCode Enabled
Smilies Enabled
[img] Enabled
HTML Disabled


Except where otherwise stated, all content © 2006 - 2010 Smokey Services™ -- All rights reserved
Design of all board graphics, banners and images by Emma aka Tinker - © 2006 - 2010 Smokey Services™ -- All rights reserved
Smokey's Security Forums is member AQMRB - Alliance of Qualified Malware Removal Boardsâ„¢, an organisation of Approved Qualified Malware Removal Help & Support Boards
Member ASAP - Alliance of Security Analysis Professionalsâ„¢

    

  

Smokey's provide fully qualified OTL (OldTimer ListIt) Log Analysis & Malware Removal services in English, German and Spanish language