How do I defragmemt a partition on Linux?


 
Thread Tools Search this Thread
Operating Systems Linux How do I defragmemt a partition on Linux?
# 8  
Old 08-03-2007
Quote:
Originally Posted by Perderabo
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.
I agree completely, there is indeed nothing in the concept which prevents it, only in implementation. I also have run many fscks on vxfs with DRL logs enabled and there has never been a destroyed filesystem as a result. likewise UFS with logging enabled.

I have (deliberately) done this on ext3 and reiser(can't remember which one ) and ended up with nothing good afterwards. I certainly would recommend not using them for now for this reason.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Resize Linux partition

Hello., Could any one please share the informaiton about this or please point me the reference : Assume, we have the following partition after linux machine is setup, it will mention like this : bash$ df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda2 10G... (3 Replies)
Discussion started by: alnhk
3 Replies

2. Red Hat

Shrink LVM partition & create new Linux Primary partition

Hello All, I have a Red Hat Linux 5.9 Server installed with one hard disk & 2 Partitions created on it as follows, /boot - Linux Partition & another is LVM - One VG & under that 5-6 Logical volumes(var,opt,home etc). Here my requirement is to take out 1GB of space from LVM ( Any logical... (5 Replies)
Discussion started by: gr8_usk
5 Replies

3. Red Hat

Linux partition with LVM

Hi, I need a suggesstion i have 2 disk if i installed OS / root partition by making Lvm in one disk and data in other disk also with the lvm, means 2 different lvms. Is making LVM partition for OS disk will the performacne will be good? Can i make 2 different lvm one is for OS and other for... (1 Reply)
Discussion started by: Rahulne25
1 Replies

4. Red Hat

Limitations on the partition of linux

Hi, I need a documentation about limitations on the linux partition. On how many primary and extended I could create. And also on different type of storage, how many big capacity I can create. Thanks. (3 Replies)
Discussion started by: itik
3 Replies

5. Linux

problem to format linux partition

hi friends one week ago, i have installed fedoa 9 on my home pc. i already have windows xp on that machine. unfortunately my windows xp has corrupted. again i want to install windows xp but it is not installing. will i format my linux partition or some other option is there. please help me... (0 Replies)
Discussion started by: praneshmishra08
0 Replies

6. Linux

how to create new partition in Linux

i want to create on directory called /data under "/ " . but when i m using mkdir /data it is telling permission denied. could any one tell me how to do it ? (1 Reply)
Discussion started by: useless79
1 Replies

7. UNIX Desktop Questions & Answers

mandrake/ linux partition

okay... I want to learn linux, i have some books, but im one of those types who would rather get my hands dirty then read a textbook. dont get me wrong, i will spend some time reading. I really want to install mandrake first, but because i have no experience with Linux or unix, i think im... (2 Replies)
Discussion started by: jestra
2 Replies

8. UNIX for Advanced & Expert Users

Copying a Linux distro from one partition to the other...

Hola. Here is how my partition table looks: Device Boot Start End Blocks Id System /dev/hde1 1 1689 13566861 7 HPFS/NTFS /dev/hde2 * 1690 2783 8787555 83 Linux /dev/hde3 2784 2813 240975 82 Linux swap /dev/hde4 ... (5 Replies)
Discussion started by: Mr_Proper
5 Replies

9. UNIX for Dummies Questions & Answers

Making a UFS Partition w/ Linux

Well, the subject speaks for itself; how does one go about making a UFS partition in a Linux environment? I don't recall seeing it as an option in my version of fdisk (I'll have to check again when I go home :( ) (6 Replies)
Discussion started by: Karma
6 Replies

10. UNIX for Dummies Questions & Answers

Linux Swap Partition

How big do I set the swap partition when i'm setting up my hard drive to install RedHat. (Using Partition Magic) thanks! primal (2 Replies)
Discussion started by: primal
2 Replies
Login or Register to Ask a Question
FINDFS(8)						       System Administration							 FINDFS(8)

NAME
findfs - find a filesystem by label or UUID SYNOPSIS
findfs NAME=value DESCRIPTION
findfs will search the block devices in the system looking for a filesystem or partition with specified tag. The currently supported tags are: LABEL=<label> Specifies filesystem label. UUID=<uuid> Specifies filesystem UUID. PARTUUID=<uuid> Specifies partition UUID. This partition identifier is supported for example for GUID Partition Table (GPT) partition tables. PARTLABEL=<label> Specifies partition label (name). The partition labels are supported for example for GUID Partition Table (GPT) or MAC partition tables. If the filesystem or partition is found, the device name will be printed on stdout. The complete overview about filesystems and partitions you can get for example by lsblk --fs partx --show <disk> blkid EXIT STATUS
0 success 1 label or uuid cannot be found 2 usage error, wrong number of arguments or unknown option AUTHOR
findfs was originally written by Theodore Ts'o <tytso@mit.edu> and re-written for the util-linux package by Karel Zak <kzak@redhat.com>. ENVIRONMENT
LIBBLKID_DEBUG=all enables libblkid debug output. SEE ALSO
blkid(8), lsblk(8), partx(8) AVAILABILITY
The findfs command is part of the util-linux package and is available from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils /util-linux/>. util-linux March 2014 FINDFS(8)