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
  •  


SanDisk 1TB SSD Plus, Internal Solid State Drive - SDSSDA-1T00-G26 picture

SanDisk 1TB SSD Plus, Internal Solid State Drive - SDSSDA-1T00-G26

$74.99



Western Digital 500GB WD Green SN350 NVMe Internal SSD, M.2 2280 - WDS500G2G0C picture

Western Digital 500GB WD Green SN350 NVMe Internal SSD, M.2 2280 - WDS500G2G0C

$46.99



WD_BLACK 1TB D30 Game Drive SSD, External Solid State Drive - WDBATL0010BBK-WESN picture

WD_BLACK 1TB D30 Game Drive SSD, External Solid State Drive - WDBATL0010BBK-WESN

$99.99



SanDisk 32GB Outdoors FHD microSDXC UHS-I Memory Card - SDSDUNR-032G-GN6VN picture

SanDisk 32GB Outdoors FHD microSDXC UHS-I Memory Card - SDSDUNR-032G-GN6VN

$12.99



Crucial BX500 240GB Internal SSD,Micron 3D NAND SATA CT240BX500SSD1 - OEM item picture

Crucial BX500 240GB Internal SSD,Micron 3D NAND SATA CT240BX500SSD1 - OEM item

$16.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



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

$14.99



Intel Optane Memory M10 SSD M.2 2280 16GB MEMPEK1J016GA PCIe 3.0 3D Xpoint NVMe picture

Intel Optane Memory M10 SSD M.2 2280 16GB MEMPEK1J016GA PCIe 3.0 3D Xpoint NVMe

$5.99



Fanxiang SSD 512GB 1TB 2TB 4TB 2.5'' SSD SATA III Internal Solid State Drive lot picture

Fanxiang SSD 512GB 1TB 2TB 4TB 2.5'' SSD SATA III Internal Solid State Drive lot

$198.99



Fanxiang 256GB 512GB 1TB 2TB 4TB Internal SSD 2.5

Fanxiang 256GB 512GB 1TB 2TB 4TB Internal SSD 2.5" SATA III 6GB/s for PC/MAC Lot

$197.99