I'm really wondering why I've more swap space if I encrypt my swap partition than w/o encrypting it : With encryption I have in my syslog : ... dmesg-2.6.26-gentoo-r4:device-mapper: ioctl: 4.13.0-ioctl (2007-10-18) initialised: dm-devel@redhat.com dmesg-2.6.26-gentoo-r4:Adding 1005440k swap on /dev/mapper/crypt-swap. Priority:-1 extents:1 across:1005440k ... and w/o : ... tmp/dmesg-2.6.26-gentoo-r4:Adding 997880k swap on /dev/hda7. Priority:-1 extents:1 across:997880k ... The only difference I made was to add the line "dm-crypt" to the file /etc/modules.autoload.d/kernel-2.6, then I uncommented 2 lines within etc/conf.d/dmcrypt : swap=crypt-swap source='/dev/hda7' and changed /etc/fstab accordingly to the string above. Reproducible: Always
Hhm, the answer may be given with this, isn't it ? : n22 ~ # fdisk -l Disk /dev/hda: 60.0 GB, 60011642880 bytes 240 heads, 63 sectors/track, 7752 cylinders Units = cylinders of 15120 * 512 = 7741440 bytes Disk identifier: 0x64656469 Device Boot Start End Blocks Id System /dev/hda1 * 1 3686 27866128+ 7 HPFS/NTFS /dev/hda2 3687 7752 30738960 f W95 Ext'd (LBA) /dev/hda5 3687 4606 6955168+ b W95 FAT32 /dev/hda6 * 4607 4623 128488+ 83 Linux /dev/hda7 4624 4756 1005448+ 82 Linux swap / Solaris /dev/hda8 4757 7752 22649728+ 83 Linux n22 ~ # fdisk -l /dev/hda7 Disk /dev/hda7: 1029 MB, 1029579264 bytes 16 heads, 63 sectors/track, 1994 cylinders Units = cylinders of 1008 * 512 = 516096 bytes Disk identifier: 0xeb73e522 Disk /dev/hda7 doesn't contain a valid partition table n22 ~ # fdisk -l /dev/mapper/crypt-swap Disk /dev/mapper/crypt-swap: 1029 MB, 1029579264 bytes 255 heads, 63 sectors/track, 125 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0xfccdc589 Disk /dev/mapper/crypt-swap doesn't contain a valid partition table