Re: Resizing partitions..
- To: Users Debian <debian-user@lists.debian.org>
- Subject: Re: Resizing partitions..
- From: Andrew Biggadike <abiggadike@triad.rr.com>
- Date: 01 Jul 2002 07:55:49 -0400
- Message-id: <[🔎] 1025524549.392.27.camel@zagros>
- In-reply-to: <1025369759.5985.37.camel@Thief>
- References: <1025150503.406.15.camel@zagros> <3D1A9BBC.5020609@techhouse.org> <1025175186.406.25.camel@zagros> <20020627232843.09dc9389.csousa@tvtel.pt> <1025228274.406.42.camel@zagros> <1025282794.11879.10.camel@Thief> <1025313366.406.56.camel@zagros> <1025316067.381.14.camel@Thief> <1025354733.1123.22.camel@zagros> <1025369759.5985.37.camel@Thief>
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: