You are not logged in.

#1 2014-10-25 14:50:04

karper
Member
Registered: 2008-08-10
Posts: 52

[SOLVED] Unable to mount bluray disk

Here's how I have set up my system to mount a bluray disk. First, I created the preferred mount point: /mnt/bluray. Then, I added an entry to my fstab:

# Blu-ray
/dev/sr0  /mnt/bluray udf ro,users,noauto 0 0

Now, I could simply say, mount /dev/sr0 and it worked.

Rather recently, this has stopped working with this error message:

$ mount /dev/sr0
mount: mount /dev/sr0 on /mnt/bluray failed: Stale file handle

I'm not sure what triggered this issue, but it persists across reboots. I can mount a (data) CD with sudo mount /dev/sr0 -t iso9660 /mnt/bluray and it works perfectly fine. Seemingly, only blurays are affected by this stale file handle.

Any ideas on how to fix this? Is there anything else I should be checking?

Thanks!

EDIT: I thought I should add things I have tried so far:

  • I have tried using a different bluray drive and get the same error. So, I rule out issues with the drive.

  • I have tried using different disks. So, I rule out issues with the disk.

  • I have tried rebooting. No change. Same error.

  • System is up to date.

The only relevant google result is a denvercoder9 on the opensuse forums.

Last edited by karper (2014-10-27 01:56:15)

Offline

#2 2014-10-26 00:03:57

Notabee
Member
Registered: 2014-10-25
Posts: 1

Re: [SOLVED] Unable to mount bluray disk

Running into this issue as well since the most recent update to kernel 3.17.1-1-ARCH. I replicated your fstab setup to test.

Here is some strace output:

4874  16:56:05 mount("/dev/sr0", "/mnt/bluray", "udf", MS_MGC_VAL|MS_RDONLY|MS_NOSUID|MS_NODEV|MS_NOEXEC, NULL) = -1 ESTALE (Stale file handle)
4874  16:56:07 write(2, "mount: ", 7)   = 7
4874  16:56:07 write(2, "mount /dev/sr0 on /mnt/bluray failed", 36) = 36
4874  16:56:07 write(2, ": ", 2)        = 2
4874  16:56:07 write(2, "Stale file handle\n", 18) = 18
4874  16:56:07 close(1)                 = 0
4874  16:56:07 close(2)                 = 0
4874  16:56:07 exit_group(32)           = ?
4874  16:56:07 +++ exited with 32 +++ 

Here is some dmesg output:

[50084.553511] UDF-fs: warning (device sr0): udf_find_metadata_inode_efe: metadata inode efe not found
[50086.464677] UDF-fs: warning (device sr0): udf_find_metadata_inode_efe: metadata inode efe not found
[50086.464680] UDF-fs: error (device sr0): udf_load_metadata_files: Both metadata and mirror metadata inode efe can not found
[50086.464682] UDF-fs: error (device sr0): udf_load_partdesc: error loading MetaData partition map 1

I really have no idea what I'm looking at, but I tried a kernel debug trace for the first time and the mount process seemed to fail on a udf function:

 0)               |                            udf_alloc_i_data [udf]() {
 2)   0.101 us    |          idle_exit_fair();
 0)               |                              __kmalloc() {
 2)   0.376 us    |        }
 0)   0.087 us    |                                kmalloc_slab();
 2)               |        pick_next_entity() {
 2)   0.029 us    |          clear_buddies();
 0)   0.598 us    |                              }
 2)   0.381 us    |        }
 0)   0.942 us    |                            }
 2)               |        set_next_entity() {
 2)   0.086 us    |          update_stats_wait_end();
 0)   0.096 us    |                            _raw_read_lock();
 2)   0.462 us    |        }
 2)   2.058 us    |      }
 0)   0.031 us    |                            _raw_read_unlock();
 0)   0.031 us    |                            __brelse();
 0)               |                            iget_failed() {
 0)               |                              make_bad_inode() {
 0)               |                                __remove_inode_hash() {
 0)   0.162 us    |                                  _raw_spin_lock(); 

Has anyone else run into this problem, or found any more info?

Offline

#3 2014-10-26 13:40:44

nstgc
Member
Registered: 2014-03-17
Posts: 393

Re: [SOLVED] Unable to mount bluray disk

I too do something similar, however in my fstab, instead of specifying udf explictitly I have it as auto

/dev/sr0      /mnt/bd                              auto  noauto,user  0 0 

This works for me. Neither ro nor udf are nessisary since both are assumed.

Last edited by nstgc (2014-10-26 13:41:10)

Offline

#4 2014-10-26 17:05:53

lboregard
Member
Registered: 2014-05-19
Posts: 17

Re: [SOLVED] Unable to mount bluray disk

facing the same issue ... I mount a bluray but via command line

> sudo mount -t udf "/mnt/staging/films/Movie.iso" /mnt/iso -o loop
mount: mount /dev/loop2 on /mnt/iso failed: Stale file handle

Offline

#5 2014-10-26 18:57:12

lboregard
Member
Registered: 2014-05-19
Posts: 17

Re: [SOLVED] Unable to mount bluray disk

well there are more details here http://joeharrison.me/post/blu-rays-in-linux-3.17/

seems like we have to wait for 3.18 ?

Last edited by lboregard (2014-10-26 18:57:23)

Offline

#6 2014-10-27 01:55:39

karper
Member
Registered: 2008-08-10
Posts: 52

Re: [SOLVED] Unable to mount bluray disk

Thanks all for solving the mystery.

It appears to be a bug in 3.17. The fix is already in place for 3.18 (whenever it's packaged). Meanwhile, I can confirm that downgrading the kernel to 3.16.4 lets you mount all the blurays you want to watch!

Thanks again.

Offline

#7 2014-10-29 12:08:54

zebulon
Member
Registered: 2008-10-20
Posts: 359

Re: [SOLVED] Unable to mount bluray disk

Thanks! I was also wondering what was going on. This only happened with movies, not with BD-R I had burnt myself. Glad this will be fixed.

Offline

#8 2014-11-01 00:35:10

lboregard
Member
Registered: 2014-05-19
Posts: 17

Re: [SOLVED] Unable to mount bluray disk

the patch made it to  3.17.2, so less wait for those who haven't downgraded smile

https://git.kernel.org/cgit/linux/kerne … d2=v3.17.1

Offline

Board footer

Powered by FluxBB