[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

How do computers change information? If I understand correctly,

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 9
Thread images: 1

How do computers change information?

If I understand correctly, there are disks in your hard drive where where microscopic lines (bits) are magnetically charged either positively or negatively. But what if I delete a file whose corresponding bits are in the "middle" of the sequences of bits? If I create a new file, will its bits get made in the gap in the "middle" that opened from the other file getting deleted, or somewhere else? How does it decide WHERE to start magnetizing bits for new data?
>>
Files on the disk are stored fragmented in little pieces. The correct location of the file is cataloged via the filesystem, which is located on a reserved space on the disk. Where the new file will be created - depends on the file system, some take the first free spaces, others decide on other factors such as unfragmented space
>>
>>60965725
Your operating system handles that. It has nothing to do with the storage medium.

As for how the decision is made, your operating system stores a list of "file descriptors" at the beginning of your hard drive, which have the name of the file and some metadata about it like the size and the position of the actual file contents on the disk. When you delete a file, the contents of the file aren't actually deleted, just this little file descriptor that points to the contents. This is how file recovery tools recover data. Once the file descriptor is deleted, the section of the disk that the file was stored in is marked as free, and until something else is written to it, the operating system considers it to be full of random garbage. Once a new file needs to be written, the free space full of garbage will be overwritten with all or part of the new file. If it isn't big enough to hold the entire file, the file is broken into chunks and as much as possible is written to the free sectors. Having many small free sectors from small deleted files causes files to be broken up many times, which is what fragmentation is.
>>
>>60965835
>>60965868
Pretty interesting. Thanks a lot.
>>
>>60965868
Why is defragging necessary on Windows but not on Linux?
>>
>>60967086
ext3/4 don't fragment the same way that NTFS does, which makes it unnecessary.
https://askubuntu.com/questions/1090/why-is-defragmentation-unnecessary
>>
>>60965725
It's magic.
>>
>>60967086
because those file systems weren't written by pajeets
>>
>>60967203
Almost. Genius is next to magic.
Thread posts: 9
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.