Hey guys,
So got an interesting topic. I'm watching the crash course computer science playlist on Youtube. It surprisingly goes into quite a lot of depth in certain topics, So far I'm thoroughly enjoying it.
I'm currently at the video on file systems -
https://www.youtube.com/watch?v=KN8YgJnShPM&list=PLH2l6uzC4UEW0s7-KewFLBC1D0l6XRfye&index=21
but I have a question, Carrie Ann mentions that each directory such as root,home,documents,etc has a special file called a directory file. This file contains metadata about the files stored in that particular directory such as the size,MAC settings,blocks,etc.
As above, I mentioned blocks. These blocks will be a fixed size with some slack space to take into consideration the possibility of a file getting larger or even smaller. These blocks are also aligned for faster read/write accesses. Now here comes my question(sorry to drag on), when a file is deleted, the actual data inside the file isn't deleted itself but rather the listing for said file is removed from the directory file. So this allows memory recovery tools to recover data on a disk(if the data has not been overwritten of course) but I have also read on many articles that when a file is deleted on an SSD, it's gone forever!
so as you guessed, the above paragraph conflicts. So is data on an SSD, let's assume a text file actually deleted(gone forever) when it is deleted and if so, is my understanding(Carrie Ann's explanation) on how operating systems read/write memory in blocks wrong?
Thanks!