l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2006 Jan 17 06:52

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] How to erase unused disk space?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] How to erase unused disk space?

On Monday 16 January 2006 09:11 am, Rod Roark rod-at-sunsetsystems.com 
|lugod| wrote:
> I have Ubuntu installed in a VMware virtual machine, which is just
> a collection of disk files, the largest of which is the disk image.
> I want to make a tarball of these files of minimal size.  This seems
> to require erasing the contents of the unused areas of the virtual
> ext3 filesystem, so they will compress optimally.  Is there some
> standard utility that will do this?
> Note this is not a "data security erase" problem where the unused
> sectors are to be repeatedly overwritten with different bit patterns;
> I just want to clear them once to binary zeros.

cat /dev/zero > /zero;rm -f /zero

That's probably the easiest. Make sure you run it as root, ext2/3 reservers a 
percentage of the disk for root.

Ryan Castellucci - http://ryanc.org/
GPG Key: http://ryanc.org/files/publickey.asc
vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!