You are not logged in.

#1 2008-06-16 02:34:28

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

defrag ext3

Is this possible? if so, how?


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#2 2008-06-16 02:53:46

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,385
Website

Re: defrag ext3

Have a look at shake and defrag in the AUR.

Offline

#3 2008-06-16 05:41:15

droog
Member
Registered: 2004-11-18
Posts: 877

Re: defrag ext3

what could you be doing to need defrag on ext3 i utterly abuse the crap out of several ext3 disks overfilling them weekly etc, and have like .009 fragmentation.

Offline

#4 2008-06-16 06:15:45

Zepp
Member
From: Ontario, Canada
Registered: 2006-03-25
Posts: 334
Website

Re: defrag ext3

droog wrote:

what could you be doing to need defrag on ext3 i utterly abuse the crap out of several ext3 disks overfilling them weekly etc, and have like .009 fragmentation.

Meh I have gotten 20-30% non-contiguous

As far as I know there is no real defrag utility for ext3. Most people either choose not to worry about it, or they occasionally backup, format, and recopy all their data.

Last edited by Zepp (2008-06-16 06:18:33)

Offline

#5 2008-06-16 13:32:53

carlocci
Member
From: Padova - Italy
Registered: 2008-02-12
Posts: 368

Re: defrag ext3

There was this simple script by Con Kolivas
http://ck.kolivas.org/apps/defrag/defrag-0.06/defrag

Offline

#6 2008-06-16 14:57:54

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: defrag ext3

droog wrote:

what could you be doing to need defrag on ext3 i utterly abuse the crap out of several ext3 disks overfilling them weekly etc, and have like .009 fragmentation.

how do you calcutate the % fragmentation?


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#7 2008-06-16 15:00:41

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,385
Website

Re: defrag ext3

One way is if you do "touch /forcefsck" as root, your filesystems will be checked on you next boot and that info gets outputted.

Offline

#8 2008-06-16 15:36:19

Zepp
Member
From: Ontario, Canada
Registered: 2006-03-25
Posts: 334
Website

Re: defrag ext3

Raccoon1400 wrote:
droog wrote:

what could you be doing to need defrag on ext3 i utterly abuse the crap out of several ext3 disks overfilling them weekly etc, and have like .009 fragmentation.

how do you calcutate the % fragmentation?

fsck can tell you.

Offline

#9 2008-06-16 15:39:32

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: defrag ext3

Zepp wrote:
Raccoon1400 wrote:
droog wrote:

what could you be doing to need defrag on ext3 i utterly abuse the crap out of several ext3 disks overfilling them weekly etc, and have like .009 fragmentation.

how do you calcutate the % fragmentation?

fsck can tell you.

What command?


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#10 2008-06-16 15:58:00

Zepp
Member
From: Ontario, Canada
Registered: 2006-03-25
Posts: 334
Website

Re: defrag ext3

Raccoon1400 wrote:
Zepp wrote:
Raccoon1400 wrote:

how do you calcutate the % fragmentation?

fsck can tell you.

What command?

fsck

Offline

#11 2008-06-16 16:04:03

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: defrag ext3

Zepp wrote:
Raccoon1400 wrote:
Zepp wrote:

fsck can tell you.

What command?

fsck

Or fsck


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#12 2008-06-16 16:20:31

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: defrag ext3

The touch /forcefsck command would be better then, because fsck should not be run on a mounted filesysyem.


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#13 2008-06-16 17:06:47

Zepp
Member
From: Ontario, Canada
Registered: 2006-03-25
Posts: 334
Website

Re: defrag ext3

Raccoon1400 wrote:

The touch /forcefsck command would be better then, because fsck should not be run on a mounted filesysyem.

Right. It's not a problem if the partition in question isn't your current root partition, otherwise you need to do that to force fsck before root is mounted at boot.

Offline

#14 2008-06-17 01:51:33

damn_it's_charles
Member
From: Leeds, West Yorks, England
Registered: 2008-06-17
Posts: 2
Website

Re: defrag ext3

If you're getting that bad fragmentation you might want to take a look at XFS, which can defragment itself, and tries rather hard to avoid fragmentation in the first place (check out the preallocation options) but it comes with a health warning: it delays disk writes more than other file systems and thus makes your data more vulnerable to, well, everything. It comes highly recommended by the mythtv crowd, and certain species of ricer. YMMV and I've not tried it on arch yet.


Open Saucery isn't enough, we need Open Cakery too..

Offline

Board footer

Powered by FluxBB