could not mount /dev/mapper/cryptswap1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cryptsetup (Ubuntu) |
Fix Released
|
High
|
Steve Langasek | ||
Oneiric |
Won't Fix
|
High
|
Unassigned | ||
Precise |
Fix Released
|
High
|
Steve Langasek |
Bug Description
On multiple fresh installs since beta release 2 i have been experiencing this issue:
during boot up, i receive the message "could not mount /dev/mapper/
obviously I'm expecting no message to show up at all and it should boot perfectly fine. I do however believe that i have found where the problem lies, it is in /etc/fstab
This is how the original file looked:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda7 during installation
UUID=482c5b33-
# swap was on /dev/sda8 during installation
#UUID=eb23dadc-
/dev/mapper/
i believe the problem is that the following line of:
#UUID=eb23dadc-
is not supposed to be commented out, i believe this happens somewhere in install. The ghetto fix for this is simply to remove the comment on it, but it definitely should not be happening...
i have also found a eerily similar problem from Ubuntu 9.10 Bug #490760 which is a "duplicate" of another bug that is why i classified this as cryptsetup, because that bug was.
Here is more information:
Description: Ubuntu 11.10
Release: 11.10
cryptsetup:
Installed: 2:1.1.3-4ubuntu2
Candidate: 2:1.1.3-4ubuntu2
Version table:
*** 2:1.1.3-4ubuntu2 0
500 http://
100 /var/lib/
tags: | added: rls-p-tracking |
Changed in cryptsetup (Ubuntu Precise): | |
milestone: | none → precise-alpha-2 |
assignee: | Ubuntu Foundations Team (ubuntu-foundations-team) → Steve Langasek (vorlon) |
Changed in cryptsetup (Ubuntu Precise): | |
milestone: | precise-alpha-2 → ubuntu-12.04-beta-1 |
Changed in cryptsetup (Ubuntu Oneiric): | |
status: | Confirmed → Triaged |
Changed in cryptsetup (Ubuntu): | |
milestone: | ubuntu-12.04-beta-1 → ubuntu-12.04-beta-2 |
Changed in cryptsetup (Ubuntu): | |
milestone: | ubuntu-12.04-beta-2 → ubuntu-12.04 |
Changed in cryptsetup (Ubuntu Precise): | |
status: | Triaged → Fix Committed |
> i believe the problem is that the following line of: 8e08-4769- 8fc5-0b1216b67e 5b none swap sw 0 0
> #UUID=eb23dadc-
> is not supposed to be commented out,
Why do you think this? What are the contents of your /etc/crypttab? What is the output of 'swapon -s'?
Failing to mount /dev/mapper/ cryptswap1 could be a bug in cryptsetup, or it could just mean that your /etc/crypttab isn't set up to actually create this device at boot time.
I would not expect uncommenting the other swap reference in /etc/fstab to have any effect on whether the system waits for /dev/mapper/ cryptswap1. It does, however, probably mean that you are now using an unencrypted swap partition, which the installer disabled because this makes encrypted home directories less secure.