You are not logged in.

#1 2008-07-21 20:16:06

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

fiDefrag

=== fiDefrag ===
Author: solarwind
Email: x.solarwind.x@gmail.com
Language: Python - Requires Python 2.4 or greater.
Dependencies:
    Libraries:
        * Standard Python libraries
        * python-psyco - Not a requirement, but greatly improves performance.

    Executables:
        * find
        * du
        * filefrag
        * rsync


--- Introduction: ---

fiDefrag is a filesystem independent file defragmenter written in Python. It is loosely based on John Dong's pyFragTools
but is cleaner, faster, more efficient and newer. The structure of the code is also easier to understand and more organized.

It can be run on any Unix-like system which meets with the above dependencies. It was originally written to minimize the
file fragmentation on JFS filesystems but can be run on ANY Unix-like system with any filesystem which meets the above
dependencies. It was tested on and works very well on JFS filesystems. It's also useful on ext2 or ext3 filesystems and even ReiserFS.

--- Usage: ---

* fiDefrag requires root privileges to run.

python fiDefrag.py -h | -a <dir> | -d <dir> [-p <passes>]

* Run sudo fiDefrag.py for more usage information.

--- Project: ---

* The project is hosted at https://launchpad.net/fidefrag
* The project is a bzr tree, so you can branch it by typing the following. This will always get the latest version.
    $ bzr branch lp:fidefrag
* The project directory is an Eclipse Pydev project, so you can use Eclipse and Pydev to edit/test the project.
* If you have any fixes/improvements for the project, please register a blueprint or a bug at the launchpad project page.
* You can also submit a patch or push your own branch and request a merge.

DOWNLOAD:
To download, install bzr with

pacman -S bzr

then type

bzr branch lp:fidefrag

Offline

#2 2008-11-27 20:18:21

Zibi1981
Member
From: Poland
Registered: 2008-01-31
Posts: 644

Re: fiDefrag

When I'm trying to get more details on how to use this tool, I receive this message

bash-3.2# fiDefrag.py
bash: fiDefrag.py: command not found

I've run the above mentioned command

bash-3.2# bzr branch lp:fidefrag
You have not informed bzr of your launchpad login. If you are attempting a
write operation and it fails, run "bzr launchpad-login YOUR_ID" and try again.
Branched 53 revision(s).

but what does it do actually?


"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."

MSI Raider GE78HX 13VI-032PL

Offline

#3 2008-11-27 20:52:43

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

Re: fiDefrag

*face palm*

1. Install bzr. Type the following as root:

pacman -S bzr

2. Download fidefrag. Type the following as normal user:

bzr branch lp:fidefrag

3. Run fidefrag. First change to the directory, then execute. Type this as normal user:

cd fidefrag
./fidefrag.py -a ~/

Offline

#4 2008-11-28 06:07:29

mentallaxative
Member
From: Australia
Registered: 2008-07-14
Posts: 134
Website

Re: fiDefrag

Hmmm.

How does it compare to this?

http://ubuntuforums.org/showthread.php?t=169551

edit: Ah, it appears you improved on Jdong's program.

http://ubuntuforums.org/showthread.php?t=865162

Last edited by mentallaxative (2008-11-28 06:12:53)

Offline

#5 2008-11-28 09:23:56

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: fiDefrag

Whoa.. cleaner, faster, more efficient and newer ! Sounds a bit like a commercial wink


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#6 2008-11-28 09:57:37

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

Re: fiDefrag

mentallaxative wrote:

Hmmm.

How does it compare to this?

http://ubuntuforums.org/showthread.php?t=169551

edit: Ah, it appears you improved on Jdong's program.

http://ubuntuforums.org/showthread.php?t=865162

I (re)wrote it from scratch.

Offline

#7 2008-12-27 19:10:47

Zibi1981
Member
From: Poland
Registered: 2008-01-31
Posts: 644

Re: fiDefrag

solarwind wrote:

*face palm*

1. Install bzr. Type the following as root:

pacman -S bzr

2. Download fidefrag. Type the following as normal user:

bzr branch lp:fidefrag

3. Run fidefrag. First change to the directory, then execute. Type this as normal user:

cd fidefrag
./fidefrag.py -a ~/

Well, first there's an error in the path you gave me. The correct one is ~/fidefrag/src. Then I installed python-psycopg2 package but that didn't help and I still got prompted that psyco for Python should be installed for speed optimization. Thirdly it requires root privileges. Below is the complete output.

