Public bug reported: Ubuntu Trusty, util-linux 2.20.1-5.1ubuntu20.3
I can't 'umount -f /mnt/storage' an NFS-filesystem whose remote end has gone missing. The process just stalls in an uninterruptable state. Strace shows umount at some point tries to readlink() the mount point which stalls because that mount point is broken. Which is why i want to force umount it. ;) I then proceeded to remove 99% of umount.c's code so it would just call umount2() on the target with the FORCE flag, recompiled the binary and it 'neatly' unmounted the filesystem. I think umount.c tries too many sanity checks with -f enabled. It should perhaps ask if the user is really sure, and then just call umount on the target and fix mtab etc... ** Affects: util-linux (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to util-linux in Ubuntu. https://bugs.launchpad.net/bugs/1466581 Title: Unable to unmount 'hung NFS mount' (server gone) with FORCE and/or LAZY Status in util-linux package in Ubuntu: New Bug description: Ubuntu Trusty, util-linux 2.20.1-5.1ubuntu20.3 I can't 'umount -f /mnt/storage' an NFS-filesystem whose remote end has gone missing. The process just stalls in an uninterruptable state. Strace shows umount at some point tries to readlink() the mount point which stalls because that mount point is broken. Which is why i want to force umount it. ;) I then proceeded to remove 99% of umount.c's code so it would just call umount2() on the target with the FORCE flag, recompiled the binary and it 'neatly' unmounted the filesystem. I think umount.c tries too many sanity checks with -f enabled. It should perhaps ask if the user is really sure, and then just call umount on the target and fix mtab etc... To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1466581/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp