LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   wipe on each write (https://www.linuxquestions.org/questions/linux-software-2/wipe-on-each-write-4175666162/)

qrange 12-18-2019 02:47 AM

wipe on each write
 
Is there a way to tell filesystem (ext4) to wipe sectors whenever file is deleted?
I'm trying to reduce the size of vbox .vdi, so its compressed and its tedious to zero unused space all the time.

BW-userx 12-18-2019 07:10 AM

It sounds like you got the zero out empty space part done. So then I'd figure out how to keep track of "empty" space when that special number hits then zero it out. Then toss that into a script, then put the script it in the init section to run each boot up. Now it is automated.

maybe even put it into a job to run it periodically throughout the day.

(I have no experience with this, that is just a suggestion, not a solution per se)

michaelk 12-18-2019 07:38 AM

I've never tried but VB is supposed to support the trim. You will find posts that indicates its buggy and the filesystem became corrupted so try it on something not important or keep a good backup


https://www.google.com/amp/s/erikwra...with-trim/amp/


All times are GMT -5. The time now is 09:25 AM.