Results 1 to 3 of 3

Thread: Write zeros to empty space.

  1. #1
    Senior Member registered user
    Join Date
    Feb 2004
    Posts
    949

    Write zeros to empty space.

    Is there some way to write all 0's to the empty space on my ext3 partition. Tis isn't for security but rahter for compression. When I made an image of the parttion it was 3.2 gigs compressed. But only 1.4 gigs are acually used. The rest is ghost data from files long gone that the OS can ignore but not the compression. Which means if I were able to write zeros on all the free space, the compressed size would decrease dramaticly.

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    872
    1. go to a mount point under the fs
    2. dd if=/dev/null of=rubbish
    3. rm rubbish

  3. #3
    Senior Member registered user
    Join Date
    Feb 2004
    Posts
    949
    Worked like a charm. Got the image size down to 640 megs.

    Thanks

Similar Threads

  1. dpkg - warning: while removing ..........not empty so not...
    By drabo in forum Customising & Remastering
    Replies: 2
    Last Post: 09-05-2005, 07:52 PM
  2. Empty hard drive install
    By shawgo in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 03-24-2005, 11:07 AM
  3. Knoppix 3.6 on HD ok, but why SYSLOG is empty ???
    By iw5dxh in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 10-31-2004, 11:01 PM
  4. Apt-get -> empty program menu
    By Blether in forum General Support
    Replies: 4
    Last Post: 06-22-2004, 01:13 AM
  5. printing: only empty pages...
    By Idletask in forum General Support
    Replies: 0
    Last Post: 01-09-2004, 01:03 PM

Posting Permissions

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


Western Digital 1TB Caviar WD1002FBYS Enterprise SATA Hard Disk Drives picture

Western Digital 1TB Caviar WD1002FBYS Enterprise SATA Hard Disk Drives

$24.99



1TB Samsung SSD 840 EVO Internal 2,5

1TB Samsung SSD 840 EVO Internal 2,5" SATA III MZ7TE1T0HMHP MZ-7TE1T0 1GB Cache

$82.16



1TB Samsung 840 EVO Internal 2.5

1TB Samsung 840 EVO Internal 2.5" SATA III SSD MZ7TE1T0HMHP Solid State Drive

$69.83



832514-B21 HPE 1TB SAS 12Gb/s 7.2K SFF SC HDD 832984-001 picture

832514-B21 HPE 1TB SAS 12Gb/s 7.2K SFF SC HDD 832984-001

$129.00



2 PACK  Seagate ST1000LM035 Mobile HDD 1TB 2.5

2 PACK Seagate ST1000LM035 Mobile HDD 1TB 2.5" SATA III Laptop Hard Drive

$27.49



Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5

Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot

$19.99



Samsung - Geek Squad Certified Refurbished 870 EVO 1TB SATA Solid State Drive picture

Samsung - Geek Squad Certified Refurbished 870 EVO 1TB SATA Solid State Drive

$67.99



Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot picture

Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot

$13.99



1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot picture

1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot

$80.39



Apple 1TB Solid State Drive for Apple MacBook Pro picture

Apple 1TB Solid State Drive for Apple MacBook Pro

$80.00