Skip to content

cryptmount left in bad state if umount used #2

Description

@wgunruh

Linux Mageia 9 (but this has been there for many years by now)
I have a cryptmount file, -- letc call it unruhmail, which is mounted on ~unruh/mail. Occasionally I get forgetful and do
umount ~unruh/mail
This seems to leave cryptmount in a bad situation for which it seems the only solution is a reboot.
If I do
df
it indicates that ~unruh/mail is mounted from /dev/mapper/unruhmail, but the contents are not there in ~unruh/mail, as it it is not mounted. If I thendo
cryptmount -u unruhmail
it tells me unruhmail is not mounted . If I do cryptmount unruhmail, it tells me it is already
mounted (and /dev/mapper/unruhmail still exits). So I can neither mount or unmount that encrypted partition.
The only way out seems to be to reboot, which is a minor disaster as this is central server serving a number of other machines.
Is there some way of getting out of this mess without rebooting?
I know that not using umount on a cryptmounted file is one answer, but since I persist in occasionally doing that, that is not a useful answer.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions