[feisty] some partitions do not appear in Places menu

Bug #73227 reported by Nicolò Chieffo
100
This bug affects 1 person
Affects Status Importance Assigned to Milestone
hal (Ubuntu)
Fix Released
Medium
Martin Pitt
nautilus (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

In feisty, volumes that are mounted from fstab with the options "defaults" and/or "auto" are ignored and in consequence don't show up in place and in computer://

This is a different behavior from dapper or edgy, where all partitions, mounted or not, where present in computer://. People were used to that and it was IMO a good behavior.

I also don't see why we should ignore those volumes.
And if there is a reason, the rule is wrong cause a volume could be mounted with or without the "defaults" option with no change for the user, but with a different behavior in the desktop.

I suggest to revert the ignored volume policy to the one before 0.5.8.1-3ubuntu6, with some modification, to not show only fixed partitions which are not mounted in /media :

In the ignored_volume patch, replace :

     <!-- Ignore fixed partitions which are automatically mounted from fstab -->
      <match key="linux.fstab.mountpoint" exists="true">
        <merge key="volume.ignore" type="bool">false</merge>
        <match key="linux.fstab.options" contains="defaults">
          <merge key="volume.ignore" type="bool">true</merge>
        </match>
        <match key="linux.fstab.options" contains="auto">
          <merge key="volume.ignore" type="bool">true</merge>
        </match>
        <match key="linux.fstab.options" contains="noauto">
          <merge key="volume.ignore" type="bool">false</merge>
        </match>
      </match>

by :
      <!-- Ignore fixed partitions which are not mounted in /media -->
      <match key="@block.storage_device:storage.hotpluggable" bool="false">
        <match key="@block.storage_device:storage.removable" bool="false">
          <match key="volume.is_mounted" bool="true">
            <merge key="volume.ignore" type="bool">true</merge>
         <!-- Show /media/ drives -->
            <match key="volume.mount_point" compare_gt="/media">
              <match key="volume.mount_point" copare_lt="/media0">
             <merge key="volume.ignore" type="bool">false</merge>
           </match>
         </match>
          </match>
        </match>
      </match>

Tags: feisty hal

Related branches

Revision history for this message
Sebastian Dröge (slomo) wrote :

This is a hal bug, dbus has nothing to do with hardware detection, etc

Revision history for this message
Johan Van Hellemont (johan-van-hellemont) wrote :

I confirm this on a fresh and up-to-date installed Herd 1.
No drives in places menu and om my desktop,also when I start my USB harddisk and
my USB stick.
When I restart dbus with /etc/init.d/dbus restart,my drives are shown up in
places menu,but my USB harddisk and stick not.When I boot the system the USB harddisk
and stick shown up in places menu and /media.

Please ask for more information if needed.

Revision history for this message
Cao Thanh Tung (tt3346) wrote :

I confirm this bug. I am using Herd 1 fully updated from main server.

All partitions are mounted but none of the icons appear in the desktop until I restart dbus.

I have to manually mount CD-ROM. After restart dbus, the CD-ROM is mounted when I click on its icon in Nautilus.

Thumb drive is not mounted at all even after restart dbus.

Also, after I restart dbus, all applets remain except the power-management applet.

Revision history for this message
Nuno Santos (zoryn1) wrote :

I confirm it also. Restarting dbus fixes the problem, but the labels dont show up (only hda1, hda4 shows up)

Revision history for this message
Nicolò Chieffo (yelo3) wrote : Re: [Bug 73227] Re: [feisty] some partitions do not appear in Places menu

Hello! This bug is only present when upgrading from edgy to feisty
without purging the user's home directory. I started with a new
account and now I can see every partition! also the ones that are not
mounted! I will do some tests to discover what happens when changing
fstab

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

I confirm the bug: entries that are located in /etc/fstab are ignored
by the gnomevfs. If you remove them from fstab they will be
considered, but not automatically mounted.

Revision history for this message
tokj (tokj-deactivatedaccount) wrote :

I did a fresh install of Feisty and I followed the Chieffo's suggest of creating a new user account, but didn't solved the problem.

The partitions appears only if i restart dbus (and hal with it). Moreover, i would like to say that the partitions are correctly mounted (mount points in /media aren't empty) but they aren't shown up on the desktop and in Nautilus. I wonder if this can be a gnome-volume-manager or a gnome-mount problem.

Anyway I change the bug status to confirmed.

Changed in hal:
status: Unconfirmed → Confirmed
Revision history for this message
Nicolò Chieffo (yelo3) wrote :

using this line I managed to show it!

/dev/hda5 /media/Dati ntfs-3g
nosuid,nodev,exec,user,uid=0,gid=46,umask=0007,locale=it_IT.UTF-8 0 0

I think that "user" is the key option to add

Revision history for this message
Florent Mertens (givre) wrote :

This issue is due to :

hal-0.5.8.1/fdi/policy/10osvendor/20-storage-methods.fdi :
[...]
     <!-- Ignore fixed partitions which are automatically mounted from fstab -->
      <match key="linux.fstab.mountpoint" exists="true">
        <merge key="volume.ignore" type="bool">false</merge>
        <match key="linux.fstab.options" contains="defaults">
          <merge key="volume.ignore" type="bool">true</merge>
        </match>
        <match key="linux.fstab.options" contains="auto">
          <merge key="volume.ignore" type="bool">true</merge>
        </match>
        <match key="linux.fstab.options" contains="noauto">
          <merge key="volume.ignore" type="bool">false</merge>
        </match>
      </match>
[...]

Volume mounted in fstab with "defaults" and/or "auto" option are ignored which is something wrong in my opinion. People are used to see their devies (mounted or not) in computer:// and i don't see any reason why we should ignore those drives.

Revision history for this message
Florent Mertens (givre) wrote :

Sorry Nicolò Chieffo if i change to much your description of the bug, but it was to make it more clear.

Regards,

Flo

description: updated
description: updated
Revision history for this message
Nicolò Chieffo (yelo3) wrote :

it is ok!

Revision history for this message
Benjamín Valero Espinosa (benjavalero) wrote :

I give a vote to this bug. I liked the old behavior, not only for the Places menu, but also for the Tree and Places sidebar in Nautilus. I have a second hard disk and now I cannot see it and have to search in the /media folder.

Revision history for this message
Benjamín Valero Espinosa (benjavalero) wrote :

Florent, you are right. Commenting that block of tags you give (surround it between <!-- and -->) and restarting I get the old behavior. Making a diff between the Edgy file and the Feisty file (20-storage-methods.fdi), it can be seen that this block is totally new, so if we complaint a little perhaps the developers regret of the change :P

Florent Mertens (givre)
description: updated
Florent Mertens (givre)
description: updated
Florent Mertens (givre)
description: updated
Revision history for this message
Kenneth S. (klsmith259) wrote :

Yeah same problem here. The posted fix/diff works of course. Annoying though.

Martin Pitt (pitti)
Changed in hal:
assignee: nobody → pitti
importance: Undecided → Medium
status: Confirmed → In Progress
Revision history for this message
Francesco Fumanti (frafu) wrote :

Same behaviour here. I also prefer the old way.

I wonder why the developers changed that!? I suppose there must have been some reason.

Revision history for this message
Florent Mertens (givre) wrote :

Martin, is there any plan to change that in feisty, or do you want to keep the current behaviour ?

Revision history for this message
Patrick (patrick-voegeli) wrote :

I don't think that is the way to go... I believe most of us like our partitions/ hdd's showing up in our desktop and the Places menu...

Hope you guys fix this!

Revision history for this message
getaceres (getaceres) wrote :

I confirm this using an up to date Feisty installation (installed from scratch using Herd5).
I liked the old behaviour. I have two hard drives with some partitions each of them and I liked to have them in nautilus' sidebar automatically.

Revision history for this message
Steve Dodd (anarchetic) wrote :

Bug #92680 looks like a duplicate of this bug.

Revision history for this message
Eugenia Loli-Queru (eloli) wrote :

Yeah, my Windows partitions don't show up in "My computer". They are only shown under /media or something. Please note that I don't want these partitions in the Desktop (which is the current behavior), but I do want them on the My Computer nautilus view.

Revision history for this message
Jackson Roberto Gobbo (jackson) wrote :

I have the same problem here. A made a new installation of Feity Beta, create a new user (with a new home directory), but it's still not showing my other partitions in "My Computer" or in Destkop.

It only works after a remove the entire block from /usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi and restart my computer. Now it's working fine.

Revision history for this message
zdnko (zdnko) wrote :

The old way is better, specially for new users.

Revision history for this message
Jackson Roberto Gobbo (jackson) wrote :

I think could have an option (in nautilus preferences maybe) to show or not the partitions on Desktop. Since you can do this yourself using gconf-editor (apps->nautilus->dekstop) and unchecking the option volumes_visible.

My opinion is that we should have all the partitions at least in "My Computer" view, because it's easier to save or download a file in others partitions. Easier that say to new users: "You should go to /media/hda5 to save your files".

Revision history for this message
sishgupta (sishgupta) wrote :

This bug is pretty old and yet it still goes unfixed!
Please, to whomever can get this reverted, make sure feisty doesn't go out like this!

Revision history for this message
Vytas (vytas) wrote :

It is marked in progress, so most probably Martin is working on it, please be patient

Revision history for this message
Martin Pitt (pitti) wrote :

Nothing to do with nautilus.

Changed in nautilus:
status: Unconfirmed → Rejected
Revision history for this message
Martin Pitt (pitti) wrote :

Fixed in bzr head.

Changed in hal:
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

 hal (0.5.8.1-4ubuntu12) feisty; urgency=low
 .
   * Add debian/patches/66-NULL-fstype-crash.patch: Do not crash on NULL
     volume.fstypes, and assing some fallback values to them. Patch from Danny
     Kukawa in FD#10429. (LP: #87800)
   * debian/patches/24_ignored_volumes.patch: Ignore partitions which are
     mounted by default in /etc/fstab only when they are not currently mounted
     (this could happen on damaged partitions, failed fsck, etc., and
     inexperienced users should not randomly mount those.). Since this would
     make system partitions visible, limit the visible ones to /media/ again,
     as in previous Ubuntu releases. (LP: #73227)
   * Add debian/10-storage-policy.fdi: Resurrect 'Eject all USB and Firewire
     storage devices', just as in previous Ubuntu releases. (LP: #97366)
   * Add debian/patches/67-fix-probe-volume.patch: Attempt to fix scrambled
     labels. Taken from FD#10362, thanks to Danny Kukawa. (LP: #69914)

Changed in nautilus:
status: Rejected → Fix Released
Revision history for this message
Johan Van Hellemont (johan-van-hellemont) wrote :

Fixed for me,thanks Martin!

Revision history for this message
eroll (jeff-dupont) wrote :

I'm having the same issue. (I think) My usb harddrive does not auto mount as it did within Edgy. I don't even have the option to right click the device to mount within computer:///. Hal shows the device connects, but nothing beyond that happens. I need to manually mount the device to access the data.

This feature worked great in Edgy, and to remove it would be taking a step back!

Revision history for this message
sishgupta (sishgupta) wrote :

Ty for the fix! Works on both my machines.
I didn't mean to be rude before, I was just getting worried as the deadline for feisty nears.

Revision history for this message
eroll (jeff-dupont) wrote :

I am also running the latest version of Hal: hal (0.5.8.1-4ubuntu12) and it still has not been fixed for me.

Revision history for this message
Vytas (vytas) wrote :

for me - fixed. What issues are you having eroll? what disks? paste your fstab here if possible

Revision history for this message
eroll (jeff-dupont) wrote :

right now it's just my external usb Seagate 400gb harddrive. i haven't plugged in my ipod yet to see if that still works properly... but cds mount perfectly fine.

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=04ec8aa5-97a4-4cab-ac2f-121341077a3e / ext3 defaults,errors=remount-ro 0 1
# /dev/sda5
UUID=a94428dd-77b5-4e46-91c3-9efbd09db86d none swap sw 0 0
/dev/scd1 /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/scd0 /media/cdrom1 udf,iso9660 user,noauto 0 0

Revision history for this message
Martin Pitt (pitti) wrote :

eroll, apparently you have a different problem than this one then. Can you please file a new bug for this?

Changed in hal:
status: Fix Committed → Fix Released
Revision history for this message
aapgorilla (aapgorilla) wrote :

I don't know if this is supposed to be the behaviour but since this more or less this week I only see removable media under media:/ in konqueror, I can still access my fstab mounted partitions in /media. How do I get the fstab mounted partitions back under media:/ ?

Here is my /etc/fstab :

# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0
# Entry for /dev/mapper/sda2 :
UUID=f340078d-4758-4d33-a4ac-a148c95c7558 / ext3 defaults,errors=remount-ro 0 1
# Entry for /dev/mapper/sda3 :
UUID=6bd941c4-fab0-428e-93df-fc382ec155e8 /media/hda3 ext3 defaults 0 2
# Entry for /dev/mapper/sda5 :
UUID=6000-D871 /media/hda5 vfat defaults,utf8,umask=007,gid=46 0 1
# Entry for /dev/mapper/sdb1 :
UUID=DEBC5D8ABC5D5E59 /media/sda1 ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1
# Entry for /dev/mapper/sdb3 :
UUID=525C16E75C16C59F /media/sda3 ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1
/dev/hdc /media/cdrom0 auto user,noauto,exec 0 0
/dev/hdd /media/cdrom1 udf,iso9660 user,noauto 0 0

Revision history for this message
aapgorilla (aapgorilla) wrote :

For the record, I have changed umask to 000 and rebooted into windows, where the partitions worked correctly and also into mandriva 2007.1 where my partitions also correctly show under media:/

Revision history for this message
aapgorilla (aapgorilla) wrote :

Okay, I did some looking around and found this article:

https://wiki.ubuntu.com/MountAllLocalFilesystems

so i tried commenting out the fstab entries for those drives and then they do show up in media:/ but I get the following errors:

hal-storage-fixed-mount-all-options refused uid 1000
hal-storage-fixed-mount refused uid 1000

If this is the intented new behaviour it is very annoying and I hope it will get fixed to the old behaviour or the same behaviour removable media are mounted, with the note that I prefer having my ntfs partitions mounted with the ntfs-3g driver, not the default kernel driver....

Revision history for this message
Eugenia Loli-Queru (eloli) wrote :

Ok guys, the partitions are now showing up in the MyComputer nautilus view, BUT, they also show up in the Desktop too. I DON'T want them in the desktop!!! I only want the REMOVABLE partitions to be appearing in the desktop, NOT all partitions. Right now, after you "fix", my "Places" menu is filled up with junk that DELL has put in the laptop (Vista, MediaDirect and other such partitions). Look at my screenshot.

What I really want is for the NON-REMOVABLE partitions to be showing up *only* on MyComputer view, and the REMOVABLE partitions to be showing up in the Places and the Desktop and on MyComputer. You must make a DISTINCTION between removable and non-removable volumes. HAL is able to do that.

Right now, after you fix, my desktop is a mess.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.