Re: encrypting /home partition post-install

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 30 Nov 2015 21:59:35 +0100 Roberto Ragusa <mail@xxxxxxxxxxxxxxxx> wrote:

> On 11/30/2015 08:44 PM, Gordon Messmer wrote:
> > On 11/30/2015 03:44 AM, Roberto Ragusa wrote:
> >> This thread is about someone wanting to encrypt an existing
> >> system: LVM makes it possible to do this, without a reboot,
> >> without unmounting.
> > 
> > As far as I'm aware, no it doesn't.
> 
> It does.
> 
> Suppose you have your LVs (/, /home, /var,
> whatever partitioning scheme you have) on a single
> VG on a single PV (e.g. /dev/sda2).
> 
> You can encrypt the system without even rebooting.
> 
> Connect an external temporary USB disk (dev/sdb).
> Create a PV there (big enough for all your partitions).
> Add the PV to your VG.
> Move all the LV to the external PV.
> Remove /dev/sda2 from the VG.
> Make /dev/sda2 not a PV anymore (pvremove).
> Turn /dev/sda2 into an encrypted block device (dmsetup).
> Make the encrypted device a PV.
> Add the PV to your VG.
> Move your volumes to this PV.
> Remove the external PV from the VG.
> Disconnect the external disk.
> 
> All of this can be done while the system is running
> normally.
> Before rebooting, fix your /etc/crypttab and initramfs
> so you will be asked the passphrase at next boot.

Can you please give me a reference on how to fix /etc/cryptab or this initramfs up?

Thanks again!
Ranjan

____________________________________________________________
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!


-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux