Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


why do HDD save things in random spots?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Computer Talk
View previous topic :: View next topic  
Author Message
Hero
I'm a spammer
Reputation: 79

Joined: 16 Sep 2006
Posts: 7154

PostPosted: Sat Sep 19, 2009 5:37 pm    Post subject: why do HDD save things in random spots? Reply with quote

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
View user's profile Send private message
Drkgodz
Flash moderator
Reputation: 2

Joined: 17 Jul 2006
Posts: 2997
Location: Houston

PostPosted: Sat Sep 19, 2009 6:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hero
I'm a spammer
Reputation: 79

Joined: 16 Sep 2006
Posts: 7154

PostPosted: Sat Sep 19, 2009 7:32 pm    Post subject: Reply with quote

ok so it just fills in the spots as it feels like it? alright, it was just curiosity.
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Sat Sep 19, 2009 7:34 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Hero
I'm a spammer
Reputation: 79

Joined: 16 Sep 2006
Posts: 7154

PostPosted: Sat Sep 19, 2009 8:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat Sep 19, 2009 10:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
Zarr
Grandmaster Cheater
Reputation: 0

Joined: 11 Jan 2008
Posts: 915
Location: localhost

PostPosted: Sat Sep 19, 2009 11:04 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
Hero
I'm a spammer
Reputation: 79

Joined: 16 Sep 2006
Posts: 7154

PostPosted: Sun Sep 20, 2009 12:00 am    Post subject: Reply with quote

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
View user's profile Send private message
iTz SWAT
I post too much
Reputation: 1

Joined: 20 Dec 2007
Posts: 2227
Location: Me.Location;

PostPosted: Sun Sep 20, 2009 12:12 am    Post subject: Reply with quote

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
View user's profile Send private message
Hero
I'm a spammer
Reputation: 79

Joined: 16 Sep 2006
Posts: 7154

PostPosted: Sun Sep 20, 2009 12:12 am    Post subject: Reply with quote

I dont think so.
Back to top
View user's profile Send private message
K, Alcohol
Expert Cheater
Reputation: 0

Joined: 25 Mar 2009
Posts: 184

PostPosted: Sun Sep 20, 2009 6:04 am    Post subject: Reply with quote

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
View user's profile Send private message
SFP+
Comp. talk moderator
Reputation: 26

Joined: 02 May 2007
Posts: 1228
Location: Sweden

PostPosted: Mon Sep 21, 2009 9:42 am    Post subject: Reply with quote

defragmenting every once in a while also decreases disc failure errors
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Computer Talk All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites