[ale] Ubuntu Linux Defrag EXT4
Richard Faulkner
rfaulkner at 34thprs.org
Mon Sep 13 09:10:24 EDT 2010
Okay...and for those who are new to the GNU world (on this level)...me
for one...
Paul: You're doing a defrag operation on a mounted drive? I've done
this a billion times I swear on M$ but not Linux (don't feel a need to).
Am I correct in thinking that to do an actual defrag on Linux you need
to unmount the drive in question and do the operation from a bootable
disc? Am I reading this correctly that your doing a disk fragmentation
check on a mounted drive and it "no-likey" that because it is mounted?
I'm headed out-of-town for a day so won't be checking the thread until
my return...this is getting interesting! (As things often do around
here -- In a good way!) : )
Cya'll when I get back! --Rich in Lilburn
-----Original Message-----
From: Paul Cartwright <ale at pcartwright.com>
Reply-to: Atlanta Linux Enthusiasts - Yes! We run Linux! <ale at ale.org>
To: Atlanta Linux Enthusiasts - Yes! We run Linux! <ale at ale.org>
Subject: Re: [ale] Ubuntu Linux Defrag EXT4
Date: Mon, 13 Sep 2010 06:53:30 -0400
On Sun September 12 2010, Ed Cashin wrote:
> I found out recently that you can see exactly what's fragmentated
> with one command.
>
> e2fsck -n -E fragcheck {device}
>
> I believe it works on ext4, but I haven't tried it.
YIPES! works on ext3!
I good good news & bad news..
mount
/dev/sda6 on / type ext3 (rw,usrquota,grpquota,errors=remount-ro)
/dev/sda7 on /home type ext3 (rw)
#e2fsck -n -E fragcheck /dev/sda7
e2fsck 1.41.11 (14-Mar-2010)
Warning! /dev/sda7 is mounted.
Warning: skipping journal recovery because doing a read-only filesystem check.
/dev/sda7: clean, 274376/21872640 files, 30881155/43722897 blocks
# e2fsck -n -E fragcheck /dev/sda6
e2fsck 1.41.11 (14-Mar-2010)
Warning! /dev/sda7 is mounted.
Warning: skipping journal recovery because doing a read-only filesystem check.
/dev/sda7: clean, 274376/21872640 files, 30881155/43722897 blocks
(SKIP LOTS of lines...)
Free blocks count wrong (1395294, counted=1395257).
Fix? no
Inode bitmap
differences: -98843 -771568 -902896 -(902899--902900) -902965 -904492 -(904551--904555) -(904557--904558) -922016 -922018 -925348 -(925354--925355) -952787 -968546 -968973 -968975 -(969647--969648) -(969650--969651) -1625307 -1625323 -1625553 -1626351 -1626358 -1626361 -1626409 -1855116 -1855359 -1856395 -2019692 -2021651 -2216788 -2217096 -2217264 -2217294 -2217495 -2217572 -2217736 -2217803 -2217897 -2218290 -2218474 -2218500 -2282147 -2287055 -2299185 -2299205
Fix? no
Free inodes count wrong for group #55 (8466, counted=8464).
Fix? no
Free inodes count wrong for group #56 (10358, counted=10359).
Fix? no
Directories count wrong for group #58 (39, counted=38).
Fix? no
/dev/sda6: ********** WARNING: Filesystem still has errors **********
/dev/sda6: 521067/2626560 files (6.7% non-contiguous), 3847586/5242880 blocks
## uptime
06:52:41 up 28 days, 44 min, 7 users, load average: 0.03, 0.24, 0.27
so, after you do the fsck fragcheck... and it fails...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20100913/c1b33997/attachment.html
More information about the Ale
mailing list