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!

paddy paddy <paddy@panici.net>, 291234@bugs.debian.org
Thu, 20 Jan 2005 11:30:42 +0000


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.

Off the top of my head,=20
	debugfs (use 'help' and 'features').
	??? doesn't like journal or hashed directory indexes

Sorry I don't recall the exact specifics, I recommend you check the
details before you do anything (and don't forget that backup !)

The exact details are surprisingly hard to google up quickly, although
I expect they feature prominently in a HOWTO or FAQ somewhere.  Simply
improving the error message would be a huge step: google turns up large
numbers of people stumped by this error message.

Regards,
Paddy

On Wed, Jan 19, 2005 at 03:47:11PM +0100, Joel Soete wrote:
> Package: parted
> Version: 1.6.11-9
> Severity: normal
>=20
> Hello all,
>=20
> I am running a debian  unstable' (today updated) with a developement ke=
rnel
> 2.6.11-rc1-pa3 on hppa box (b2000).
> This system own 2 Disk: one boot disk of 9gb and a 'data' disk of 36Gb.
>=20
> the boot disk sda has the following slicing schema (cfdisk):
> Disk /dev/sda: 9100 MB, 9100044288 bytes
> 64 heads, 32 sectors/track, 8678 cylinders
> Units =3D cylinders of 2048 * 512 =3D 1048576 bytes
>=20
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sda1               1          61       62448   f0  Linux/PA-RISC b=
oot
> /dev/sda2              62         306      250880   82  Linux swap / So=
laris
> /dev/sda3             307         367       62464   83  Linux
> /dev/sda4             368        8557     8386560    5  Extended
> /dev/sda5             368        1953     1624048   83  Linux
> /dev/sda6            1954        2197      249840   83  Linux
> /dev/sda7            2198        2319      124912   83  Linux
> /dev/sda8            2320        2441      124912   83  Linux
> /dev/sda9            2442        4394     1999856   83  Linux
> /dev/sda10           4395        6347     1999856   83  Linux
> /dev/sda11           6348        8300     1999856   83  Linux
> /dev/sda12           8301        8557      263152   83  Linux
>=20
> And the second disk:
> Disk /dev/sdb: 36.4 GB, 36420075520 bytes
> 64 heads, 32 sectors/track, 34732 cylinders
> Units =3D cylinders of 2048 * 512 =3D 1048576 bytes
>=20
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sdb1               1       34732    35565552   83  Linux
>=20
> As I don't need any more to have the full disk for a data slice on this=
 disk,
> I would like to use parted to re-partition as:
> /dev/sdb1               1          61       62448   f0  Linux/PA-RISC b=
oot
> /dev/sdb2              62         306      250880   82  Linux swap / So=
laris
> /dev/sdb3             307         367       62464   83  Linux
> /dev/sdb4             368        8557     8386560    5  Extended
> /dev/sdb5             368        1953     1624048   83  Linux
> /dev/sdb6            1954        2197      249840   83  Linux
> /dev/sdb7            2198        2319      124912   83  Linux
> /dev/sdb8            2320        2441      124912   83  Linux
> /dev/sdb9            2442        4394     1999856   83  Linux
> /dev/sdb10           4395        6347     1999856   83  Linux
> /dev/sdb11           6348        8300     1999856   83  Linux
> /dev/sdb12           8301       34732    35565552   83  Linux
>=20
> (for mirroring with raid1)
>=20
> (in summary:
> parted
> resize 1 0.016 26432.000 (i.e. 34732 - 8300)
> move 1 0.016 8300.000
>=20
> then create sdb[1..11] )
>=20
> but when I asked 'parted' to check the disk slice 1:
> # ./parted/parted /dev/sdb
> [...]
> Using /dev/sdb
> (parted) p                                                             =
=20
>=20
> Disk geometry for /dev/sdb: 0.000-34732.890 megabytes
> Disk label type: msdos
> Minor    Start       End     Type      Filesystem  Flags
> 1          0.016  34732.000  primary   ext3
> (parted) check 1                                                       =
=20
>=20
> No Implementation: This ext2 filesystem has a rather strange layout!  P=
arted
> can't resize this (yet).
>=20
> So am I not very confident to go ahead ;-)
>=20
> As sudgested on gnu site I grab the last 1.6.21 release which I build
> # ../configure --prefix=3D/usr --sbindir=3D/sbin --mandir=3D\${prefix}/=
share/man
> --infodir=3D\${prefix}/share/info --enable-mtrace --disable-shared  --b=
uild=3Dhppa-linux
> --host=3Dhppa-linux
> (as debian debug pkg would do?)
>=20
> but the pb is the same:
> # ./parted/parted /dev/sdb
>=20
> GNU Parted 1.6.21
> Copyright (C) 1998 - 2004 Free Software Foundation, Inc.
> This program is free software, covered by the GNU General Public Licens=
e.
>=20
> This program is distributed in the hope that it will be useful, but WIT=
HOUT
> ANY WARRANTY; without even the implied warranty of
> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Gener=
al
> Public License for more details.
>=20
> Using /dev/sdb
> (parted) p                                                             =
=20
>=20
> Disk geometry for /dev/sdb: 0.000-34732.890 megabytes
> Disk label type: msdos
> Minor    Start       End     Type      Filesystem  Flags
> 1          0.016  34732.000  primary   ext3
> (parted) check 1                                                       =
=20
>=20
> No Implementation: This ext2 filesystem has a rather strange layout!  P=
arted
> can't resize this (yet).
>=20
> OTC with the other disk no pb:
> # parted /dev/sda
> Warning: Unable to determine if partitions are mounted via /proc/mounts=
 or
> /etc/mtab.  Make sure you don't attempt to resize or
> modify mounted file systems.  (Even read-only mounted)
> Ignore/Cancel? i                                                       =
=20
>=20
> GNU Parted 1.6.11 with HFS shrink patch 12.5
> Copyright (C) 1998 - 2004 Free Software Foundation, Inc.
> This program is free software, covered by the GNU General Public Licens=
e.
>=20
> This program is distributed in the hope that it will be useful, but WIT=
HOUT
> ANY WARRANTY; without even the implied warranty of
> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Gener=
al
> Public License for more details.
>=20
> Using /dev/sda
> (parted) check 11                                                      =
=20
>=20
> Information: The ext2 filesystem passed a basic check.  For a more comp=
rehensive
> check, use the e2fsck program.
>=20
> Thanks in advance for your attention,
>     Joel
>=20
>=20
> -----------------------------------------------------------------------=
----
> Tiscali solde! 1 mois et activation Gratuits, modem =E0 9,99=80
> http://reg.tiscali.be/adsl/default.asp?lg=3DFR
>=20
>=20
>=20
>=20
>=20
> _______________________________________________
> Parted-maintainers mailing list
> Parted-maintainers@lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/parted-maintainers

--=20
Perl 6 will give you the big knob. -- Larry Wall