[Bug 719563] Re: mountall: fatal error: cannot open /dev/mapper/crypthome_unformatted

bastafidli ubuntu at bastafidli.com
Sun Feb 10 07:17:18 UTC 2013


I want to confirm the problem and the workaround for the benefit of
other people who will come across it, since it wasn't easy to fing.

If you are using encrypted disk and the fcsk is being executed before or
during the cryptsetup password prompt during plymouth or more precise
mountall, it is more likely due to the fact that your encrypted disks
are references in the /etc/fstab using UUID rather than using the mapper
paths. The workaround is to edit /etc/fstab and refer the encrypted
disks using mapper paths, e.g.

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc                                      /proc           proc    nodev,noexec,nosuid 0       0
UUID=cfc42d03-788c-4ce8-a5bf-b1ed12e286c0 /boot           ext4    relatime,discard 0       2
#UUID=5c18efc3-d3eb-4e2e-a8a1-c4be8b7cacb5 /               ext4    relatime,discard,errors=remount-ro 0       1
/dev/mapper/root_crypt                    /               ext4    relatime,discard,errors=remount-ro 0       1
#UUID=151192b4-2f9c-479b-8b4d-62bb38cef7ee /home           ext4    relatime,errors=remount-ro 0       1
/dev/mapper/home_crypt                    /home           ext4    relatime,errors=remount-ro 0       1
#UUID=cc988cfb-3bf9-41b4-9cc4-11ff5fdf089c /data           ext4    relatime,errors=remount-ro 0       2
/dev/mapper/data_crypt                    /data           ext4    relatime,errors=remount-ro 0       2
#UUID=60c8d952-f3dc-4d15-8eac-c97718de9f6a /archive        ext4    relatime,errors=remount-ro 0       2
/dev/mapper/archive_crypt                 /archive        ext4    relatime,errors=remount-ro 0       2
#UUID=47A7-EF59                            /media/bootkey  vfat    utf8,umask=007,gid=46 0       1

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cryptsetup in Ubuntu.
https://bugs.launchpad.net/bugs/719563

Title:
  mountall: fatal error: cannot open /dev/mapper/crypthome_unformatted

Status in “cryptsetup” package in Ubuntu:
  Won't Fix
Status in “mountall” package in Ubuntu:
  Invalid

Bug description:
  Binary package hint: mountall

  I have upgraded from Maverick to Natty yesterday, while there are
  still some (apparently irrelevant) packages pending.

  I am using cryptsetup and after entering the passphrase for my crypthome device (where keys for other devices are stored), I am getting a fatal error from mountall (translated from German):
    fsck.ext4: file/dir not found when trying to access /dev/mapper/crypthome_unformatted - Possibly non-existent device?
    mountall: fsck /home [$ID] exited with code 8
    mountall: fatal fsck error: /home

  Then it says that /root is still not mounted, which resides on /home,
  and nothing happens anymore.

  I can fix this using the "M"anual recovery, and doing the following:
  1. mount /home
  2. start every cryptdisk device using cryptdisk_start (necessary for all of them except crypthome)
  3. mount -a
  4. ctrl-d
  --- 
  Architecture: i386
  DistroRelease: Ubuntu 11.04
  NonfreeKernelModules: nvidia
  Package: mountall 2.21
  PackageArchitecture: i386
  ProcEnviron:
   LANGUAGE=de_DE:de:en_US:en_GB:en
   PATH=(custom, user)
   LANG=de_DE.UTF-8
   SHELL=/bin/zsh
  ProcVersionSignature: Ubuntu 2.6.38-3.30-generic 2.6.38-rc4
  Tags: natty
  Uname: Linux 2.6.38-3-generic i686
  UserGroups: adm admin audio cdrom dialout dip floppy fuse libvirtd lpadmin plugdev pulse sambashare sbuild scanner src video

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/719563/+subscriptions




More information about the foundations-bugs mailing list