top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to clone a system to an encrypted drive in Fedora?

+1 vote
450 views

I have a running Fedora 21 system. I would like to make a backup of it to a USB drive, a clone that can be booted. I know how to do all the "normal" stuff (partition, LVM, mkfs, rsync, and GRUB), but I'd like the USB drive to be encrypted, and I don't know how to set that up manually (I haven't messed with encrypted filesystems under Linux before).

The system I'm backing is also headless, so no GUI tools. Any Pointers, tips, suggestions?

posted Jul 16, 2015 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote

cryptsetup is the program used to create LUKS devices. I run LUKS on top of separate raid arrays, but you might also want to have just one LUKS device and run LVM on top of that.

answer Jul 16, 2015 by Tarun Singhal
+1 vote

Look Arch Linuxs wiki for LUKS / dm-crypt, you will probably need to read some documentation but in an hour or less you should be able to create an encrypted partition, an encrypted swap, learn how to unlock it manually or via cryptab/cryptsecrets and so on.

answer Jul 16, 2015 by Honey
Similar Questions
+5 votes

Isn't there a Package on Fedora repo that you can install so as to view files on Android Phones by USB.

0 votes

Sometime back I bought a pen drive of 16 GB and now it showing space of pen drive very less in KBs.
What could be the reason for showing less space than it actual and how it can get back the space ?

0 votes

VirtualBox defaults to using the CDROM/DVD drive which is pretty worthless unless you have a supply of blanks, I don't have many on hand presently. I have been trying to make the USB function work without much success.

Googling suggests group/user problems, I have myself and root listed as vboxusers. The GUI has a USB menu which is always grayed, where I can create a filter, it recognizes the Sandisk flash drive when entered, I click on OK and nothing is saved apparently.

Now I've run across something in google that suggests an entry in fstab may be required? Has any one worked through this maze who can suggest how to make it work?

+2 votes

I want to execute a script every time a specific drive is mounted on the system. I have a thumb drive that has a name I've given it. When it's mounted, I want to copy the contents of my .gnupg directory to it so I can always have a current backup of my keyring.

From the research I've done, it looks like UDEV rules are the way to go but, IIRC, Fedora doesn't use UDEV anymore. How can I accomplish this now?

...