! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Doesn't show volumes mounted using the fstab
Status:
RESOLVED: WONTFIX

Comments

Description sledgehammer_999 2011-05-26 21:28:23 CEST
I am using xfce 4.8 on Debian unstable. The places-plugin's version is 1.2.0-3.

I mount my hard disks/partitions through the fstab. Thunar's panel doesn't
show them. However, they are shown in Nautilus or the gtk "open dialog". 

This same behaviour is seen in xfdesktop and xfce4-places-plugin. I will create the relevant bug reports and mention them here.
Comment 1 sledgehammer_999 2011-05-26 21:30:42 CEST
(In reply to comment #0)
> I am using xfce 4.8 on Debian unstable. The places-plugin's version is 1.2.0-3.
> 
> I mount my hard disks/partitions through the fstab. Thunar's panel doesn't
> show them. However, they are shown in Nautilus or the gtk "open dialog". 
> 
> This same behaviour is seen in xfdesktop and xfce4-places-plugin. I will create
> the relevant bug reports and mention them here.

Sorry. Copy/paste error.

-I am using xfce 4.8 on Debian unstable. The places-plugin's version is 1.2.0-3.
+I am using xfce 4.8 on Debian unstable.
Comment 2 sledgehammer_999 2011-05-26 21:33:48 CEST
The xfdesktop bug-> https://bugzilla.xfce.org/show_bug.cgi?id=7668
The xfce4-places-plugin bug-> https://bugzilla.xfce.org/show_bug.cgi?id=7666
Comment 3 Jannis Pohlmann editbugs 2011-05-26 22:46:55 CEST
IMHO, it's GTK+'s open dialog and Nautilus that are not behaving correctly. Thunar aims at hiding every volume/partition/mount that is considered system-internal. This includes entries in /etc/fstab that GIO (or udisks rather) does not detect as user-mountable. 

If you have your UID set correctly in /etc/fstab and whatever is necessary to allow your user to mount/unmount the partition from the command line without requiring authentication, and Thunar still does not show the partition, then either GIO or udisks are malfunctioning.

I assume that

  g_unix_is_mount_path_system_internal() 

returns TRUE or 

  g_unix_mount_point_is_user_mountable()

returns FALSE for your partition. Either that, or 

  g_volume_can_eject(),
  g_drive_is_media_removable(),
  g_mount_can_unmount() and
  g_volume_can_mount()

all return FALSE. One of these functions is wrong. This should probably be forwarded to the GLib/GVfs/gnome-disk-utility/udisks (in decreasing priority) developers. Here's a reference to how we use these functions:

http://git.xfce.org/xfce/thunar/tree/thunar/thunar-gio-extensions.c#n409
Comment 4 sledgehammer_999 2011-05-26 22:59:39 CEST
(In reply to comment #3)
> If you have your UID set correctly in /etc/fstab and whatever is necessary to
> allow your user to mount/unmount the partition from the command line without
> requiring authentication, and Thunar still does not show the partition, then
> either GIO or udisks are malfunctioning.

Actually my user cannot unmount these volumes. I have to use sudo to unmount.

> 
> I assume that
> 
>   g_unix_is_mount_path_system_internal() 
> 
> returns TRUE or 
> 
>   g_unix_mount_point_is_user_mountable()
> 
> returns FALSE for your partition. Either that, or 
> 
>   g_volume_can_eject(),
>   g_drive_is_media_removable(),
>   g_mount_can_unmount() and
>   g_volume_can_mount()
> 
> all return FALSE. One of these functions is wrong. This should probably be
> forwarded to the GLib/GVfs/gnome-disk-utility/udisks (in decreasing priority)
> developers. Here's a reference to how we use these functions:
> 
> http://git.xfce.org/xfce/thunar/tree/thunar/thunar-gio-extensions.c#n409

I will check which of these functions return TRUE/FALSE and report later.

If Thunar/xfdesktop/xfce4-places-plugin show these volumes it would be a major usability improvement for me. I now have to navigate manually to my mount points under "/media" which is a waste of time.
Comment 5 Jannis Pohlmann editbugs 2011-05-26 23:02:38 CEST
(In reply to comment #4)
> (In reply to comment #3)
> > If you have your UID set correctly in /etc/fstab and whatever is necessary to
> > allow your user to mount/unmount the partition from the command line without
> > requiring authentication, and Thunar still does not show the partition, then
> > either GIO or udisks are malfunctioning.
> 
> Actually my user cannot unmount these volumes. I have to use sudo to unmount.

Our policy is not to display anything the current user cannot control. If a partition cannot be mounted and unmounted by the user logged in, it's not displayed. This at least will not change. 

You can maybe configure /etc/fstab so that your user can mount/unmount the partition without sudo. Maybe that works (if supported by the GIO stack).
Comment 6 sledgehammer_999 2011-05-26 23:14:27 CEST
(In reply to comment #5)
> Our policy is not to display anything the current user cannot control. If a
> partition cannot be mounted and unmounted by the user logged in, it's not
> displayed. This at least will not change. 

Bummer. I suppose you want to display a button/option to mount/unmount the volume to the user and fstab-mounts render it unusable... But this can be detected and the button/option not shown.

I feel that the team should reconsider the policy for this case... New Policy: Show (almost) everything but inform(visually?) the user that he doesn't have control over this or that.
Comment 7 Jannis Pohlmann editbugs 2011-05-26 23:20:28 CEST
I think that would cause all internal partitions to be displayed as well because, according to my knowledge, GIO always assumes they can be mounted by the user. I have a partition setup with separate partitions for /boot, /, /home etc. and all those partitions would show up as "200 MB Partition", "10 GB Partition" etc. 

That's hardly desirable.
Comment 8 sledgehammer_999 2011-05-26 23:25:59 CEST
(In reply to comment #7)
> I have a partition setup with separate partitions for /boot, /, /home
> etc. and all those partitions would show up as "200 MB Partition", "10 GB
> Partition" etc. 
> 
> That's hardly desirable.

Yes I see where you're coming from. This would be indeed be nasty. But one question (because I couldn't tell if you know or assume that Nautilus/gtk-open-dialog behave this way): If you have a Gtk "open/save common dialog" open do these partitions show up separately?
Comment 9 Lionel Le Folgoc 2012-10-31 18:14:41 CET
*** Bug 8861 has been marked as a duplicate of this bug. ***
Comment 10 Harald Judt editbugs 2015-04-17 16:04:25 CEST
Closing old bug.

Bug #7667

Reported by:
sledgehammer_999
Reported on: 2011-05-26
Last modified on: 2015-04-17
Duplicates (1):
  • 8861 Thunar does not show partitions that are in fstab

People

Assignee:
Jannis Pohlmann
CC List:
4 users

Version

Attachments

Additional information