View previous topic :: View next topic |
Author |
Message |
Hero I'm a spammer
Reputation: 79
Joined: 16 Sep 2006 Posts: 7154
|
Posted: Sat Sep 19, 2009 5:37 pm Post subject: why do HDD save things in random spots? |
|
|
Well in my quest to partition my HDD its making me defrag first. (using partition magic) I actually looked at it for the first time and wondered why there is a big blob of free space in the middle of all the other things. So why doesnt it just save stuff square for square?
|
|
Back to top |
|
 |
Drkgodz Flash moderator
Reputation: 2
Joined: 17 Jul 2006 Posts: 2997 Location: Houston
|
Posted: Sat Sep 19, 2009 6:22 pm Post subject: |
|
|
Imagine the lines are blank space.
File 1____File 2_____File 3.
You delete File 2.
Now it's:
File 1 ____________File 3.
You write another file that's bigger than the blank space there.
File 1____File 4___File 3____File4___.
_________________
|
|
Back to top |
|
 |
Hero I'm a spammer
Reputation: 79
Joined: 16 Sep 2006 Posts: 7154
|
Posted: Sat Sep 19, 2009 7:32 pm Post subject: |
|
|
ok so it just fills in the spots as it feels like it? alright, it was just curiosity.
|
|
Back to top |
|
 |
Noz3001 I'm a spammer
Reputation: 26
Joined: 29 May 2006 Posts: 6220 Location: /dev/null
|
Posted: Sat Sep 19, 2009 7:34 pm Post subject: |
|
|
Drkgodz wrote: | Imagine the lines are blank space.
File 1____File 2_____File 3.
You delete File 2.
Now it's:
File 1 ____________File 3.
You write another file that's bigger than the blank space there.
File 1____File 4___File 3____File4___. |
How come the ext filesystem doesn't get badly fragmented like that?
|
|
Back to top |
|
 |
Hero I'm a spammer
Reputation: 79
Joined: 16 Sep 2006 Posts: 7154
|
Posted: Sat Sep 19, 2009 8:30 pm Post subject: |
|
|
Noz3001 wrote: | Drkgodz wrote: | Imagine the lines are blank space.
File 1____File 2_____File 3.
You delete File 2.
Now it's:
File 1 ____________File 3.
You write another file that's bigger than the blank space there.
File 1____File 4___File 3____File4___. |
How come the ext filesystem doesn't get badly fragmented like that? |
What do you mean? Like the OS system files?
|
|
Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Sat Sep 19, 2009 10:39 pm Post subject: |
|
|
Noz3001 wrote: | Drkgodz wrote: | Imagine the lines are blank space.
File 1____File 2_____File 3.
You delete File 2.
Now it's:
File 1 ____________File 3.
You write another file that's bigger than the blank space there.
File 1____File 4___File 3____File4___. |
How come the ext filesystem doesn't get badly fragmented like that? |
because it attempts to store everything in a continuous mash if I remember right.
but yes, it can become fragmented over time.
|
|
Back to top |
|
 |
Zarr Grandmaster Cheater
Reputation: 0
Joined: 11 Jan 2008 Posts: 915 Location: localhost
|
Posted: Sat Sep 19, 2009 11:04 pm Post subject: |
|
|
Hero wrote: | What do you mean? Like the OS system files? |
The ext (ext4 is the latest revision iirc) filesystem is a filesystem (think NTFS or FAT32 if you're a windowsfag) commonly use by GNU/Linux distros. I'll bet most distros attempt to store files less haphazardly than Windows OSs.
_________________
|
|
Back to top |
|
 |
Hero I'm a spammer
Reputation: 79
Joined: 16 Sep 2006 Posts: 7154
|
Posted: Sun Sep 20, 2009 12:00 am Post subject: |
|
|
oh well, i defraged and its all neat now. But i just didnt get why when you install new things they dont fill in old holes.
|
|
Back to top |
|
 |
iTz SWAT I post too much
Reputation: 1
Joined: 20 Dec 2007 Posts: 2227 Location: Me.Location;
|
Posted: Sun Sep 20, 2009 12:12 am Post subject: |
|
|
If the EXT file system doesn't get fragments scattered at different HDD locations, don't that mean every time a file has changed, all the files on the Hard drive are being constantly moved and "Defragged"?
_________________
|
|
Back to top |
|
 |
Hero I'm a spammer
Reputation: 79
Joined: 16 Sep 2006 Posts: 7154
|
Posted: Sun Sep 20, 2009 12:12 am Post subject: |
|
|
I dont think so.
|
|
Back to top |
|
 |
K, Alcohol Expert Cheater
Reputation: 0
Joined: 25 Mar 2009 Posts: 184
|
Posted: Sun Sep 20, 2009 6:04 am Post subject: |
|
|
Zarr wrote: | Hero wrote: | What do you mean? Like the OS system files? |
The ext (ext4 is the latest revision iirc) filesystem is a filesystem (think NTFS or FAT32 if you're a windowsfag) commonly use by GNU/Linux distros. I'll bet most distros attempt to store files less haphazardly than Windows OSs. |
That is exactly why there is only one tool for defragmenting unix file systems (defrag) and its used really rare. The file fragmentation level is very low (max few percents). This thread is good one to read.
|
|
Back to top |
|
 |
SFP+ Comp. talk moderator
Reputation: 26
Joined: 02 May 2007 Posts: 1228 Location: Sweden
|
Posted: Mon Sep 21, 2009 9:42 am Post subject: |
|
|
defragmenting every once in a while also decreases disc failure errors
|
|
Back to top |
|
 |
|