<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.28.3">
</HEAD>
<BODY>
Okay...and for those who are new to the GNU world (on this level)...me for one...<BR>
<BR>
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?<BR>
<BR>
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!) : )<BR>
<BR>
Cya'll when I get back! --Rich in Lilburn<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
<B>From</B>: Paul Cartwright <<A HREF="mailto:Paul%20Cartwright%20%3cale@pcartwright.com%3e">ale@pcartwright.com</A>><BR>
<B>Reply-to</B>: Atlanta Linux Enthusiasts - Yes! We run Linux! <ale@ale.org><BR>
<B>To</B>: Atlanta Linux Enthusiasts - Yes! We run Linux! <<A HREF="mailto:Atlanta%20Linux%20Enthusiasts%20-%20Yes!%20We%20run%20Linux!%20%3cale@ale.org%3e">ale@ale.org</A>><BR>
<B>Subject</B>: Re: [ale] Ubuntu Linux Defrag EXT4<BR>
<B>Date</B>: Mon, 13 Sep 2010 06:53:30 -0400<BR>
<BR>
<PRE>
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...
</PRE>
<BR>
</BODY>
</HTML>