Re: encrypting /home partition post-install

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

 



On Tue, 1 Dec 2015 16:12:07 +0100 Roberto Ragusa <mail@xxxxxxxxxxxxxxxx> wrote:

> On 11/30/2015 11:24 PM, Ranjan Maitra wrote:
> > On Mon, 30 Nov 2015 21:59:35 +0100 Roberto Ragusa <mail@xxxxxxxxxxxxxxxx> wrote:
> > 
> >> 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?
> 
> I do not have a reference, I just discovered things with experience:
> 
> /etc/crypttab should contain something like:
> 
> luks-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX none
> 
> 
> /boot/grub/grub.conf should contain on your kernel line the part
> 
> rd.md=1 rd.dm=1 rd.luks=1
> 
> or at least the luks one
> 
> 
> then I rebuild the initramfs; the way to do this is continuously changed so my
> method is to run   rpm -q --scripts kernel   and look at the posttrans part:
> 
> posttrans scriptlet (using /bin/sh):
> /sbin/new-kernel-pkg --package kernel --mkinitrd --dracut --depmod --update 3.14.17-100.fc19.x86_64 || exit $?
> /sbin/new-kernel-pkg --package kernel --rpmposttrans 3.14.17-100.fc19.x86_64 || exit $?
> 
> so I run those two commands.
> 
> 
> Sorry for not giving an accurate procedure, but those are the points to consider.

No problem. Thank you. this is very helpful. Btw, isn't the recommended way to edit grub by changing /etc/defaults/grub and then running grub-mkconfig or is that for something else?

Best wishes,
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