← Back to team overview

desktop-packages team mailing list archive

[Bug 635499] Re: Ignore broken directory permissions on UDF media

 

Apparently this patch never made it into udisks2 and therefore shows up
again in Ubuntu 14.04 and later.

** Also affects: udisks2 (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to udisks2 in Ubuntu.
https://bugs.launchpad.net/bugs/635499

Title:
  Ignore broken directory permissions on UDF media

Status in udisks package in Ubuntu:
  Fix Released
Status in udisks2 package in Ubuntu:
  New
Status in Baltix:
  New

Bug description:
  Binary package hint: gvfs

  lsb_release -rd
  Description:	Ubuntu maverick (development branch)
  Release:	10.10

  When I insert an UDF formated DVD Nautilus should automount it, and
  open a window presenting the files contained on the DVD disk.

  Instead of this, the CD/DVD ROM icon disappears from the Computer
  location, there is an icon that appears and instantly disappears in
  the Nautilus location tab, and there is no window presented with the
  DVD files. It is as if the disk is not mounted at all. But this is not
  entirely true.

  The DVD I'm trying to read is inserted into an external DVD rom. It's
  an ordinary Asus DVD writer inserted into some generic rack (I don't
  think this is important, but I'm mentioning it).

  This is what dmesg reports after powering the rack:
  ...
  [ 1807.912016] usb 1-5: new high speed USB device using ehci_hcd and address 4
  [ 1808.194385] Initializing USB Mass Storage driver...
  [ 1808.194438] usb-storage 1-5:1.0: Quirks match for vid 067b pid 3507: 110
  [ 1808.194451] scsi4 : usb-storage 1-5:1.0
  [ 1808.194508] usbcore: registered new interface driver usb-storage
  [ 1808.194509] USB Mass Storage support registered.
  [ 1809.199155] scsi 4:0:0:0: CD-ROM            ASUS     DRW-2014S1       1.01 PQ: 0 ANSI: 0 CCS
  [ 1809.477861] sr0: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
  [ 1809.477865] Uniform CD-ROM driver Revision: 3.20
  [ 1809.478052] sr 4:0:0:0: Attached scsi CD-ROM sr0
  [ 1809.478427] sr 4:0:0:0: Attached scsi generic sg3 type 5

  Inserting the UDF formated disk into the DVD reader.

  No window is open to present the DVD in nautilus, as if the DVD was
  not mounted at all. Before inserting the DVD there is a CD-ROM icon in
  Nautilus. Now it's gone too.

  But dmesg reports this:

  ...
  [ 2121.133211] UDF-fs: Partition marked readonly; forcing readonly mount
  [ 2121.171206] UDF-fs INFO UDF: Mounting volume '050927_1924', timestamp 2005/09/27 18:28 (1078)

  cat /etc/mtab output:

  /dev/sda6 / ext4 rw,errors=remount-ro,commit=0 0 0
  proc /proc proc rw,noexec,nosuid,nodev 0 0
  none /sys sysfs rw,noexec,nosuid,nodev 0 0
  fusectl /sys/fs/fuse/connections fusectl rw 0 0
  none /sys/kernel/debug debugfs rw 0 0
  none /sys/kernel/security securityfs rw 0 0
  none /dev devtmpfs rw,mode=0755 0 0
  none /dev/pts devpts rw,noexec,nosuid,gid=5,mode=0620 0 0
  none /dev/shm tmpfs rw,nosuid,nodev 0 0
  none /var/run tmpfs rw,nosuid,mode=0755 0 0
  none /var/lock tmpfs rw,noexec,nosuid,nodev 0 0
  none /lib/init/rw tmpfs rw,nosuid,mode=0755 0 0
  /dev/sda1 /boot ext4 rw,commit=0 0 0
  /dev/sda7 /home ext4 rw,commit=0 0 0
  binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,noexec,nosuid,nodev 0 0
  gvfs-fuse-daemon /home/petar/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=petar 0 0
  /dev/sr0 /media/cdrom udf ro,nosuid,nodev,utf8,user=petar 0 0

  So the DVD was mounted after all!

  Going to /media/cdrom with Nautilus presents an binary file named
  Dilbert. It's type is unknown and size unknown also. Permissions
  reports that "The permissions of "dilbert" could not be determined"

  Trying to scan /media/cdrom using a console:

  ls -al /media/cdrom 
  ls: cannot access /media/cdrom/.: Permission denied
  ls: cannot access /media/cdrom/..: Permission denied
  ls: cannot access /media/cdrom/dilbert: Permission denied
  total 0
  d????????? ? ? ? ?                ? .
  d????????? ? ? ? ?                ? ..
  ?????????? ? ? ? ?                ? dilbert

  Trying with sudo:

  sudo ls -al /media/cdrom
  [sudo] password for petar: 
  total 8
  dr--r--r-- 3 4294967295 4294967295   96 2005-09-27 18:28 .
  drwxr-xr-x 3 root       root       4096 2010-09-10 23:04 ..
  dr--r--r-- 4 4294967295 4294967295  152 2005-08-21 12:26 dilbert

  Going to root mode.

  rpetar@aurora:~$ sudo -s
  root@aurora:~# cd /media/cdrom/
  root@aurora:/media/cdrom# ls
  dilbert
  root@aurora:/media/cdrom# cd dilbert/
  root@aurora:/media/cdrom/dilbert# ls
  Season 1  Season 2
  root@aurora:/media/cdrom/dilbert# cd Season\ 1/
  root@aurora:/media/cdrom/dilbert/Season 1# ls
  Episode 101 - The Name.avi         Episode 104 - The Takeover.avi   Episode 107 - Tower of Babel.avi     Episode 110 - Y2K.avi      Episode 113 - The Infomercial.avi
  Episode 102 - The Competition.avi  Episode 105 - Testing.avi        Episode 108 - The Little People.avi  Episode 111 - Charity.avi
  Episode 103 - The Prototype.avi    Episode 106 - Elbonian Trip.avi  Episode 109 - The Knack.avi          Episode 112 - Holiday.avi
  root@aurora:/media/cdrom/dilbert/Season 1# cp Episode\ 101\ -\ The\ Name.avi /home/petar/Desktop/
  cp: reading `Episode 101 - The Name.avi': Input/output error
  root@aurora:/media/cdrom/dilbert/Season 1# cp Episode\ 107\ -\ Tower\ of\ Babel.avi /home/petar/Desktop/

  The file is copied as it should be.

  Unmounting the volume fails:

  root@aurora:/media/cdrom/dilbert/Season 1# umount /media/cdrom 
  umount: /media/cdrom: device is busy.
          (In some cases useful info about processes that use
           the device is found by lsof(8) or fuser(1))

  Now ejecting the DVD disk and inserting another one does not work,
  because the next disk is not auto-mounted anymore, probably because of
  the umount failure.

  And last for this first part of this report this is what my /etc/fstab
  looks like:

  proc            /proc           proc    nodev,noexec,nosuid 0       0
  # / was on /dev/sda6 during installation
  UUID=6f239c9b-4981-4bbf-839d-b531b41b154c /               ext4    errors=remount-ro 0       1
  # /boot was on /dev/sda1 during installation
  UUID=499adc99-43f9-4c91-9768-9e4d13dac1f0 /boot           ext4    defaults        0       2
  # /home was on /dev/sda7 during installation
  UUID=a18542eb-e3ce-4b4f-af52-843c2e18f027 /home           ext4    defaults        0       2
  # swap was on /dev/sda5 during installation
  UUID=1634264c-dd51-435d-b358-4bf0b4d446a0 none            swap    sw              0       0
  /dev/scd0       /media/cdrom   udf,iso9660 user,noauto,exec,utf8 0       0

  I added the last line myself consulting another Maverick user because
  it was present on his system, but his installation was an upgrade from
  Lucid while my system is a clean Maverick installation done by using
  the ubuntu-10.10-beta-alternate-i386.iso installed on a USB startup
  disk. I'm mentioning this because I believe if the installation was
  done using an installation CD instead of  USB stick, this line would
  have been added to my /etc/fstab too (but I'm not sure about this).

  I think that it's also important to mention this:
  This disk was not accessible in Lucid too!
  I am not talking about just one UDF DVD that is not accessible, but something like 15-20 UDF formated DVDs!
  The DVDs are not mine but I know they are all created on a Windows XP machine and probably by Nero.
  The reason I'm reporting this bug is because this DVDs WERE READABLE on some of the previous versions of Ubuntu. I can't be sure about the specific version, but I think I could read them when I was using Ubuntu 9.04 (or it might have been Ubuntu 9.10)
  And most importantly, Maverick CAN MOUNT some UDF formated DVDs properly!!!

  ProblemType: Bug
  DistroRelease: Ubuntu 10.10
  Package: gvfs 1.6.3-0ubuntu2
  ProcVersionSignature: Ubuntu 2.6.35-20.29-generic 2.6.35.4
  Uname: Linux 2.6.35-20-generic i686
  NonfreeKernelModules: nvidia
  Architecture: i386
  Date: Sat Sep 11 05:44:57 2010
  InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Alpha i386 (20100831.2)
  ProcEnviron:
   LANG=en_US.utf8
   SHELL=/bin/bash
  SourcePackage: gvfs
  Symptom: storage
  Title: Documents cannot be opened in desktop UI on storage device

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/udisks/+bug/635499/+subscriptions