[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Resizing partitions..



On Sat, 2002-06-29 at 12:55, Alex Malinovich wrote:
> Yup. That's entirely true. The beginning of a ext2 partition MUST stay
> fixed for a RESIZE operation. A MOVE operation, on the other hand, is a
> completely different issue. :) Just move the partition down and then
> resize it up instead of the other way around.

Okay, I resized hda1 and then, from the boot disks, moved hda2 down to
the new end of hda1.  No problems with that.  But now when I try to move
my hda3 down to the end of hda2 I receive the following error:

Error: Can't move a partition onto itself.  Try using resize, perhaps?

The way I'm thinking now, because the move of hda2 went okay and this
one is giving me an error, it seems as if parted wants a chunk of unused
space at least the size of hda3 to move it into - almost like a cp then
rm.  From my understanding, this is not how it's supposed to work, and
what I'm trying to do should be legal.  Am I missing something? Ideas?

I've looked at the bug-parted list archives as well as some google
searches, but I haven't found anything out there on that error message,
and everything I've read indicates that this is possible.  Thanks,
Andrew

This is sort of how it went:

# parted /dev/hda
(parted) print

Minor	Start		End		Type	Filesystem	Flags
1	0.031		16080.688	primary	  FAT		boot,lba
2	16080.688	16127.753	primary	  ext2
3	16127.754	18567.312	primary	  ext2
4	18567.312	19077.187	extended		lba
5	18567.343	19077.187	logical	  linux swap
(parted) resize 1 0.031 14880

--was successful, now rebooted to boot disks--

(parted) print

Minor	Start		End		Type	Filesystem	Flags
1	0.031		14880.520	primary	  FAT		boot,lba
2	16080.688	16127.753	primary	  ext2
3	16127.754	18567.312	primary	  ext2
4	18567.312	19077.187	extended		lba
5	18567.343	19077.187	logical	  linux swap
(parted) move 2 14880.521 14927.585
(parted) print

Minor	Start		End		Type	Filesystem	Flags
1	0.031		14880.520	primary	  FAT		boot,lba
2	14880.520	14927.585	primary	  ext2
3	16127.754	18567.312	primary	  ext2
4	18567.312	19077.187	extended		lba
5	18567.343	19077.187	logical	  linux swap
(parted) move 3 14927.586 17367.144
Error: Can't move a partition onto itself, Try using resize, perhaps?

--actually, first I tried it without the end argument and it asked me
for it.  I was surprised b/c it says that it is optional and defaults to
keeping the current size.--


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: