Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a LUKS partition (sdb2) on a drive which previously contained another Partition (sdb1). Now that I deleted sdb1, I want sdb2 to use this space, too.

All tutorials I could find seem to depend on LVM but I have no LVM setup. Resizing a partition by moving its end sector instead of the start sector also seems easier but this is not the case here.

Any suggestions on how to accomplish this without moving the data and creating the partition from scratch?

share|improve this question
I don't know that the tool you are looking for exists. You'ld need to either dd to a second drive and dd back at the start of your desired partition or copy sector by sector from start old to start new...and if it failed, it would fail badly. – RobotHumans Dec 29 '12 at 15:35
up vote 2 down vote accepted

Safe way:

Back up everything somewhere, then copy data back in the way you want (like the comment suggest).

Tricky way:

Move your LUKS partition left, then reisize it "in the correct direction".

Wise way:

Go back in time and set up LVM to avoid such problems.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.