1

I have a problem. When I install Ubuntu, I make only one partition and encrypt this partition. Now I want to make second partition with different file type. How I can "decrypt" partition or... take 100GB from existing 500GB partiotion.

P.S. I already tried from "boot cd" but gparded have problem with encrypted partition.

How I can:

a) Make second partition from "live system".

b) Take encryption off, so gparted from "live cd" can do the work??

zchpit
  • 133
  • 1
    There is no way to do this. Backup your data, music, photos, and videos. Reformat your hard drive and start from the beginning. – user68186 Feb 04 '15 at 19:14
  • There is no other way, to resize encrypted disk other than format hard drive? :( – zchpit Feb 05 '15 at 14:20
  • I will be happy if someone tells me, I am wrong. But, as far as I know, it can't be done. – user68186 Feb 05 '15 at 14:58
  • There are ways to enlarge a partition, but shrinking I'm not so sure, should be possible for ext filesystems... You might be able to use a live dvd/usb and "decrypt" the encrypted drive/partition (cryptsetup luksOpen), then shrink the ext3 filesystem (probably removing the journal & using resize2fs), but then you'd have to shrink the LUKS "container", and I don't know how to do that... – Xen2050 Feb 06 '15 at 15:56
  • @Xen2050: too complex and error-prone... See answer below. – Fabby Feb 08 '15 at 12:35
  • I don't had time, so... I made backup and restore :) – zchpit Feb 09 '15 at 08:53

1 Answers1

2

"Great security comes with great responsibility"... ;-)

The conclusion of @user68186 is correct: backup everything and recreate. I would back up everything twice: one system back-up using CloneZilla disk-to-image (will be encrypted as well) and one file backup (please do that one unencrypted to avoid more trouble later on, use your current back-up program.) of the following directories:

bin        Videos     Desktop    Pictures                 
Documents  Music      Public     Downloads  Templates

Read this Q&A on the strategy to use. You’re definitely user type 4!

Fabby
  • 34,259