[ale] Ubuntu Linux Defrag EXT4
Paul Cartwright
ale at pcartwright.com
Mon Sep 13 06:53:30 EDT 2010
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...
--
Paul Cartwright
Registered Linux user # 367800
Registered Ubuntu User #12459
http://usdebtclock.org/
More information about the Ale
mailing list