-2

I'm having an existing manjaro linux installation and my root file system is not encrypted. How do i encrypt my file system without reinstall or lossing any data. Is it possible to copy root file system to another encrypted drive using live cd then make that as my root file system. Can anyone guide me on this.

/dev/sda1 is my root file system which is of size 80gb /dev/sda2 is my swap which is of size 4GB

Vipin
  • 938
  • 5
  • 18
  • 36
  • Stack Overflow is a site for programming and development questions. This question appears to be off-topic because it is not about programming or development. See [What topics can I ask about here](http://stackoverflow.com/help/on-topic) in the Help Center. Perhaps [Super User](http://superuser.com/) or [Unix & Linux Stack Exchange](http://unix.stackexchange.com/) would be a better place to ask. – jww May 13 '18 at 16:01
  • I did not know that thanks for the suggestion – Vipin May 13 '18 at 16:12

1 Answers1

0

superuser.com is more relevant for this kind of questions.

Check out this answer, which uses cryptsetup-reencrypt to do an offline in-place encryption of a block device, e.g. a partition.

If that doesn't suit you, you can also create an encrypted partition and copy files using rsync -a /old /new.

gileri
  • 662
  • 8
  • 16