LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-13-2013, 06:01 PM   #1
rokyo
Member
 
Registered: Oct 2012
Posts: 74

Rep: Reputation: Disabled
Having two distros use the same encrypted SWAP?


Hello everybody!

I have a question regarding encrypted SWAP partitions, or rather: SWAP partitions in general:

On my private laptop, I use openSUSE in the latest version as my OS, which is installed on an unencrypted ext4 partition and has an unencrypted SWAP partition at its disposal.

Now we're thinking about going BYOD at work, were we use Ubuntu LTS 12.04 as our OS and I'd like to install that as a second OS on my private laptop in a dual-boot setup.

To ensure that no company data will be accessible if the laptop should get lost/stolen/hacked/etc, I have to install the Ubuntu LTS on an encrypted ext4 partition and have the SWAP space encrypted, too.

My question here is: Is it possible to use the already existent SWAP partition from openSUSE, have the Ubuntu installer encrypt it and later use it encrypted under Ubuntu and unencrypted under openSUSE? My guess would be no?

If it's really "no", what would be my alternatives? Could I just create a second (encrypted) SWAP partition during the Ubuntu installation and have Ubuntu use that while SUSE keeps using its unencrypted one? Or will any of the two distros automatically use all available SWAP space on the physical HDD? (openSUSE would probably not be able to use the encrypted Ubuntu-SWAP, I suppose, but Ubuntu using the unencrypted SUSE-SWAP would be even worse! )

Thank all of you in advance for any answers!

Regards,

rokyo
 
Old 04-13-2013, 06:35 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2beta2 on Lenovo Thinkpad W520
Posts: 6,776

Rep: Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115
I do not know about sharing encrypted swap partition but for sure:
(1) any Linux distribution will use only the swap partition(s) indicated in its (own) /etc/fstab
(2) two different distributions can use the same unencrypted swap partition (not at the same time, of course!) if their respective /etc/fstabs are so set up.
 
Old 04-13-2013, 06:46 PM   #3
rokyo
Member
 
Registered: Oct 2012
Posts: 74

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
I do not know about sharing encrypted swap partition but for sure:
(1) any Linux distribution will use only the swap partition(s) indicated in its (own) /etc/fstab
(2) two different distributions can use the same unencrypted swap partition (not at the same time, of course!) if their respective /etc/fstabs are so set up.
Thank you for the quick answer!

So it would be best for me to set up a new encrypted SWAP during the Ubuntu installation and double-check afterwards if it really is the only SWAP space defined in Ubuntu's /etc/fstab.

I'll start up the installation right now and do just that, thanks!
 
Old 04-14-2013, 03:29 AM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2beta2 on Lenovo Thinkpad W520
Posts: 6,776

Rep: Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115
Quote:
Originally Posted by rokyo View Post
... double-check afterwards if it really is the only SWAP space defined in Ubuntu's /etc/fstab.
I do not use Ubuntu but there should be an installation mode which let you decide which swap partition(s) to use. Else, just edit /etc/fstab afterwards as you see fit.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Encrypted Swap? wh33t Linux - Security 4 09-21-2012 06:38 PM
Encrypted swap john99 Incognito 2 11-01-2009 11:52 AM
Encrypted root and swap on thumbdrive itags.org Ubuntu 1 08-02-2009 06:04 PM
Swap : Is it there? Is it encrypted? yeehi Linux - General 2 04-09-2009 10:42 AM
automatic encrypted swap system 90-60-90 Linux - Security 2 02-09-2005 05:56 PM


All times are GMT -5. The time now is 10:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration