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!
On Thu, Jan 20, 2005 at 04:48:36PM +0100, Joel Soete wrote: > > > > On Thu, Jan 20, 2005 at 11:30:42AM +, 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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
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!
> > On Thu, Jan 20, 2005 at 11:30:42AM +, 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) 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. hth, Joel --- Tiscali solde! 1 mois et activation Gratuits, modem à 9,99 http://reg.tiscali.be/adsl/default.asp?lg=FR
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!
On Thu, Jan 20, 2005 at 11:30:42AM +, 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. Friendly, Sven Luther -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
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!
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 3688557 83865605 Extended > /dev/sda5 3681953 1624048 83 Linux > /dev/sda619542197 249840 83 Linux > /dev/sda721982319 124912 83 Linux > /dev/sda823202441 124912 83 Linux > /dev/sda924424394 1999856 83 Linux > /dev/sda10 43956347 1999856 83 Linux > /dev/sda11 63488300 1999856 83 Linux > /dev/sda12 83018557 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 3473235565552 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 3688557 83865605 Extended > /dev/sdb5 3681953 1624048 83 Linux > /dev/sdb619542197 249840 83 Linux > /dev/sdb721982319 124912 83 Linux > /dev/sdb823202441 124912 83 Linux > /dev/sdb924424394 1999856 83 Linux > /dev/sdb10 43956347 1999856 83 Linux > /dev/sdb11 63488300 1999856 83 Linux > /dev/sdb12 8301 3473235565552 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 > MinorStart 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 >