You are not logged in.

#1 2010-08-04 04:29:52

sk280
Member
Registered: 2010-08-04
Posts: 2

[SOLVED] Xfce: Thunar not showing internal partitions

Hello All,

OS: Arch Linux (installed from latest core image) with Xfce4.6, LXDE, FluxBox installed.
Primary WM/DE: Xfce4.6
Installed Daemons: HAL & DBUS (Gamin is also installed)

Issue: Unable to view internal paritions (/dev/sda2 (WINDOWS) and /dev/sda5 (UBUNTU)) from Thunar.
I don't want to add manual entries in /etc/fstab. I want my file manager to just mount the partitions on request by left clicking on the side pane. Thunar (and thunar-volman) does not even show the volumes on the left.

However I've got this working with PCManFM (after lotsa googling) by installing gvfs and changing the /usr/share/polkit-1/actions/org.freedesktop.udisks.policy file as follows:

  <action id="org.freedesktop.udisks.filesystem-mount">
    <description>Mount a device</description>
    <description xml:lang="da">Montér en enhed</description>
    <message>Authentication is required to mount the device</message>
    <message xml:lang="da">Autorisering er påkrævet for at montere et fil system</message>
    <defaults>
      <allow_any>yes</allow_any>
      <allow_inactive>yes</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.udisks.filesystem-mount-system-internal">
    <description>Mount a system-internal device</description>
    <description xml:lang="da">Montér en intern enhed</description>
    <message>Authentication is required to mount the device</message>
    <message xml:lang="da">Autorisering er påkrævet for at montere et fil system</message>
    <defaults>
      <allow_any>yes</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

I have also installed gigolo and can use it to mount my internal partitions and then launch thunar, navigate to the mount point.

However I'd like to use Thunar natively for mounting my internal partitions dynamically (i.e no fstab entries), but AFAIK there is no native support for doing this in Thunar.

Any help would be appreciated..Thanks.

Last edited by sk280 (2010-08-05 03:21:37)

Offline

#2 2010-08-04 05:30:44

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [SOLVED] Xfce: Thunar not showing internal partitions

Thunar does not show internal partitions like it does with external ones. If you want that feature though, you have to report it upstream.

Last edited by anonymous_user (2010-08-04 05:31:17)

Offline

#3 2010-08-05 03:20:26

sk280
Member
Registered: 2010-08-04
Posts: 2

Re: [SOLVED] Xfce: Thunar not showing internal partitions

Thanks Anonymous_User, I figured as much. Will make do with PCManFM for working with internal partitions.

Offline

#4 2010-08-22 17:09:56

orenom
Member
Registered: 2010-08-22
Posts: 1

Re: [SOLVED] Xfce: Thunar not showing internal partitions

Hi,
my Thunar version (1.0.2) shows and mounts internal partitions using this patch:
-----------------------------------------------------------------------------------------

diff -ur old/Thunar-1.0.2/thunar-vfs/thunar-vfs-volume.c Thunar-1.0.2/thunar-vfs/thunar-vfs-volume.c
--- old/Thunar-1.0.2/thunar-vfs/thunar-vfs-volume.c     2010-05-21 17:10:52.000000000 +0000
+++ Thunar-1.0.2/thunar-vfs/thunar-vfs-volume.c 2010-08-22 17:53:31.000000000 +0000
@@ -354,6 +354,7 @@
     case THUNAR_VFS_VOLUME_KIND_AUDIO_CD:
     case THUNAR_VFS_VOLUME_KIND_MEMORY_CARD:
     case THUNAR_VFS_VOLUME_KIND_REMOVABLE_DISK:
+    case THUNAR_VFS_VOLUME_KIND_HARDDISK:
       return TRUE;

     default:
diff -ur old/Thunar-1.0.2/thunar-vfs/thunar-vfs-volume-hal.c Thunar-1.0.2/thunar-vfs/thunar-vfs-volume-hal.c
--- old/Thunar-1.0.2/thunar-vfs/thunar-vfs-volume-hal.c 2010-05-21 17:10:52.000000000 +0000
+++ Thunar-1.0.2/thunar-vfs/thunar-vfs-volume-hal.c     2010-08-22 18:09:00.000000000 +0000
@@ -515,6 +515,7 @@
           volume_hal->kind = THUNAR_VFS_VOLUME_KIND_USBSTICK;
         }
       else if (libhal_drive_uses_removable_media (hd)
+                       ||1
             || libhal_drive_is_hotpluggable (hd))
         {
           /* fallback to generic removable disk */

---------------------------------------------------------------------------------------
There is an issue:
Thunar doesnt Umount.
If I do it from shell, the partition disappers on left pane for a while

Bye


Gentoo user

Offline

Board footer

Powered by FluxBB