Friday, September 18, 2009

Week Three Muddiest Point.

Why do computers save parts of files in different places and not just all in one place?

2 comments:

  1. It is my my understanding the reason why it does it is when the file is first saved the hard drive is unable to allocate enough contiguous space for the file so the files contents must be saved in more then one space.

    ReplyDelete
  2. It's a really hard concept to explain but easy to understand once it finally clicks - I'll try to explain it to you. You must think of your hard drive as made up of a bunch of small, set sections. For my example lets say your hard drive is made up of 10 sections (all with a pre-determined space availability)and for this example lets just say we are only saving word files and documents (it is the same with software and other things - just complicates the matter though). Ok so you save three different word documents in a row - they are all put in "Section 1." You save three more word documents - these are also all placed into three different file folders - these are all placed into "Section 2" Three more word documents go into "Section 3" At this point all your files are all in the same place and together - there are many different ways to mess this up and I'll give you a few examples. You make major changes to one of your word documents in Section 1 - now if you remember Section 1 is full, and hard drives cannot save things in the middle of sections (Section 1 is full and so is Section 2). The changes to your document must be saved at the beginning of Section 4 - hence the word document is saved in 2 different places. Ex. 2 now say you want to save another word document in one of the folders you have created in Section 2 - this new document would also have to be saved in Section 4 - and the documents in that folder are now saved in different places. Ex. 3 - say you want to delete one of the word documents in Sectoin 1 - the file will be deleted and the space in Section 1 will be empty but technically unusable - since hard drives can not save in the middle of sections. This is also the reason it is good to periodically defragment your hard drive. Degfraging basically squishes everything together - it takes all your files that are in different places and combines them - it also gets rid of all your unusable space.

    Again, it is hard to explain but once you get it you get it - hope this helps.

    ReplyDelete