LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-01-2016, 06:29 PM   #16
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656

Quote:
Originally Posted by jpollard View Post
That is exactly how files are deleted. When the last pointer to the file is removed, the file is deleted.

When a file is NOT deleted, there are still pointers to the file.
My whole point in posting was based on your reply here. Removing files does not "delete" them. It just removes any references to them. True deletion only occurs when the space is zeroed out, either by securely erasing the file on an HDD or by running trim on an SSD. Until that occurs, the file is not deleted, just not referenced.
 
Old 07-01-2016, 09:08 PM   #17
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by bassmadrigal View Post
My whole point in posting was based on your reply here. Removing files does not "delete" them. It just removes any references to them. True deletion only occurs when the space is zeroed out, either by securely erasing the file on an HDD or by running trim on an SSD. Until that occurs, the file is not deleted, just not referenced.
No - deletion is when the blocks allocated to the file are released for reuse, including the inode.

Secure delete is sloooow, and for large files can take hours. And unless the filesystem supports doing secure delete, you NEVER get access to the metadata for the file. You can google for "object reuse" as that is what your "secure delete" is a part of.

No filesystem support does secure delete because it is too slow. The SSD trim is an internal one due to the data blocks present MUST be zeroed before a write can be done - otherwise the data is corrupted (you don't write 0s... only 1s). Thus the SSD has its own "filesystem" that handles relocation (zeroing data is very slow) for a given block. Thus the SSD has to track block numbers via indirection while zeroing other blocks. It also means you don't get access to the entire storage as some percentage is always set aside for failed writes/zeroing, and for blocks that can be written to.

Last edited by jpollard; 07-01-2016 at 09:11 PM.
 
  


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
disk space full because alot of files in /var/spool/clientmqueue folder k0nsole.c Linux - Software 4 03-21-2016 09:26 AM
os reports disk full but i still see some space jzoudavy Linux - Newbie 3 01-16-2015 11:15 AM
Disk space full and remedy stevenl Linux - Newbie 23 03-26-2012 04:52 AM
Disk full. Deleted files but no space available. atrejo Linux - General 3 05-03-2010 02:00 PM
disk space is full ( / is 100% in use) samengr Linux - General 3 01-26-2008 09:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:24 PM.

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