openSUSE Forums > Hardware » DVD Automounting UDF Problems.

Go Back   openSUSE Forums > Hardware
Forums FAQ Members List Search Today's Posts Mark Forums Read


Hardware Questions about drivers, peripheral cabling, configuration

Reply
Page 2 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 24-May-2009, 22:11
Puzzled Penguin
 
Join Date: Oct 2008
Posts: 34
CynicalPride hasn't been rated much yet
Default Re: DVD Automounting UDF Problems.

caf4926,


Sadly, I had already located and attempted that solution before creating my original post. It didn't help unfortunately.

Thanks for trying
Reply With Quote
  #12 (permalink)  
Old 11-Jun-2009, 03:04
Busy Penguin
 
Join Date: Jun 2008
Posts: 281
KJ44 hasn't been rated much yet
Default Re: DVD Automounting UDF Problems.

I have the same problem as the original poster. I even bought a new LG burner (only UKP 18) thinking the DVD laser had died.

It seems the problem is only on UDF DVDs. I can burn and verify a DVD with k3b, it won't mount on my machine, but I can recover the data using dd on my machine, and the DVD reads on other machines.

The bizarre thing is, everything has worked fine seemingly for months. So some package I've updated or "tidied up" seems to be the cause. As for tidying up, I removed some KDE4 stuff because I run Gnome.

openSUSE 11.1 x86_64

Code:
mount: block device /dev/sr0 is write-protected, mounting read-only mount: wrong fs type, bad option,
 bad superblock on /dev/sr0, missing codepage or helper program, or other error In some cases useful
 info is found in syslog - try dmesg | tail or so
Reply With Quote
  #13 (permalink)  
Old 11-Jun-2009, 12:46
Busy Penguin
 
Join Date: Jun 2008
Posts: 281
KJ44 hasn't been rated much yet
Default Re: DVD Automounting UDF Problems.

Woohoo! I've made some progress but I'd appreciate further help in eliminating this issue, which seems to affect many users if my Google results are anything to go by.

Credit where credit is due:
Ili Estas Simioj » 2009 » May
How to mount UDF format DVD+R on Ubuntu Jaunty

I can now mount a UDF DVD+R burned with k3b like this:
Code:
sudo mount -t udf /dev/sr0 /mnt -o ro,session=0,lastblock=1
If I omit lastblock=1 the mount fails with:
Code:
mount: wrong fs type, bad option, bad superblock on /dev/sr0,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
Now, it seems that some people are having fun with UDF disks written on Vista as multisession. It also seems that k3b attempts to write multisession disks by default - although I've never even tried to add a second session.

So I think the problem is caused by the combination of UDF and multisession. I'll pursue this, but I'd appreciate feedback. I'm no guru or anything, just a methodical person working his way through Google results.

In due course, any help in configuring hal, gnome-mount, PolicyKit or whatever it is would come in handy.
Reply With Quote
  #14 (permalink)  
Old 12-Jun-2009, 13:20
Puzzled Penguin
 
Join Date: Oct 2008
Posts: 34
CynicalPride hasn't been rated much yet
Default Re: DVD Automounting UDF Problems.

KJ,


Thanks for the message, I read the forums, but hadn't bothered checking on this issue since it had seemed to die. In fact I had reinstalled my previous DVD burner, and gifted the LG to my kids in their machine.


I'm not sure how much your issue matches mine off the top of my head, I was able to mount the DVD media by forcing the iso9660 file system, as opposed to the UDF file system.

Code:
mount -t iso9660 /dev/sr1 /mount/media
I was looking for the same thing you seem to be looking for now, a way to change the command that is being used to automount the media. I am not familiar at all with HAL, policykit etc. etc. It seems no one knew the solution, thus I decided to live with my current drive, and pass the LG down to my kids, who use XP Pro.

If you make any further progress on the automounting issue, or someone has a solution for this problem, I would love to hear about it.

Sincerely
CynicalPride
Reply With Quote
  #15 (permalink)  
Old 13-Jun-2009, 07:00
Busy Penguin
 
Join Date: Jun 2008
Posts: 281
KJ44 hasn't been rated much yet
Default Re: DVD Automounting UDF Problems.

I found the gnome-mount command, but it doesn't seems to recognise the options I passed to /bin/mount to make things work.

Code:
gnome-mount -d /dev/sr0 -f udf -o ro,session=0,lastblock=1
I've figured out (I think) how to enter any gnome-mount options in gconf so they are picked up by Nautilus.

Apropos mounting a DVD as iso9660, I think that's fine unless any of your files exceeds 2 Gbytes.

I burned a test DVD with a 2.5 Gbyte file in k3b with the multisession flag set to None instead of Auto, that does not seem to have made any difference.
Reply With Quote
  #16 (permalink)  
Old 13-Jun-2009, 08:01
Busy Penguin
 
Join Date: Jun 2008
Posts: 281
KJ44 hasn't been rated much yet
Default Re: DVD Automounting UDF Problems.

Woohoo! I think I've sorted this out. However, I'd advise caution because I haven't regression tested in any depth.

So, the issue is how to tell gnome-mount to use session=0 and lastmount=1.

1) Use the gconf-editor and using the left-hand pane drill down to the "folder"
Code:
/system/storage/default_options/udf
2) Edit the mount_options key by right clicking. My options now say
Code:
uid=,ro,session=0,lastblock=1
Looks good, but won't work as-is, because you have to tell "hal" to allow you to use the options.

3) As root (Danger Will Robinson), make a backup copy of and then use your favourite editor on the file
Code:
/usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi
Around line 260, is a block of XML. Add the two lines I've highlighted in bold - be careful to add them in the right place!

Code:
      <!-- udf -->
      <match key="volume.fstype" string="udf">
        <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux">
          <append key="volume.mount.valid_options" type="strlist">uid=</append>
          <append key="volume.mount.valid_options" type="strlist">umask=</append>
          <append key="volume.mount.valid_options" type="strlist">session=</append>
          <append key="volume.mount.valid_options" type="strlist">lastblock=</append>
        </match>
        <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="FreeBSD">
          <append key="volume.mount.valid_options" type="strlist">-C=</append>
          <append key="volume.mount.valid_options" type="strlist">-v</append>
        </match>
      </match>
4) Restart the hal daemon. One can do this inside YaST, but I used
Code:
sudo /usr/sbin/rchal restart
I then checked I hadn't broken HAL by automounting a memory stick and a USB key.

The DVD+R mounts and is readable.

A minor annoyance, which seems to be the new burner hardware, is that it takes a while for the system to realise that one isn't reading from the DVD anymore, say ten seconds, before one can unmount and eject.
Reply With Quote
Reply
Page 2 of 2 1 2

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2