Thunar crashes trying to open mounted DVD with UDF

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
peter_b
Chatterbox
Posts: 383
Joined: Tue Nov 12, 2013 2:05 am

Thunar crashes trying to open mounted DVD with UDF

Post by peter_b »

[PROBLEM]
I've created a backup of an optical data-disk, using dvdisaster. Usually this is ISO9660, but in some cases it can also be UDF (Universal Disk Format)

So far, everything's fine and I can mount the created .iso file, using the following command:

Code: Select all

$ mount -o loop -t udf test.iso /media/test
But as soon as I try to access it using Thunar (XFCE's file explorer), Thunar crashes with the following errors:
(thunar:8366): GLib-GIO-CRITICAL **: g_mount_get_root: assertion `G_IS_MOUNT (mount)' failed
(thunar:8366): GLib-GIO-CRITICAL **: g_file_hash: assertion `G_IS_FILE (file)' failed
(thunar:8366): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed
(thunar:8366): GLib-GIO-CRITICAL **: g_file_query_info: assertion `G_IS_FILE (file)' failed
(thunar:8366): GLib-GIO-CRITICAL **: g_file_info_get_file_type: assertion `G_IS_FILE_INFO (info)' failed
(thunar:8366): GLib-GIO-CRITICAL **: g_file_get_basename: assertion `G_IS_FILE (file)' failed
(thunar:8366): GLib-GIO-CRITICAL **: g_file_has_prefix: assertion `G_IS_FILE (file)' failed
(thunar:8366): GLib-GIO-CRITICAL **: g_file_is_native: assertion `G_IS_FILE (file)' failed
(thunar:8366): GLib-GIO-CRITICAL **: g_file_get_uri: assertion `G_IS_FILE (file)' failed
Segmentation fault (core dumped)
This was Xubuntu 12.04 (Precise Pangolin, LTS) running Thunar v1.2.3 (XFCE 4.8).

[SOLUTION]
I've now upgraded to Thunar to v1.6.2 (XFCE 4.10), using the XFCE-PPAs:

Code: Select all

$ sudo add-apt-repository ppa:xubuntu-dev/xfce-4.10
User avatar
peter_b
Chatterbox
Posts: 383
Joined: Tue Nov 12, 2013 2:05 am

UDF: Permission denied

Post by peter_b »

Another (unrelated) problem however is, that the default permissions for UDF are by default set to "r--r--r" in Ubuntu (Bug #635499)

A quick /etc/fstab hack can be used as a workaround:

Code: Select all

/dev/sr0        /media/cdrom0    auto    rw,user,noauto,exec,utf8,mode=0644,dmode=0755 0       0
/dev/sr1        /media/cdrom1    auto    rw,user,noauto,exec,utf8,mode=0644,dmode=0755 0       0
The additional parts are the "mode" and "dmode" options with proper access rights:
mode=0644 (rw-r--r--)
dmode=0755 (rwxr-xr-x)
If you want to mount an ISO file, you must supply the mode/dmode parameters manually:

Code: Select all

$ sudo mount -o loop,mode=0644,dmode=0755 test.iso /media/test
Post Reply