Bug#291234: [Parted-maintainers] Bug#291234: parted: No Implementation: This ext2 filesystem has a rather strange layout! Parted No Implementation: This ext2 filesystem has a rather strange layout!

Sven Luther Sven Luther <sven.luther@wanadoo.fr>, 291234@bugs.debian.org
Thu, 20 Jan 2005 17:52:24 +0100


On Thu, Jan 20, 2005 at 04:48:36PM +0100, Joel Soete wrote:
> >
> > On Thu, Jan 20, 2005 at 11:30:42AM +0000, paddy wrote:
> > > What you can do as a workaround is use the relevant tool to remove
> > > the ext3 features that parted doesn't like, resize, and then add them
> > > back in.
> >
> > Bah, this is hacky, i would just use resize2fs directly in this case, and
> > anyway, i think this problem also applies to newer ext2 partitions.
> >
> mmm
> 
> I tried also but far from being an expert of fdisk at one moment I made enough
> mistake to reach to broken my fs :-(
> (... :-) I had a fresh backup so don't have any pb to recover data)

For ext2/3, resize2fs works fine. i used it extensively to install all those
300 pegasos machines we sent out.

> I had an additional remark:
> to use this disk as a new boot disk (a mirror) for my hppa box I need at
> least
> a (small) /boot fs standing in the first 2Gb of the disk
> I have so to move my original data slice. Unfortunately, the best I can do
> is to reduce the size of my fs to 20Gb (on a disk of 36Gb). So I will never
> have any opportunity to copy it at another place on the same disk (the only
> other available disk being of only 9Gb) to mimic the move.

apt-get install partimage and partimage-server. partimage can be used to
backup (and compress) a existing disk image to either a local disk or a
networked partimage server. Works both way. I would create a boot initrd
including it, and then boot into the initrd, mount your backup partition, (in
the last 16GB), partimage the first partition to it, delete the partition,
recreate the partition and /boot, partimage it back, reboot.

Friendly,

Sven Luther