Possible problem mounting Video DVD
I am hoping this is the right place for some advice on an issue I have with one type of Video DVD created on my Panasonic DVD Recorder. If this is not the right place, I apologise and would appreciate being directed to the correct team.
I have been having problems with Video DVDs created on my Panasonic DVD recorder which records terrestrial TV. They will not mount as browsable by a normal user on my Fedora 20 64bit system. All other Video DVDs from my Sony and LG recorders mount as browsable as they should. I can browse the directory structure OK with these failing DVDs only if I login as root.
The same problem happens on two different PCs so it is unlikely to be a hardware problem.
I can play these Video DVDs without any problem in Dragon Player, VLC or Kaffeine as a normal user on both PCs but any attempt to open them to rip the video in say K3B fails.
If I boot the PCs into Windows XP then I can browse the file structure as a normal user without any problem and on XP Pinnacle Studio can import the video with no problem at all.
The DVDs in question show the following error messages when placed in the drive:-
Jan 27 12:31:14 F20Main kernel: [16280.275124] sr 0:0:0:0: [sr0] Invalid command failure Jan 27 12:31:14 F20Main kernel: [16280.275137] sr 0:0:0:0: [sr0] Jan 27 12:31:14 F20Main kernel: [16280.275143] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE Jan 27 12:31:14 F20Main kernel: [16280.275149] sr 0:0:0:0: [sr0] Jan 27 12:31:14 F20Main kernel: [16280.275153] Sense Key : Illegal Request [current] Jan 27 12:31:14 F20Main kernel: [16280.275160] sr 0:0:0:0: [sr0] Jan 27 12:31:14 F20Main kernel: [16280.275166] Add. Sense: Invalid field in cdb Jan 27 12:31:14 F20Main kernel: [16280.275171] sr 0:0:0:0: [sr0] CDB: Jan 27 12:31:14 F20Main kernel: [16280.275174] Write(10): 2a 00 00 00 00 40 00 00 01 00 Jan 27 12:31:14 F20Main kernel: [16280.275190] end_request: critical target error, dev sr0, sector 256 Jan 27 12:31:14 F20Main kernel: [16280.275199] Buffer I/O error on device sr0, logical block 64 Jan 27 12:31:14 F20Main kernel: [16280.275203] lost page write due to I/O error on sr0 Jan 27 12:31:14 F20Main kernel: [16280.491663] UDF-fs: INFO Mounting volume 'DVD_VIDEO_RECORDER', timestamp 2014/01/26 14:04 (1000) Jan 27 12:31:14 F20Main udisksd[1084]: Mounted /dev/sr0 at /run/media/stuart/DVD_VIDEO_RECORDER on behalf of uid 1000
Is this a potential bug in the mount command?
Stuart
Signature · 2 lines
Website: http://www.stella-maris.org.uk or: http://www.broadstairs.org
Quoted 28 lines
From: Stuart T Rogers <[email protected]>
I have been having problems with Video DVDs created on my Panasonic DVD recorder which records terrestrial TV.
Jan 27 12:31:14 F20Main kernel: [16280.275124] sr 0:0:0:0: [sr0] Invalid command failure Jan 27 12:31:14 F20Main kernel: [16280.275137] sr 0:0:0:0: [sr0] Jan 27 12:31:14 F20Main kernel: [16280.275143] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE Jan 27 12:31:14 F20Main kernel: [16280.275149] sr 0:0:0:0: [sr0] Jan 27 12:31:14 F20Main kernel: [16280.275153] Sense Key : Illegal Request [current] Jan 27 12:31:14 F20Main kernel: [16280.275160] sr 0:0:0:0: [sr0] Jan 27 12:31:14 F20Main kernel: [16280.275166] Add. Sense: Invalid field in cdb Jan 27 12:31:14 F20Main kernel: [16280.275171] sr 0:0:0:0: [sr0] CDB: Jan 27 12:31:14 F20Main kernel: [16280.275174] Write(10): 2a 00 00 00 00 40 00 00 01 00 Jan 27 12:31:14 F20Main kernel: [16280.275190] end_request: critical target error, dev sr0, sector 256 Jan 27 12:31:14 F20Main kernel: [16280.275199] Buffer I/O error on device sr0, logical block 64 Jan 27 12:31:14 F20Main kernel: [16280.275203] lost page write due to I/O error on sr0 Jan 27 12:31:14 F20Main kernel: [16280.491663] UDF-fs: INFO Mounting volume 'DVD_VIDEO_RECORDER', timestamp 2014/01/26 14:04 (1000) Jan 27 12:31:14 F20Main udisksd[1084]: Mounted /dev/sr0 at
Quoted 3 lines
/run/media/stuart/DVD_VIDEO_RECORDERon behalf of uid 1000Is this a potential bug in the mount command?
I'm no expert. It looks like the kernel mount() is actually getting done correctly, given the message "Mounted /dev/sr0 ...". Given that, it's be surprising if the mount *command* would fail, since the command is by default deaf to the exactly format of the volume. What output do you get from the command?
Dale
Quoted 38 lines · Dale R. Worley
Quoted 28 lines
From: Stuart T Rogers <[email protected]>
I have been having problems with Video DVDs created on my Panasonic DVD recorder which records terrestrial TV.
Jan 27 12:31:14 F20Main kernel: [16280.275124] sr 0:0:0:0: [sr0] Invalid command failure Jan 27 12:31:14 F20Main kernel: [16280.275137] sr 0:0:0:0: [sr0] Jan 27 12:31:14 F20Main kernel: [16280.275143] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE Jan 27 12:31:14 F20Main kernel: [16280.275149] sr 0:0:0:0: [sr0] Jan 27 12:31:14 F20Main kernel: [16280.275153] Sense Key : Illegal Request [current] Jan 27 12:31:14 F20Main kernel: [16280.275160] sr 0:0:0:0: [sr0] Jan 27 12:31:14 F20Main kernel: [16280.275166] Add. Sense: Invalid field in cdb Jan 27 12:31:14 F20Main kernel: [16280.275171] sr 0:0:0:0: [sr0] CDB: Jan 27 12:31:14 F20Main kernel: [16280.275174] Write(10): 2a 00 00 00 00 40 00 00 01 00 Jan 27 12:31:14 F20Main kernel: [16280.275190] end_request: critical target error, dev sr0, sector 256 Jan 27 12:31:14 F20Main kernel: [16280.275199] Buffer I/O error on device sr0, logical block 64 Jan 27 12:31:14 F20Main kernel: [16280.275203] lost page write due to I/O error on sr0 Jan 27 12:31:14 F20Main kernel: [16280.491663] UDF-fs: INFO Mounting volume 'DVD_VIDEO_RECORDER', timestamp 2014/01/26 14:04 (1000) Jan 27 12:31:14 F20Main udisksd[1084]: Mounted /dev/sr0 atQuoted 3 lines
/run/media/stuart/DVD_VIDEO_RECORDERon behalf of uid 1000Is this a potential bug in the mount command?
I'm no expert. It looks like the kernel
mount()is actually getting done correctly, given the message "Mounted/dev/sr0...". Given that, it's be surprising if the mount *command* would fail, since the command is by default deaf to the exactly format of the volume. What output do you get from the command?
Quoted 6 lines
Dale
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Sorry I did not make myself completely clear, these disks mount with the wrong permissions, my user in this case uid 1000 has no access to the directory structure of the DVD, either a filemanager or cd in a console gets permission denied. All other DVDs I create from other recorders will mount with uid 1000 having read access to the directory structure.
Stuart
Signature · 2 lines
Website: http://www.stella-maris.org.uk or: http://www.broadstairs.org
Quoted 7 lines
From: Stuart T Rogers <[email protected]>
Sorry I did not make myself completely clear, these disks mount with the wrong permissions, my user in this case uid 1000 has no access to the directory structure of the DVD, either a filemanager or cd in a console gets permission denied. All other DVDs I create from other recorders will mount with uid 1000 having read access to the directory structure.
Can you provide the exact mount command that you are using, an "ls -al" showing what user/group/permissions the files *are* showing up as, etc.? There's a tremendous amount of information that you're not telling us, and even if I had your DVD and your computer in hand, I couldn't begin to verify that I'm seeing the same problem you are having.
"How to Report Bugs Effectively"
http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
Dale
Quoted 15 lines · Dale R. Worley
Quoted 7 lines
From: Stuart T Rogers <[email protected]>
Sorry I did not make myself completely clear, these disks mount with the wrong permissions, my user in this case uid 1000 has no access to the directory structure of the DVD, either a filemanager or cd in a console gets permission denied. All other DVDs I create from other recorders will mount with uid 1000 having read access to the directory structure.
Can you provide the exact mount command that you are using, an "ls -al" showing what user/group/permissions the files *are* showing up as, etc.? There's a tremendous amount of information that you're not telling us, and even if I had your DVD and your computer in hand, I couldn't begin to verify that I'm seeing the same problem you are having.
Quoted 5 lines
"How to Report Bugs Effectively"
http://www.chiark.greenend.org.uk/~sgtatham/bugs.htmlDale
OK let me explain, I am not issuing any mount commands myself. I place the DVD in the drive and close it, wait until it appears in the device notifier and select action Open in File Manager, when it opens having been mounted by the system at run/media/stuart/DVD_RECORDER the response from Dolphin is that the permissions wont allow me to open the root directory of the drive for browsing. If I try to play the video using Dragon etc again this works OK the permissions it is mounted with do not stop that action.
This should work. It does work for every other type of DVD Video that I use so long as it is NOT created on the Panasonic DVD Recorder.
I have had a thread open in Fedora forums at http://forums.fedoraforum.org/showthread.php?t=296874 which you can review to see what has been tried.
I dont expect to have to do any mount commands manually - the system should handle it for me.
Stuart
Signature · 2 lines
Website: http://www.stella-maris.org.uk or: http://www.broadstairs.org
Quoted 10 lines
From: Stuart T Rogers <[email protected]>
OK let me explain, I am not issuing any mount commands myself. I place the DVD in the drive and close it, wait until it appears in the device notifier and select action Open in File Manager, when it opens having been mounted by the system at run/media/stuart/DVD_RECORDER the response from Dolphin is that the permissions wont allow me to open the root directory of the drive for browsing. If I try to play the video using Dragon etc again this works OK the permissions it is mounted with do not stop that action.
In regard to *playing* the videos, it's possible that the players don't mount the DVD as a file system at all, so the fact that they work isn't particularly informative.
http://forums.fedoraforum.org/showthread.php?t=296874
It looks like Skull One in that thread has the best explanation. I'm not familiar with the details of mounting DVDs, but he suggests that the directories /run/media/stuart/DVD_VIDEO_RECORDER and /run/media/stuart/LG_VDR *on your disk* may have different permissions, and those permissions leak into the permissions seen when a DVD is mounted there. So what are the permissions on those directories (when no DVD is mounted)?
In any case, it's unlikely to be a problem that this mailing list deals with. We only handle the mount executable. One possibility is that the DVD mount and processing code in the kernel is providing unreasonable permission values (after all, it synthesizes them), in which case the fix is a kernel change. Another possibility is that adjusting the permissions of /run/media/stuart/DVD_VIDEO_RECORDER will make the problem go away, in which case it can reasonably be considered to be a configuration error. It's also possible that whatever is automounting the DVD isn't being smart enough about the permissions it is setting up for the DVD file system. That would be a problem for the a different mailing list.
Dale
Quoted 37 lines · Dale R. Worley
Quoted 10 lines
From: Stuart T Rogers <[email protected]>
OK let me explain, I am not issuing any mount commands myself. I place the DVD in the drive and close it, wait until it appears in the device notifier and select action Open in File Manager, when it opens having been mounted by the system at run/media/stuart/DVD_RECORDER the response from Dolphin is that the permissions wont allow me to open the root directory of the drive for browsing. If I try to play the video using Dragon etc again this works OK the permissions it is mounted with do not stop that action.
In regard to *playing* the videos, it's possible that the players don't mount the DVD as a file system at all, so the fact that they work isn't particularly informative.
http://forums.fedoraforum.org/showthread.php?t=296874
It looks like Skull One in that thread has the best explanation. I'm not familiar with the details of mounting DVDs, but he suggests that the directories
/run/media/stuart/DVD_VIDEO_RECORDERand/run/media/stuart/LG_VDR*on your disk* may have different permissions, and those permissions leak into the permissions seen when a DVD is mounted there. So what are the permissions on those directories (when no DVD is mounted)?In any case, it's unlikely to be a problem that this mailing list deals with. We only handle the mount executable. One possibility is that the DVD mount and processing code in the kernel is providing unreasonable permission values (after all, it synthesizes them), in which case the fix is a kernel change. Another possibility is that adjusting the permissions of
/run/media/stuart/DVD_VIDEO_RECORDERwill make the problem go away, in which case it can reasonably be considered to be a configuration error. It's also possible that whatever is automounting the DVD isn't being smart enough about the permissions it is setting up for the DVD file system. That would be a problem for the a different mailing list.
Quoted 2 lines
Dale
Dale
Thanks for that explanation. The only thing regarding the DVD_RECORDER directory is that it does not exist until the DVD is mounted so whoever creates it sets the permissions. The name DVD_RECORDER is the volume name of the DVD. I'm not sure how the DVD can itself have permissions attributed to it though.
I will attempt to discover the right place to progress this issue.
Stuart
Signature · 2 lines
Website: http://www.stella-maris.org.uk or: http://www.broadstairs.org
Quoted 7 lines
From: Stuart T Rogers <[email protected]>
Thanks for that explanation. The only thing regarding the
DVD_RECORDERdirectory is that it does not exist until the DVD is mounted so whoever creates it sets the permissions. The nameDVD_RECORDERis the volume name of the DVD. I'm not sure how the DVD can itself have permissions attributed to it though.
One thing you can try for diagnosis is this: Insert the DVD and wait for it to show up in File Manager. Then go to a shell and run "df". That command lists *all* of the file systems that are rightly and properly mounted. Most likely, /run/media/stuart/DVD_RECORDER will show up as a mount point, showing that your DVD *actually is* mounted. Which starts to narrow down where things could be going wrong.
Then run "mount". That dumps a lot of information about the options that were used during the mount operation. In particular, the word after "type" in the relevant line is the type of file system, and the stuff in parentheses is the options. You can go to the mount manual page and look up the options to see if one of the options is buggering how the DVD is mounted.
You can also do "ls -al /run/media/stuart/DVD_RECORDER", which will show what the permissions are of the DVD_RECORDER directory and also the subdirectories within it. (Under normal conditions, those should be the same.)
This will give you some info to help figure out what's messing up:
the program creating DVD_RECORDER, the mount command that is getting executed, the mount program itself, or the kernel filesystem code.
Dale