[TriLUG] help resizing an ext2 filesystem

Kevin - The Alchemist - Sonney alchemist at darkcanvas.com
Mon Oct 1 19:43:02 EDT 2001


On Mon, Oct 01, 2001 at 05:14:55PM -0400, Donald Ball spoke thusly:
> hey guys, i'm trying to resize an ext2 filesystem and i need some help
> first. i'm trying to draw out the plan on paper before i actually do any
> changes since i don't have a backup device handy.

Smarter than me. *grin* 

> 1. fdisk reports that:
*snip*
> but df -k reports:
*snip*
> why the disagreement in the size of the filesystems? i'm confused.

Bytes vs KBytes and rounding. I notice similar things with Windows explorer. 

> 2. my plan is to resize hda6 down so that i can create a nicely sized hda7
> and move the data from hda6 that i want to retain onto hda7. then i would
> like to nuke the rest of the drive and construct something like this:
*snip*
> is this a sane approach?

Probably. 

> 3. in doing this, i will need to destroy my current hda2 extended
> partition and create a new hda4 extended partition with a different start
> cylinder. is this going to cause problems for the hda7 partition that will
> have lived under hda2, so long as i remember the start and end cylinders
> and don't reformat that partition?

Honestly, I would worry that it's going to be broken. When you destroy
the hda2 extended partition, hda7 goes away, and I don't think the
voodoo you plan on trying will keep it there. I might be wrong, but if
it isn't, it might ne worth scp'ing a tar of the directory/partition
up to a fileserver with enough space for it. Because I know from
personal experience that if it's gone, it's *GONE* if you don't ahve a
abckup, y'know?

-- 
--------------------------------------------
--      Kevin "The Alchemist" Sonney      --
--  New email : alchemist at darkcanvas.com  --
--  http://www.darkcanvas.com/~alchemist  --
--  ICQ: 4855069            AIM: ksonney  --
--------------------------------------------

"If you'll read the subtext for many of those old strips, you'll find
the heart of an old-fashioned Libertarian. And I'd be a Libertarian,
if they weren't all a bunch of tax-dodging professional whiners."
  -- Berkley Breathed, 2001



More information about the TriLUG mailing list