Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Verify Blocks Being Marked For Reuse in FS
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
dman777
l33t
l33t


Joined: 10 Jan 2007
Posts: 737

PostPosted: Fri Mar 29, 2013 2:15 am    Post subject: Verify Blocks Being Marked For Reuse in FS Reply with quote

How could I verify that blocks are actually being marked for reuse in my filesystem?
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2379
Location: Wisconsin (USA)

PostPosted: Sat Mar 30, 2013 12:00 am    Post subject: Reply with quote

Are you talking about TRIM support on SSD or just filesystem marking blocks freed in general?

If it's the former, make sure you're using a filesystem that supports TRIM, and check dmesg output from bootup and make sure the right things are showing up for hard drive controller support (sorry I haven't worked with TRIM so i'm not directly familiar)

If it's the latter, df should indicate more free blocks after doing a remove. The main cause for something not being freed after deletion is the file is still in use (linux differs from windows in that files can be deleted while still open by a program - it is immediately unlinked from the directory listing and the actual file delete occurs on close).

Another possibility for free space not being reclaimed is filesystem corruption. Particularly on FAT filesystems, it's very easy to get phantom space usage after file deletion if the device is removed before properly unmounting (the directory tree is updated with the file removal but the FAT isn't and the space is still allocated in there). Easiest way to fix is copying files off and reformatting, and moving files back on. If that isn't practical there's fsck.msdos that will probably dump those extra chains to recovered files which you can delete.

Good luck!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum