[lkml]   [1999]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Ext2 defragmentation
Theodore Y. Ts'o wrote:
> Date: Wed, 17 Nov 1999 07:45:32 -0500
> From: TenThumbs <>
> > 8 meg block groups imply you're using 1k blocks. 32 meg block groups
> > imply you're using 4k blocks. E2fsprogs 1.18 automatically creates
> > filesystems with 4k blocks when making large filesystems, but most folks
> > have filesystems created with earlier versions of e2fsprogs which used
> > 1k blocks by default, and so there are many filesystems using 1k block
> > sizes out there. That's why I said 8 megs or 32 megs.....
> >
> Doesn't this change in e2fsprogs make it harder to recover data from
> a corrupt fs since there's no obvious way to know where to look for
> backup superblocks.
> Yes, there is that downside.

Huh? Isn't there a backup superblock always at block 131072? (Unless the
disk is smaller than 128M).

On the other hand, if the superblock is hosed, it's quite unlikely
that the "root dir" and other stuff near the beginning of the disk are
in good enough shape to recover the filesystem without "expert"
(human) help.

Oh, and let me say in public again:

1k blocks -> 8k blocks/group -> 8M groups
2k blocks -> 16k blocks/group -> 32M groups
4k blocks -> 32k blocks/group -> 128M groups

(That's why it REALLY helps in the "delete speed" and "fsck speed" to
have larger blocks.)


** ** ** +31-15-2137555 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
"I didn't say it was your fault. I said I was going to blame it on you."

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:55    [W:0.148 / U:0.232 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site