![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to create new partition in Linux | useless79 | Linux | 1 | 07-25-2007 02:09 AM |
| mandrake/ linux partition | jestra | UNIX Desktop for Dummies Questions & Answers | 2 | 02-08-2004 11:34 PM |
| Copying a Linux distro from one partition to the other... | Mr_Proper | UNIX for Advanced & Expert Users | 5 | 06-18-2003 10:38 AM |
| Making a UFS Partition w/ Linux | Karma | UNIX for Dummies Questions & Answers | 6 | 06-16-2003 10:17 AM |
| Linux Swap Partition | primal | UNIX for Dummies Questions & Answers | 2 | 01-07-2002 09:37 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
How do I defragmemt a partition on Linux?
conveyed my question in short; need urgent help.
-ilan |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
The filesystems in Linux don't need defragmentaion, like Windows. If your filesystem is corrupted though, you need to recover it (or at least try to); check the man pages for "fsck" - "check and repair a Linux file system"
|
|
#3
|
||||
|
||||
|
if your filesystem becomes too slow due to fragmentation (there is fragmentation under linux!) you can simply copy your files (if possible) to an other disk or filesystem. delete the old filesystem and copy the data back. afaik there is no defrag tool for linux.....
|
|
#4
|
|||
|
|||
|
Thanks for the replies DukeNuke2 & sysgate!
It is not that my system has gone slow...but, defragmentation on a volume is kind of customer scenario I want to test with the product I work!! -ilan |
|
#5
|
||||
|
||||
|
volumemanager like veritas vm have a defrag tool. but the price is high... very high!
|
|
#6
|
||||
|
||||
|
...hold on a second here. This very much depends on what filesystem you are using. fsck on some of the journalled filesystems may do noting short of destroying them for example I would not suggest this on ext3 or reiser filesystems.
Last edited by reborg; 08-03-2007 at 09:11 AM. |
|
#7
|
||||
|
||||
|
A full fsck should not destroy a filesystem. I heard that fsck on ext3 is nasty. Reiser too? Seesh... those filesystems are broken and I would not use them until they work correctly. Veritas filesystems are journalled and extent-based. I have run a full fsck on many Veritas filesystems. There is nothing about journalled or extent-based filesystems that makes them inherently non-repairable. However, fsck does not defrag them, it only repairs damage.
The Veritas defrag tool is for the Veritas filesystem, not the Veritas volume manager. The Veritas filesystem and the Veritas Volume Manager are two different things and it is possible to use one without using the other. Using a volume manager in a clueless manner could indeed cause a form of fragmentation, but the defrag tool won't help that. The Windows/DOS FAT filesystem family can fragment and then benefit from defraging. Linux supports FAT and a lot of us use FAT filesystems on multiboot systems to share files between Windows and Linux. I have always booted back to Windows to defrag a FAT filesystem. I don't know if Linux has a FAT defrag tool. I don't know of one offhand, but I have never really looked. |
||||
| Google The UNIX and Linux Forums |