Unable to open a folder for 10 GB Filesystem", "No application is registered as handling this file... or Nautilus pops browser when partition is mounted in bash script

Bug #986269 reported by bcbc on 2012-04-20
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Unity
Confirmed
Low
Unassigned
unity (Ubuntu)
Low
Unassigned

Bug Description

I first noticed this behaviour in Ubuntu 11.10. When I run my bash script that mounts partitions on my hard drive (e.g /dev/sda5), Nautilus pops up with a browser window. This is an illogical action, since I've not 'inserted a drive', it's already there, and it's just been manually mounted. This Nautilus action will interfere with the scripts operation since, when the script tries to unmount the drive (rapidly) it finds that Nautilus is still busy with it, producing it's browser window.

If I run chmod 700 on the mountpoint prior to mounting (root only access), then I get a popup message stating: "Unable to open a folder for 10 GB Filesystem", "No application is registered as handling this file". This is because the mountpoint is not accessible to the logged in user.

You wouldn't expect this if you mount a partition from the terminal - and for the most part this is correct (Nautilus does nothing), but not all the time. I've managed to trigger Nautilus to pop just with a simple terminal mount.

I have a workaround in my bash script that creates a udev rule and runs udevadm trigger to hide the partition, but this seems extreme. I believe it's a bug in Unity(?) (maybe Nautilus?) in how it responds to the signal that a partition has been mounted.

Please see this for complete details and discussion of possible solutions (and the bash script code): http://askubuntu.com/questions/121569/prevent-nautilus-showing-partition-mounted-in-bash-script

I understand you can prevent Nautilus responding to inserted drives etc., but this is definitely not the case here - the drive is already there, just the partition is being mounted.

bcbc (bcbc) on 2012-04-25
summary: - Nautilus pops browser on bash partition mount
+ Unable to open a folder for 10 GB Filesystem", "No application is
+ registered as handling this file... Nautilus pops browser on bash
+ partition mount
description: updated

I think this is a Unity action, not Nautilus

affects: nautilus (Ubuntu) → unity
summary: Unable to open a folder for 10 GB Filesystem", "No application is
- registered as handling this file... Nautilus pops browser on bash
- partition mount
+ registered as handling this file... or Nautilus pops browser when
+ partition is mounted in bash script
description: updated
bcbc (bcbc) wrote :

You can quickly test this from a terminal by mounting a partition. The first mount doesn't cause any popup. But the second does:
sudo mkdir /tmp/mnt
sudo mount /dev/sda1 /tmp/mnt
(Normal - no popup)
sudo umount /dev/sda1
sudo mount /dev/sda1 /tmp/mnt
(Now nautilus pops up showing the partition, and each subsequent time)

If you instead do this:
sudo mkdir /tmp/mnt
sudo chmod 700 /tmp/mnt
sudo mount /dev/sda1 /tmp/mnt
(Normal - no popup)
sudo umount /dev/sda1
sudo mount /dev/sda1 /tmp/mnt
(Now you get a message box with the error: Unable to open a folder for 10 GB Filesystem", "No application is registered as handling this file")

bcbc (bcbc) wrote :

This behaviour doesn't happen on lubuntu. Is it Nautilus handling the signal, gnome, unity???

affects: unity → nautilus (Ubuntu)
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nautilus (Ubuntu):
status: New → Confirmed
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https://wiki.ubuntu.com/Bugs/Upstream/GNOME. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

Changed in nautilus (Ubuntu):
importance: Undecided → Low
bcbc (bcbc) wrote :

Retested this. The problem doesn't occur on 12.10 or 13.04.

It still happens on 12.04.2, which is using with nautilus 3.4.2.

Actually 12.10 is also using nautilus 3.4.2. So maybe this isn't a nautilus bug after all. In 12.04.2 the window pops up but nothing changes in the Unity bar.

In 12.10, there is a drive icon for the partition being mounted which disappears when I mount it on /mnt. and reappears when I unmount it. So... now I'm thinking this is actually a Unity bug in 12.04.2.

affects: nautilus (Ubuntu) → unity (Ubuntu)
Egg Yok (eggyok) wrote :

I also have this issue when connecting a USB drive.

Unable to open a folder for ..... Filesystem", "No application is registered as handling this file...

Ubunty 13.10 64bit

Changed in unity:
importance: Undecided → Low
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers