howto reutilise encrypted home from previous Ubuntu install

hello,

i am actually surprised for not having found a document on opensuse wiki that describes how to setup an encrypted user home that works the same way as ubuntu.

i have used ubuntu for years now and my home is encrypted with ecryptfs (default setup in ubuntu)

could some one post a link or describe how i can setup opensuse to keep using my home partition?

many thanks,

> i am actually surprised for not having found a document on opensuse
> wiki that describes how to setup an encrypted user home that works the
> same way as ubuntu.

hmmmmm…i wonder who would have written that, if it had been written?

> i have used ubuntu for years now and my home is encrypted with ecryptfs
> (default setup in ubuntu)

is it default to have home encrypted…i didn’t know that…cool!
perhaps you can add info on that and other things to
http://tinyurl.com/ubuntu-to-openSUSE (or maybe it is there
already…i’ve not read the whole thing)

or, maybe something here is helpful: http://tinyurl.com/Ubuntu-Differences

> could some one post a link or describe how i can setup opensuse to keep
> using my home partition?

i can’t do that, but i hope someone can…if no one does it would be
real nice once you figure out how (or find the person who knows) if you
would write the how-to which is obviously missing…

i can think of a work around…since i strongly advise against retaining
all the configs contained in one’s /home when moving between distros it
would be best (imo) to save all data to a secure, off machine location
(you can do that even though the home is encrypted, right?) and then do
a format install of the desired openSUSE…then, join the data back
into the clean new home…then, encrypt it if you wish…

wait! i see that ecryptfs is in the standard openSUSE repo, so i guess
it would be easy enough to re-encrypt it with something you are familiar
with (if you do it the save data/format install/then encrypt way)…


DD http://tinyurl.com/DD-Caveat http://tinyurl.com/DD-Hardware
http://tinyurl.com/DD-Software
openSUSE®, the “German Engineered Automobiles” of operating systems!

Remember that in Ubuntu the default is to have /home on the root partition and not one of it’s own .So if you have not set it up to have a separate home partition then you must safe off and restore in any case.

nicolasdiogo wrote:
> hello,
>
> i am actually surprised for not having found a document on opensuse
> wiki that describes how to setup an encrypted user home that works the
> same way as ubuntu.
Thankfuly, openSUSE doesn’t works the same way ubuntu/windows does

> i have used ubuntu for years now and my home is encrypted with ecryptfs
> (default setup in ubuntu)
I doubt it’s the default setup, ubuntu is a system with zero default
security, a simple fork bomb give me the root shell 2 ubuntu versions ago…

> could some one post a link or describe how i can setup opensuse to keep
> using my home partition?
please post here your ubuntu fstab, I think you don’t have an encrypted
partition, intead of an encrypted file used as home container

On 12/21/2011 06:06 PM, gogalthorp wrote:
> in Ubuntu the default is to have /home on the root partition

see! i shouldn’t try to help the Ubuntu Runners 'cause i just don’t know
enough about their system…


DD http://tinyurl.com/DD-Caveat
openSUSE®, the “German Engineered Automobiles” of operating systems!

On 2011-12-21 15:56, nicolasdiogo wrote:

> could some one post a link or describe how i can setup opensuse to keep
> using my home partition?

The problem is I don’t know how Ubuntu does it.

I would boot Ubuntu, backup that encrypted partition, then on openSUSE
create the user with an encrypted home. Once this work, copy the files you
need from the backup.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Are you sure you have an encrypted partition in Ubuntu?. If yes, Ubuntu uses LUKS and LVM in a very similar way OpenSUSE does it. I have accessed my encrypted partions in a dual boot machine from one distro to the other.

However, I believe Ubuntu also offers an encrypted home directory. I have never used it and I don’t know how it works. I’m quite sure it works differently.

If you have installed Ubuntu from the LiveCD you have the second type of encryption. The first one is only available on the alternate CD.

If you have the first type of encryption you should see your encrypted partion like this:

$ sudo file -s /dev/mapper/sda3_crypt 
/dev/mapper/sda3_crypt: LVM2 (Linux Logical Volume Manager) , UUID: OCUYBmP1R0wGYTTJsHsyDT25Ilj04iZ
$ sudo file -s /dev/sda3
/dev/sda3: LUKS encrypted file, ver 1 [aes, cbc-essiv:sha256, sha1] UUID: 4d2b9958-1538-49db-bbde-2ec30f4
$ 

(needless to say, your drive letter and partion number might be different)

The first command will only work in Ubuntu (until you have set up the access from OpenSUSE) The second command will work both in Ubuntu and OpenSUSE. If you can’t get the second command to work from OpenSUSE you have some other setup and I cannot help you.

thanks for the replies

it seems that i have touched a nerve with some of you…
so to clear the air let me say:

Yes! I have used Ubuntu and I did like it for a while, BUT I have changed my ways and I am trying OpenSuse again.

In fact, I have used (and purchased SuSE) when it used to be based in Germany and had CDs sold in paper boxes.

I have found the following document quite clear in describing what I believe needs to be done to get my home working with a distribution other then Ubuntu:
https://wiki.archlinux.org/index.php/System_Encryption_with_eCryptfs

to clarify, I have my /home in a partition other then ROOT and using ecryptfs that used to be auto mounted on login.

thanks,

Nicolas

So your filesystem is encrypted, not your partition. I have only worked with encrypted partitions, never with encrypted filesystems so I’m not the right one to give advice. Good you found some pointers, I would be very surprised if it could not be done.