[done] Move a partition with xfs

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
damNageHack
Posts: 663
Joined: 24. Sep 2009, 17:07

[done] Move a partition with xfs

Post 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?
Last edited by damNageHack on 25. Jan 2010, 10:59, edited 1 time in total.
Image
This is the oppinion of the author, it does not force you to share and is signed automatically.
You are free to keep them all errors for your own. Linux is the best game I ever played.
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Move a partition with xfs

Post 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.
Image
User avatar
gapan
Salix Wizard
Posts: 6361
Joined: 6. Jun 2009, 17:40

Re: Move a partition with xfs

Post by gapan »

It's impossible to shrink xfs partitions, it's not supported.
Image
Image
User avatar
damNageHack
Posts: 663
Joined: 24. Sep 2009, 17:07

Re: Move a partition with xfs

Post 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 :lol:

But it is good to know here, anyway. Thanks.
Image
This is the oppinion of the author, it does not force you to share and is signed automatically.
You are free to keep them all errors for your own. Linux is the best game I ever played.
User avatar
gapan
Salix Wizard
Posts: 6361
Joined: 6. Jun 2009, 17:40

Re: Move a partition with xfs

Post 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.
Image
Image
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Move a partition with xfs

Post 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. :D
Image
User avatar
gapan
Salix Wizard
Posts: 6361
Joined: 6. Jun 2009, 17:40

Re: Move a partition with xfs

Post 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. :D
That's not converting. Cheater. :P
Image
Image
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Move a partition with xfs

Post 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. :D
That's not converting. Cheater. :P
I expected you'd say this. :P
Image
User avatar
damNageHack
Posts: 663
Joined: 24. Sep 2009, 17:07

Re: Move a partition with xfs

Post 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).
Image
This is the oppinion of the author, it does not force you to share and is signed automatically.
You are free to keep them all errors for your own. Linux is the best game I ever played.
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Move a partition with xfs

Post 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.
Last edited by Shador on 23. Jan 2010, 21:11, edited 1 time in total.
Image
Post Reply