zbyszek ~ $  pwd
/home/zbyszek
zbyszek ~ $  ./fidefrag.py -a ~/
bash: ./fidefrag.py: Nie ma takiego pliku ani katalogu
zbyszek ~ $  cd ..
zbyszek /home $  cd zbyszek/fidefrag/
zbyszek ~/fidefrag $  ./fidefrag.py -a ~/
bash: ./fidefrag.py: Nie ma takiego pliku ani katalogu
zbyszek ~/fidefrag $  ls
src
zbyszek ~/fidefrag $  cd src/
zbyszek ~/fidefrag/src $  ls
README.txt  config.py  fidefrag.py  libfidefrag.py
zbyszek ~/fidefrag/src $  ./fidefrag.py -a ~/
Could not import psyco for Python speed optimization.
Please make sure the psyco Python modules are installed.
On Ubuntu, this can be done via: sudo apt-get install python-psyco
=== You must be root to run this program ===
zbyszek ~/fidefrag/src $  su
Hasło:
bash-3.2# pacman -S python-psyco
pakiet python-psyco nie został znaleziony, szukanie grupy...
błąd:  'python-psyco': nie znaleziono w bazie danych synchronizacji
bash-3.2# pacman -S psyco
pakiet psyco nie został znaleziony, szukanie grupy...
błąd:  'psyco': nie znaleziono w bazie danych synchronizacji
bash-3.2# pacman -Ss psyco
community/python-psycopg1 1.1.21-3
    A PostgreSQL database adapter for Python
community/python-psycopg2 2.0.8-1
    psycopg is a PostgreSQL database adapter for the Python programming
    language.
bash-3.2# pacman -S python-psycopg2
ostrzeżenie: python-psycopg2-2.0.8-1 jest w najnowszej wersji -- ponowne instalo
wanie
rozwiązywanie zależności...
szukanie konfliktów międzypakietowych...

Celuje (1): python-psycopg2-2.0.8-1

Całkowity rozmiar do pobrania: 0,08 MB
Całkowity rozmiar po instalacji:   0,29 MB

Kontynuować instalację? [T/n] t
:: Pobieranie pakietów z community...
 python-psycopg2-2.0.8-1   80,1K   29,5K/s 00:00:03 [#####################] 100%
sprawdzanie spójności pakietów...
(1/1) sprawdzanie konfliktów plików                 [#####################] 100%
(1/1) aktualizowanie python-psycopg2                [#####################] 100%
bash-3.2# exit
exit
zbyszek ~/fidefrag/src $  ./fidefrag.py -a ~/
Could not import psyco for Python speed optimization.
Please make sure the psyco Python modules are installed.
On Ubuntu, this can be done via: sudo apt-get install python-psyco
=== You must be root to run this program ===
zbyszek ~/fidefrag/src $  su
Hasło:
bash-3.2# ./fidefrag.py -a ~/
Could not import psyco for Python speed optimization.
Please make sure the psyco Python modules are installed.
On Ubuntu, this can be done via: sudo apt-get install python-psyco

=== Analyzing /root/ - 3,9M - 502 Files ===

=== Building File List...
=== Building Extended File Info...
        502 /     502 - 100%
   0.32 MB    6 P   18.74 P/MB   /root/.kde/share/apps/kthemema...top/BT-Miankaeh.jpg
   0.03 MB    3 P   97.29 P/MB   /root/.kde/share/config/katesy...syntaxhighligtingrc
   0.02 MB    4 P  235.15 P/MB   /root/.kde/share/config/khotke...re/config/khokeysrc
   0.03 MB    3 P  117.26 P/MB   /root/.xsession-errors...oot/.xsession-errors

Still I don't know what to do with this output roll

Last edited by Zibi1981 (2008-12-27 19:17:34)


"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."

MSI Raider GE78HX 13VI-032PL

Offline

#8 2009-02-14 11:02:21

Zibi1981
Member
From: Poland
Registered: 2008-01-31
Posts: 644

Re: fiDefrag

*bump*

Anyone?


"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."

MSI Raider GE78HX 13VI-032PL

Offline

#9 2009-08-26 10:20:47

dieghen89
Member
From: Italy
Registered: 2009-06-24
Posts: 134

Re: fiDefrag

Hi, for all the interested the bzr package on my Arch doesn't work...So I created a new package in aur, fidefrag, that is the last stable version (2.11)...


XPS 13 DE 2015 + K*5
"Machines are so stupid that if you tell them to do something perfect, they'll do it"

Offline

#10 2009-10-30 16:56:22

ApotheoZ
Member
Registered: 2009-08-10
Posts: 40

Re: fiDefrag

Nice tool.

Offline

Board footer

Powered by FluxBB