Page 1 of 2
[done] Move a partition with xfs
Posted: 23. Jan 2010, 16:27
by damNageHack
I accidently created a partition, now I can't add any new ones behind cause of partition table structure.
Tried to move the (primary) partition to the end of the disk, but parted seems to not support xfs. Is there a trick or workaround available?
How can i convert a primary partition to a logical one?
Re: Move a partition with xfs
Posted: 23. Jan 2010, 17:23
by Shador
You need some additional software to make gparted support all kind of partitions. There's somewhere a menu where you can exactly look up that support (I don't remember the exact name though).
For xfs you need xfsprogs or similar. I couldn't shrink xfs though.
Re: Move a partition with xfs
Posted: 23. Jan 2010, 18:31
by gapan
It's impossible to shrink xfs partitions, it's not supported.
Re: Move a partition with xfs
Posted: 23. Jan 2010, 19:35
by damNageHack
Shador wrote:For xfs you need xfsprogs or similar. I couldn't shrink xfs though.
gapan wrote:It's impossible to shrink xfs partitions, it's not supported.
That was not my question at all.

You should come back to topic
But it is good to know here, anyway. Thanks.
Re: Move a partition with xfs
Posted: 23. Jan 2010, 19:43
by gapan
It is if your moving involves shrinking.
The answer to:
damNageHack wrote:How can i convert a primary partition to a logical one?
is you can't.
Re: Move a partition with xfs
Posted: 23. Jan 2010, 19:56
by Shador
gapan wrote:damNageHack wrote:How can i convert a primary partition to a logical one?
is you can't.
I'm quite sure I did so already. I think, I had a primary partition free to create an extended one and moved a primary one into that extended one.

Re: Move a partition with xfs
Posted: 23. Jan 2010, 20:16
by gapan
Shador wrote:I'm quite sure I did so already. I think, I had a primary partition free to create an extended one and moved a primary one into that extended one.

That's not converting. Cheater.

Re: Move a partition with xfs
Posted: 23. Jan 2010, 20:26
by Shador
gapan wrote:Shador wrote:I'm quite sure I did so already. I think, I had a primary partition free to create an extended one and moved a primary one into that extended one.

That's not converting. Cheater.

I expected you'd say this.

Re: Move a partition with xfs
Posted: 23. Jan 2010, 21:07
by damNageHack
I see no problem with increasing and shrinking of partitions.
Therefore I create a new partition, mount both partitions, old and new, and did
cp -a old/* new/
. That is all and completely independent from both used filesystems.
My problem is that I can not use the remaining free space of the disk cause there are already four partitions in the table (2x primary, 1x logical, 1x primary, in that order).
Re: Move a partition with xfs
Posted: 23. Jan 2010, 21:09
by Shador
damNageHack wrote:I see no problem with increasing and shrinking of partitions.
Therefore I create a new partition, mount both partitions, old and new, and did
cp -a old/* new/
. That is all and completely independent from both used filesystems.
Yes, of course, that's a solution, but it's undesirable for bigger partitions as it requires copying all data first. shrinking would just have to shrink the partition and if necessary move some blocks.
damNageHack wrote:My problem is that I can not use the remaining free space of the disk cause there are already four partitions in the table (2x primary, 1x logical, 1x primary, in that order).
Can you post fdisk output instead of some list that doesn't tell which actual physical order lays behind your layout.