-
encrypting SWAP by default
I see that some time ago someone released a version of Knoppix 3.2 that would among other things encrypt the swap drive (http://www.bouissou.net/knoppix-mib/...oppix-Mib.html). In the current verson of knoppix, is there an easy way to do this? I use an encrypted persistent home on a USB stick, but when I'm running on any box that has a swap partition, I know I'm leaving clear-text data behind.
Thanks
-
Senior Member
registered user
Re: encrypting SWAP by default
--One way to do this is disable all type 82 partitions (swap) and comment them in /etc/fstab.
--Then create an encrypted filesystem, and also create a swapfile on that FS after mounting it:
[ insert cryptoloop instructions here ]
' mount blah /mnt/encrypted -odefaults,rw,noatime '
' cd /mnt/encrypted '
' time dd if=/dev/zero of=swapcrypt.swp bs=1M count=64 ' == Create 64MB zero-file
' chmod 700 swapcrypt.swp ' == Make sure only root can read it
' mkswap swapcrypt.swp ' == Make it into a swap area
' swapon swapcrypt.swp ' == Activate it
' swapon -s ' == Check it
--That said, see these links:
( Search for " Debian " on this page )
http://wiki.noreply.org/noreply/TheO...tionalSecurity
http://www.ussg.iu.edu/hypermail/lin...08.0/1163.html
http://linuxfromscratch.org/pipermai...ch/002819.html
http://www.gentoo.org/proj/en/harden...yptography.xml
--I'm pretty sure OpenBSD has encrypted swap, if not by default then at least as an option.

Originally Posted by
g4j
I see that some time ago someone released a version of Knoppix 3.2 that would among other things encrypt the swap drive (
http://www.bouissou.net/knoppix-mib/...oppix-Mib.html). In the current verson of knoppix, is there an easy way to do this? I use an encrypted persistent home on a USB stick, but when I'm running on any box that has a swap partition, I know I'm leaving clear-text data behind.
Thanks
Similar Threads
-
By A. Jorge Garcia in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 06-19-2007, 06:26 PM
-
By Kowood in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 04-14-2005, 07:57 PM
-
By jj54 in forum General Support
Replies: 1
Last Post: 11-09-2004, 08:16 PM
-
By sirmax in forum General Support
Replies: 7
Last Post: 04-10-2003, 11:21 PM
-
By CubeDweller in forum General Support
Replies: 6
Last Post: 03-26-2003, 08:09 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

GIGABYTE A520M DS3H AC AMD AM4 Motherboard mATX
$59.99

GIGABYTE Z790 AORUS ELITE AX LGA 1700 Intel Z790 ATX Motherboard with DDR5
$119.99

Corsair RMe RM850e 850W 80 Plus Gold Fully Modular Low Noise Certified Refurb
$56.99

Gigabyte GA-B85M-D3H Motherboard
$54.99

GIGABYTE B365 HD3 LGA1151 Intel 9th Gen motherboard
$59.99

Asus Prime B660M-A AC D4 Motherboard Intel LGA 1700 14th 13th 12th Gen DDR4
$79.99

Intel H81 Motherboard M.2 NVMe LGA 1150 mATX w/ IO Shield (Random Slot Color)
$29.90

ASUS PRIME H410M-K LGA 1200 Intel 10th Gen H410 DDR4 USB3.2 Motherboard M-ATX
$59.99

Dell XPS 8940 Desktop Motherboard Intel H470 LGA1200 DDR4 K3CM7 KV3RP 427JK
$154.99

ASUS PRIME Z490-V Motherboard Intel Z490 10th gen DDR4 LGA 1200 ATX w/ IO Shield
$84.99