Ignore broken directory permissions on UDF media
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Baltix |
New
|
Undecided
|
Unassigned | ||
udisks (Ubuntu) |
Fix Released
|
Undecided
|
Martin Pitt | ||
udisks2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
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=
proc /proc proc rw,noexec,
none /sys sysfs rw,noexec,
fusectl /sys/fs/
none /sys/kernel/debug debugfs rw 0 0
none /sys/kernel/
none /dev devtmpfs rw,mode=0755 0 0
none /dev/pts devpts rw,noexec,
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,
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/
gvfs-fuse-daemon /home/petar/.gvfs fuse.gvfs-
/dev/sr0 /media/cdrom udf ro,nosuid,
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/
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:
dilbert
root@aurora:
root@aurora:
Season 1 Season 2
root@aurora:
root@aurora:
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:
cp: reading `Episode 101 - The Name.avi': Input/output error
root@aurora:
The file is copied as it should be.
Unmounting the volume fails:
root@aurora:
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-
# /boot was on /dev/sda1 during installation
UUID=499adc99-
# /home was on /dev/sda7 during installation
UUID=a18542eb-
# swap was on /dev/sda5 during installation
UUID=1634264c-
/dev/scd0 /media/cdrom udf,iso9660 user,noauto,
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-
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
ProcVersionSign
Uname: Linux 2.6.35-20-generic i686
NonfreeKernelMo
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
Related branches
summary: |
- Nautilus fails to mount some UDF DVDs properly + [Maverick] Nautilus fails to mount some UDF DVDs properly |
affects: | linux (Ubuntu) → udisks (Ubuntu) |
Changed in udisks (Ubuntu): | |
status: | Confirmed → Triaged |
tags: | added: patch |
Changed in udisks (Ubuntu): | |
assignee: | nobody → Martin Pitt (pitti) |
status: | Triaged → In Progress |
Now I'm trying to mount an UDF formated DVD that is mounted properly. It is and purchased DVD Video disk. This time everything works as expected. The disk is mounted and I'm presented with an window asking me what action I want take next. The default is to open Movie Player.
dmesg output:
...
[ 210.525173] UDF-fs: Partition marked readonly; forcing readonly mount
[ 210.550422] UDF-fs INFO UDF: Mounting volume 'DVDVolume', timestamp 2036/02/07 12:58 (1078)
petar@aurora:~$ cat /etc/mtab remount- ro,commit= 0 0 0 nosuid, nodev 0 0 nosuid, nodev 0 0 fuse/connection s fusectl rw 0 0 security securityfs rw 0 0 nosuid, gid=5,mode= 0620 0 0 nosuid, nodev 0 0 fs/binfmt_ misc binfmt_misc rw,noexec, nosuid, nodev 0 0 fuse-daemon rw,nosuid, nodev,user= petar 0 0 nodev,utf8, user=petar 0 0
/dev/sda6 / ext4 rw,errors=
proc /proc proc rw,noexec,
none /sys sysfs rw,noexec,
fusectl /sys/fs/
none /sys/kernel/debug debugfs rw 0 0
none /sys/kernel/
none /dev devtmpfs rw,mode=0755 0 0
none /dev/pts devpts rw,noexec,
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,
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/
gvfs-fuse-daemon /home/petar/.gvfs fuse.gvfs-
/dev/sr0 /media/cdrom udf ro,nosuid,
Some forums state that there are different UDF format versions. I've read complaints that say that UDF formated DVDs created with Vista are not accessible under Linux/Ubuntu (as Vista uses some specific UDF format). I don't remember where, but one guy was claiming that newer UDF formats store some permission settings and that's why some tweaks have to be made in /etc/fstab have to be made in order to make this kind of UDF DVDs accesible to normal users (instead of only to the root user???) I find this an important hint for where to look for when trying to fix this bug, moreover because I tried accessing the previous mentioned DVDs with the last line in /etc/fstab removed (as it was on a cleanly installed Maverick). I'm getting the same end results, and the only deference is that when the line is removed, the system mounts the DVDs in some other directory.
This is what i get when I remove the line and insert another UDF DVDs that is inacessible.
dmesg
...
[ 87.355470] UDF-fs: Partition marked readonly; forcing readonly mount
[ 87.387023] UDF-fs INFO UDF: Mounting volume '071014_1703', timestamp 2007/10/14 16:03 (1078)
petar@aurora:~$ cat /etc/mtab remount- ro,commit= 0 0 0 nosuid, nodev 0 0 nosuid, nodev 0 0 fuse/connection s fusectl rw 0 0 security securityfs rw 0 0 nosuid, gid=5,mode= 0620 0 0 nosuid, nodev 0 0 fs/binfmt_ misc binfmt_misc rw,noexec, nosuid, nodev 0 0...
/dev/sda6 / ext4 rw,errors=
proc /proc proc rw,noexec,
none /sys sysfs rw,noexec,
fusectl /sys/fs/
none /sys/kernel/debug debugfs rw 0 0
none /sys/kernel/
none /dev devtmpfs rw,mode=0755 0 0
none /dev/pts devpts rw,noexec,
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,
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/