LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-18-2019, 02:47 AM   #1
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Rep: Reputation: 47
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.
 
Old 12-18-2019, 07:10 AM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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)

Last edited by BW-userx; 12-18-2019 at 07:16 AM.
 
Old 12-18-2019, 07:38 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
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/

Last edited by michaelk; 12-18-2019 at 07:41 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Normal to wipe linux each year and start over? xmrkite Linux - Software 23 08-04-2013 01:10 PM
[SOLVED] Better way to create a folder for each month, with another folder inside of each anon091 Linux - Newbie 9 12-03-2012 10:38 AM
How to read each lines from a file where each line represent one file name Binay23 Linux - Newbie 2 07-30-2012 11:26 AM
Menu with links to each forum on each page General LQ Suggestions & Feedback 1 05-14-2006 06:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration