Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I can't find a way to move the partition /dev/sdb2 to the end, where 12GB are free.

enter image description here

I can resize (expand) the partition, but not create (insert) any free space in front of it.

How to do the trick?

(There are 2 small black arrows on the top of the popup window in the screenshot at the side of the blue box that represents the 400 GB sdb2 - I can only move the right arrow to the right, which extends the size, but I cannot move the left arrow. When I enter something in the free space preceding box it is always reset to zero by the programm immediateley)

I hope I explained this well enough, please feel free to ask for details.

This is serious for me as I am expanding a live image.

Maybe there is another solution with linux commandline tools ?

share|improve this question

migrated from serverfault.com Jan 25 '10 at 17:30

This question came from our site for professional system and network administrators.

2 Answers 2

I found out how to move the 400MB swap partition.

The swap partition is within a 400mB extended partition

1) Extend the size of the 400 MB extended partition so that it takes the whole space until the end of the disk.

2) Move the 400MB swap partition to the end of the now very big extended partition.

3) Resize the extended partition so that it is only 400MB again by sliding the left arrow which is now free to move.

The reason for my problem was that I wanted to move the extended partition and the swap partition that was within it at the same time, but it has to be done in the steps described here.

share|improve this answer
3  
Yep. Don't know why there can't be a single command which does these steps sequentially for you to create a true move. –  demongolem Aug 1 '12 at 13:28
    
You are right @demongolem, I don't know why... I had to Google because even if GParted is a great tool, but things like that are not very intuitive, at least not for me. –  Rubens Mariuzzo Oct 30 '13 at 16:44

Have you looked at parted? It has a move command.

share|improve this answer
    
Thank you. I am accepting this as it answers part of my question. Good to know that there is a cli tool for this. –  Anonymous Jan 23 '10 at 19:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.