You are not logged in.
Pages: 1
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
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
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
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
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
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
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
the patch made it to 3.17.2, so less wait for those who haven't downgraded
Offline
Pages: 1