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

Steve Langasek steve.langasek at canonical.com
Wed May 2 19:31:13 UTC 2012


Thorsten, thanks for bringing our attention back to this issue.

Do you (and Daniel) by chance have your filesystems listed by UUID in
/etc/fstab?

Devmapper-based devices are normally listed in /etc/fstab by their
symbolic names: /dev/mapper/$name.  This name is not visible on the
system until cryptsetup has finished the setup, and only then would
mountall try to fsck the device.  If you're seeing fsck trigger before
the final rename, you're probably referencing the device by the wrong
name in /etc/fstab.

** No longer affects: util-linux (Ubuntu)

-- 
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:
  Confirmed
Status in “mountall” package in Ubuntu:
  Confirmed

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