Hi all! I've recently installed Ubuntu 11.10 on my Zenbook UX31, with encrypted /home during the install. From what I understand, that also encrypts /tmp and /swap.
It all worked just fine 'til recently when swap just won't mount. Upon boot it says something like "The device /dev/mapper/cryptswap1 is not ready or present", just flashes by.
I've spent the night googling but unfortunately without success. Here is some output that might be of interest when solving this issue:
This is /etc/fstab. I have tried both lines without progress.
Code:
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sdb1 during installation
UUID=08ef2fb6-e268-443a-985d-b8a448e31a71 / ext4 noatime,discard,errors=remount-ro 0 1
# swap was on /dev/sdb5 during installation
#UUID=e2fefba8-1df5-43c4-9ac9-5922f0efd4f4 none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0
sudo swapon -s show no swap, so let's try to bring it to life:
sudo swapon -a
Code:
swapon: /dev/mapper/cryptswap1: stat failed: No such file or directory
Same error as above also occurs with the other fstab line (the on with the UUID).
free -m
Code:
total used free shared buffers cached
Mem: 3856 937 2918 0 29 492
-/+ buffers/cache: 415 3441
Swap: 0 0 0
fdisk -l
Code:
Disk /dev/sda: 128.0 GB, 128035676160 bytes
255 heads, 63 sectors/track, 15566 cylinders, total 250069680 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000db8f2
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 241881087 120939520 83 Linux
/dev/sda2 241883134 250068991 4092929 5 Extended
/dev/sda5 241883136 250068991 4092928 82 Linux swap / Solaris
Strange, fdisk can see the swap partition.
ls -l /dev/mapper
Code:
total 0
crw------- 1 root root 10, 236 2012-03-01 13:58 control
In gparted it looks like this:
http://dl.dropbox.com/u/4375930/gparted.png
I would guess that is shows up like that because it's encrypted and not mounted, right?
cat /var/log/dmesg |grep swap shows nothing at all.
cryptsetup status cryptswap1
Code:
/dev/mapper/cryptswap1 is inactive.
A simple solution would be to just erase it and create a new /swap -- but that would make my encrypted /home worthless.
Any ideas how to fix this? Just ask if you need more outputs or anything.
Thanks in advance,
Eric
Bookmarks