PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 27, 2012, 04:51:59 PM


Login with username, password and session length


Pages: 1 [2]   Go Down
  Print  
Author Topic: Defragmentation in Linux ?  (Read 1061 times)
djohnston
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 5711


I don't do Windows


« Reply #15 on: September 11, 2011, 02:57:48 PM »

"If you install and run Linux on an disk formatted for Fat32 or NTFS"

afik, this can't be done

Linux can be installed and run on a FAT16 or FAT32 with either the syslinux bootloader or the loadlin.exe Windows executable. The syslinux is the easiest to do, and probably runs better on FAT16.

I did some googling anf found these links.

The first one gives an explanation very similar to what I wrote in my first post.

<snip>

The second one is a link to a defragger: http://vleu.net/shake/.

The third one is a link to a defragging script by Con Kolivas: http://ck.kolivas.org/apps/defrag/defrag-0.08/defrag.

Also, do a search for the ext4 defragger e4defrag.


From what I can tell, e3defrag is a userspace utility that requires certain kernel modules to be in place. The Shake defragmenter is a userspace utility that needs no kernel special modules.

What I find interesting about Con Kolivas's script is that it reorders the files on a partition by size from the largest to the smallest. It is also filesystem "agnostic" in that it should work on any filesystem type. I also find his comment in the script interesting:

"Are you really crazy enough to be using this? It might blow your data into tiny little useless chunks."

The xfs filesystem has a defrag utility, xfs_fsr, as part of the filesystem tools. It will safely execute even if the filesystem is mounted and in use.

Logged

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378
jaydot
Administrator
Super Villain
*****
Online Online

Posts: 15011


there is no limitation on imagination


« Reply #16 on: September 11, 2011, 04:09:16 PM »

i've been using linux since the tail end of 2004 and pclinuxos exclusively since 2005.  in all that time i have not defragmented, nor installed a virus package.  being the laziest person in the multiverse i never do owt that isn't necessary, leaving me more time to play. Grin
Logged

PCLinuxOS  Get it?  Got it?  Good!!   Cool

We don't have any millionare angels or corporate backers paying the bills here, PLEASE DONATE.
http://pclinuxos.com/?page_id=7
Vortеx
Hero Member
*****
Offline Offline

Posts: 2010


Vorteks without the Secretary


« Reply #17 on: September 11, 2011, 04:19:37 PM »

Easy men!

It's simply ext2fs uses much less disk space than NTFS.
Because of the OS Cheesy
Logged
AS
Global Moderator
Hero Member
*****
Offline Offline

Posts: 4139

Have a nice ... night!


« Reply #18 on: September 11, 2011, 04:21:46 PM »

"If you install and run Linux on an disk formatted for Fat32 or NTFS"

afik, this can't be done
Linux can be installed and run on a FAT16 or FAT32 with either the syslinux bootloader or the loadlin.exe Windows executable. The syslinux is the easiest to do, and probably runs better on FAT16.


This is true, but at side Linux will create a special container file to store all fs attributes that can't be stored on FAT filesystems,
I would say ... it's like to strangle the filesystem performance, which are already low on FAT32 fs, practically each read / write need to be performed at least in two places ...
Logged
djohnston
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 5711


I don't do Windows


« Reply #19 on: September 11, 2011, 04:24:01 PM »


I would say ... it's like to strangle the filesystem performance, which are already low on FAT32 fs, practically each read / write need to be performed at least in two places ...


I agree, whether it's FAT32 or FAT16. Better to use a native filesystem.

Logged

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378
T6
Super Villain
******
Online Online

Posts: 17005


i can rest now :D


« Reply #20 on: September 11, 2011, 06:02:18 PM »

that is a yes written in the form of a no
Logged

"It pays to keep an open mind, but not so open your brains fall out."

Carl Sagan
Abraxas
Hero Member
*****
Online Online

Posts: 837


PCLinuxOS - Heck Yeah !


« Reply #21 on: September 13, 2011, 10:59:02 AM »

Lol, you guy's are funny  Cheesy
I don't want or need a defragmenter, it's such a wierd word to type when your tired.
I will curb my enthusiasm in future to ask a question that's been floating around in my imagination.
I think something came of it though.
Logged

PCLinuxOS KDE 4.6.5 MiniMe -- Taking Control each day - taking some deep breathes too...
I'm GMT+10 hours !
T6
Super Villain
******
Online Online

Posts: 17005


i can rest now :D


« Reply #22 on: September 13, 2011, 11:06:56 AM »

 Cheesy

a good learning experience  Cheesy
Logged

"It pays to keep an open mind, but not so open your brains fall out."

Carl Sagan
Pages: 1 [2]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM