Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
1  
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. –  hbdgaf Dec 29 '12 at 15:35
add comment

1 Answer 1

up vote 1 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
add comment

Your Answer

 
discard

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.