[Bug 1310186] Re: mediascanner prevents unmounting usb device
** Changed in: mediascanner2 (Ubuntu) Status: Triaged => Fix Released ** Changed in: mediascanner2 (Ubuntu) Assignee: (unassigned) => zawlatt (ayngzawlatt) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1310186 Title: mediascanner prevents unmounting usb device To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mediascanner2/+bug/1310186/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1310186] Re: mediascanner prevents unmounting usb device
There doesn't appear to be a way to be notified of unmount attempts at the moment. There is an fschange modification about ten years ago (http://stefan.buettcher.org/cs/fschange/), but that never made it into the kernel. It looks like it's impossible for mediascanner to automatically back off when an unmount attempt is made. You can kill the mediascanner process and then unmount. (Not of much help to naive user, I admit.) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1310186 Title: mediascanner prevents unmounting usb device To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mediascanner2/+bug/1310186/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1310186] Re: mediascanner prevents unmounting usb device
** Changed in: mediascanner2 (Ubuntu) Status: Confirmed => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1310186 Title: mediascanner prevents unmounting usb device To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mediascanner2/+bug/1310186/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1310186] Re: mediascanner prevents unmounting usb device
It's difficult to see how to fix this. External devices are scanned because people quite often use USB sticks or external drives with their music collections. I'm not sure whether it is even possible for mediascanner to find out that some other arbitrary process has asked for a filesystem to be unmounted. If so, the daemon could back off. If not, I don't know what else it could/should do. For what it's worth, placing a file called .nomedia into a directory prevents scanning of that directory (and all its subdirectories). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1310186 Title: mediascanner prevents unmounting usb device To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mediascanner2/+bug/1310186/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1310186] Re: mediascanner prevents unmounting usb device
** Changed in: mediascanner2 (Ubuntu) Importance: Undecided => Medium ** Changed in: mediascanner2 (Ubuntu) Importance: Medium => High ** Changed in: mediascanner2 (Ubuntu) Importance: High => Critical -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1310186 Title: mediascanner prevents unmounting usb device To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mediascanner2/+bug/1310186/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1310186] Re: mediascanner prevents unmounting usb device
** Tags added: xenial yakkety -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1310186 Title: mediascanner prevents unmounting usb device To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mediascanner2/+bug/1310186/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1310186] Re: mediascanner prevents unmounting usb device
Still applies to Ubuntu 16.10 with mediascanner2 version 0.112+16.10.20160909-0ubuntu1. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1310186 Title: mediascanner prevents unmounting usb device To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mediascanner2/+bug/1310186/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1310186] Re: mediascanner prevents unmounting usb device
I wonder what is the benefit of scanning external drives that are mounted only temporarily, especially when connecting other people's USB sticks. Since mediascanner is a process that was not launched manually by the user, the confirmation on removal (device busy) is redundant, instead mediascanner could probably shutdown silently whenever unmounting of the device is requested (ie. unmounting should be done by no more than one click in nautilus sidebar etc.). The risk of bricking your own or even worse other people's USB stick by improper removal (if a process is unperceivedly still running on the drive) is too high so that it is questionable whether mediascanner should run at all on external drives. I think this is a very critical situation. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1310186 Title: mediascanner prevents unmounting usb device To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mediascanner2/+bug/1310186/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1310186] Re: mediascanner prevents unmounting usb device
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: mediascanner2 (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1310186 Title: mediascanner prevents unmounting usb device To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mediascanner2/+bug/1310186/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs