I made these diagrams to generally explain to a college class how file storage layers work on a drive and now when you delete/format the filesystem the file data remains. I couldn't find one online, so made one. What do you think? Any significant issues?
Conversation
Notices
-
Embed this notice
Command Line Magic (climagic@mastodon.social)'s status on Sunday, 23-Apr-2023 12:02:40 JST Command Line Magic -
Embed this notice
Mike Gerdts (mgerdts@fosstodon.org)'s status on Sunday, 23-Apr-2023 12:37:23 JST Mike Gerdts @climagic Another way to approach it is (using typical Linux/UNIX implementation) that each file that you can see in a directory is a directory entry pointing to an inode. Usually there's only one directory entry referencing an inode, so when you delete it, the inode is marked as free, as are indirect blocks and data blocks referenced by the inode. A free block is usually not zeroed. Lots of inode images around.
Kudos for including the overprovisioning (wear leveling) blocks used by hardware.
-
Embed this notice