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, 
        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
> 
> Hello all,
> 
> I am running a debian  unstable' (today updated) with a developement kernel
> 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.
> 
> 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 = cylinders of 2048 * 512 = 1048576 bytes
> 
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sda1               1          61       62448   f0  Linux/PA-RISC boot
> /dev/sda2              62         306      250880   82  Linux swap / Solaris
> /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
> 
> And the second disk:
> Disk /dev/sdb: 36.4 GB, 36420075520 bytes
> 64 heads, 32 sectors/track, 34732 cylinders
> Units = cylinders of 2048 * 512 = 1048576 bytes
> 
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sdb1               1       34732    35565552   83  Linux
> 
> 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 boot
> /dev/sdb2              62         306      250880   82  Linux swap / Solaris
> /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
> 
> (for mirroring with raid1)
> 
> (in summary:
> parted
> resize 1 0.016 26432.000 (i.e. 34732 - 8300)
> move 1 0.016 8300.000
> 
> then create sdb[1..11] )
> 
> but when I asked 'parted' to check the disk slice 1:
> # ./parted/parted /dev/sdb
> [...]
> Using /dev/sdb
> (parted) p                                                              
> 
> 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                                                        
> 
> No Implementation: This ext2 filesystem has a rather strange layout!  Parted
> can't resize this (yet).
> 
> So am I not very confident to go ahead ;-)
> 
> As sudgested on gnu site I grab the last 1.6.21 release which I build
> # ../configure --prefix=/usr --sbindir=/sbin --mandir=\${prefix}/share/man
> --infodir=\${prefix}/share/info --enable-mtrace --disable-shared  
> --build=hppa-linux
> --host=hppa-linux
> (as debian debug pkg would do?)
> 
> but the pb is the same:
> # ./parted/parted /dev/sdb
> 
> GNU Parted 1.6.21
> Copyright (C) 1998 - 2004 Free Software Foundation, Inc.
> This program is free software, covered by the GNU General Public License.
> 
> This program is distributed in the hope that it will be useful, but WITHOUT
> ANY WARRANTY; without even the implied warranty of
> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
> Public License for more details.
> 
> Using /dev/sdb
> (parted) p                                                              
> 
> 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                                                        
> 
> No Implementation: This ext2 filesystem has a rather strange layout!  Parted
> can't resize this (yet).
> 
> 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                                                        
> 
> 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 License.
> 
> This program is distributed in the hope that it will be useful, but WITHOUT
> ANY WARRANTY; without even the implied warranty of
> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
> Public License for more details.
> 
> Using /dev/sda
> (parted) check 11                                                       
> 
> Information: The ext2 filesystem passed a basic check.  For a more 
> comprehensive
> check, use the e2fsck program.
> 
> Thanks in advance for your attention,
>     Joel
> 
> 
> ---------------------------------------------------------------------------
> Tiscali solde! 1 mois et activation Gratuits, modem à 9,99€
> http://reg.tiscali.be/adsl/default.asp?lg=FR
> 
> 
> 
> 
> 
> _______________________________________________
> Parted-maintainers mailing list
> [EMAIL PROTECTED]
> http://lists.alioth.debian.org/mailman/listinfo/parted-maintainers

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

Reply via email to