1. go to a mount point under the fs
2. dd if=/dev/null of=rubbish
3. rm rubbish
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.
1. go to a mount point under the fs
2. dd if=/dev/null of=rubbish
3. rm rubbish
Worked like a charm. Got the image size down to 640 megs.
Thanks
Western Digital 1TB Caviar WD1002FBYS Enterprise SATA Hard Disk Drives
$24.99
1TB Samsung SSD 840 EVO Internal 2,5" SATA III MZ7TE1T0HMHP MZ-7TE1T0 1GB Cache
$82.16
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
$129.00
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" SATA 3 6GB/s Internal SSD PC/MAC Lot
$19.99
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
$13.99
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
$80.00