I have tried encrypting my ‘home’ partition with yast and keep getting the following error message:
"Could not set encryption.
System error code is -3016
The encryption password provided could be incorrect."
PS. I do not have internet at home currently, so cannot upgrade without losing all of my programs. (witch I am not going to do)
Linux kernel ver: 3.7.10-1.16-desktop
openSUSE 12.3 (x86_64)
I don’t know if this will help.
Before you try encrypting the home directory, do (as root)
# modprobe loop
If that does help, then you will need to configure your system to force the load of the loop module during boot – otherwise you might not be able to access your home directory after a reboot until a corresponding “modprobe”.
On 2015-08-18 09:56, jsbjsb001 wrote:
>
> I have tried encrypting my ‘home’ partition with yast and keep getting
> the following error message:
The entire home partition, that applies to all users? It must be a new
or empty partition. I can give you a manual procedure for doing it.
Or are you setting up encryption for a single user? In that case I
believe it has to be a new user.
–
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 “Bottle” (Minas Tirith))
My earlier reply assumed you meant an encrypted home directory. That typically creates a container file which it encrypts, and then loop-mounts the container.
If you are encrypting the home partition, that’s a different thing entirely.
For that, you would need to do:
- Backup your home partition (encrypting will lose the contents);
# mount --bind / /mnt
- copy your own home directory to “/mnt/home/USER” (recursively). That is, copy the diretory tree “/home/USER” to “/mnt/home/USER” (for the appropriate value of “USER”). You are copying to under the mount point. Make sure there is space in the root file system for this before you copy. (You can first delete large files since you have just made a backup).
# umount /mnt
- Comment out the entry for “/home” in “/etc/fstab”
- Reboot, and login. Your login should now be using the copy of your home directory that you had made in step 3.
- Use Yast partitioner to encrypt your home directory, to be mounted at “/xhome” (because you don’t want it to overlay the home directory that you are currently using).
- If that goes well, then restore from your backup to the mounted “/xhome”. That should get back all of the files that were in the home partition.
- Edit “/etc/fstab” and change that “/xhome” to “/home”
- Reboot. You should now be using the encrypted partition.
# mount --bind / /mnt
- remove /mnt/home/USER – you no longer need that temporary copy
Note that I have not tried the above. And I don’t recommend it.
If you want to switch to encrypted home partition, the safer way is:
- Backup the home partition
- Do a clean install, where you encrypt the home partition
- Restore from the backup
I would suggest waiting until you next plan on doing a clean install.
Yes I think I will just wait for a clean install.>:(