Accessing DVD

opensuse 11.1 / KDE 3.5.10

Three main questions are defined in the problem description below:

  1. Why My Computer would flag a DVD red and expect it to have less than 1.1Gb of data?
  2. Why can’t I access /media/disk-1?
  3. How can I get my fancy DVD desktop icon back?

So here’s the deal… I have a DVD with 4 videos created by a friend. No copyright issues to consider.
When I pop the disc into the DVD drive I get the standard popup asking me what I want to do and I can open with Kaffeine, plays fine. Audio CD’s play fine. K3b burns media with no problem (as long as I use slow speeds for burning) so the drive is “working” in the system.

But one of the vids I want transfered to my hdd.
Odd after all these years, but I guess I’ve never had a reason to want to try this from a DVD. Lot’s of music ripping but don’t futz with video much.

The only “desktop” icons I have are Trashcan and the My Computer icon. (links to other files, etc. but no other “system icons”)

My Computer shows me DVD under Disk Information.
The “bar” is in red color and says Total space is 1.1Gb with no freespace. Maybe that’s normal for a DVD as it is a 4Gb standard DVD-R disc… which causes me to wonder why KDE or whatever “creates” that info would expect a DVD to have less… gotta be something I’m not understanding about that…

But the main problem is that if I try to access the DVD from the icon on the My Computer screen, it tries to open in Konqueror on media:/sr0 but flags this error: Access denied to /media/disk-1.

I’m only vaguely aware of the link between the /sr0 label and the /media/disk-1 path. Of course navigating directly to /media/disk-1 gets the same response. Access denied.

Also KDiskFree shows the disc but I still can’t access.

I’m far from expert, but I did think to look for permissions. The owner is my username but the “Group” setting reads 4294967295 instead of “users”. ? Sounds oddly “phonelike” but there seems to not be 429 area code in the US…
Permissions are dr–r–r-- on the /disk-1 folder.
/media folder is open drwxrwxrws with the Group set to users.
I could logon as root and change the permissions problably but I believe that the /disk-1 path is created “on the fly” only when a disc is inserted and disappears upon unmounting and ejecting the disc. So changing the permissions as root would be pointless.

Thinking maybe of the fstab file. I don’t see anything in there about a cdrom or DVD at all. Maybe that’s the problem? Again, only vaguely aware of it’s role in the system or how to manipulate. I copy/paste into it to accomplish what I’ve done in the past. I google and do. I don’t understand what each setting means. The method works but leaves a lot to be desired. In any case here’s the fstab:

/dev/disk/by-id/ata-Maxtor_91296D6_A602TCXC-part2 swap swap defaults 0 0
/dev/disk/by-id/ata-Maxtor_91296D6_A602TCXC-part1 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/ata-MAXTOR_STM31000340AS_9QJ0QWTY-part1 /home ext3 defaults 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0

Appreciate any enlightening info as to why I cannot access the DVD raw and drag a video off the disc onto the hdd.

Also if there is anything out of character about the fstab file, please feel free to comment.

Ultimately I would also like to have an Icon on the desktop that reads DVD and changes color to indicate the DVD is mounted or not-mounted. And I could access the drive directly. I seem to recall that in an older SuSE8 or 9 version we had an icon on the desktop like that… anyone remember that? How can I achieve that again?

Thanks to all for any help on this.

In dolphin with ‘Places’ enabled
View the DVD
Copy and paste

There is no need to look in /etc/fstab. It is a configuration file for permanently mounted partitions. Mass storage attached/detached during the lifetime of the system are mounted/unmounted by HAL. To see what is mounted in your system just use

mount

It shows the status. When you has thus seen that your DVDD is mounted at /media/disk-1 (which wonders me a bit, I would have thought that HAL would use a different name for a DVD). You can check who isthe owner of /media/disk-1

ls -l /media/disk-1

and thus see if if you (the end-user) are the owner ot not.

Thanks caf4926:
re: dolphin. I do not have that installed. I took a look at KDE4 in January. Dolphin was as obtuse and irritating as all the rest of KDE4. As a longtime SuSE user I’m sure this is possible without KDE4. I reinstalled the entire OS in February with only KDE3 tools and am uninterested in the mostly unnecessary eye-candy and other fancy junk KDE4 has been bloated with.

Also appreciate the input Henk van Velden. Results of the ls command:
dr–r–r-- 2 JeepNut 4294967295 404 Apr 11 2006 VIDEO_TS
So it is same as I noted before. JeepNut (me) is the owner, and Group is set to 4294967295 for some odd reason.

Two remarks:

  1. the group id is strange. As you know userid and groupid are in fact numbers. Software like ls shows names they find in* /etc/passwd* and /etc/group, but when nothing is found the number is shown. My experience is that HAL mounts with group root, but that may be because it simply gets 0. The fs on the DVD is not a Linux fs and I do not know if groups are supported on it. So it may be a fallback, but an unusual one.

  2. I should have asked for

ls -la /media/disk-1

to get also the data about the dir itself. But I suppose the owner and group are the same. It should be something like:

boven:~ # ls -la /media/Lochem/
total 6281
dr-xr-xr-x 1 henk root    2048 May 30  2007 .
drwxr-xr-x 3 root root    4096 Dec 22 20:20 ..
dr-xr-xr-x 1 henk root    6144 May 30  2007 DATA
boven:~ #

This is from a CD I put in the system. As you see … (that is /media) is owned by root and can be read/searched by everybody. And . (that is /media/disk-1 in your case) is owned by the end-user, as is the data inside. So the laws of access in Linux then say that end-user may read everything.

Now, because I am also interrested why it is disk-1 and not *disk, *can you please give as root the output of

# ls -la /media

And please also, as user JeepNut can you

$ cd /media/diisk-1/VIDEO_TS
$ file *

or, if there are many files inside there just see if you can poke around there and if everything is readable.

As I continue to try and figure this out, I got to the opensuse/hal page somehow. And I noted this under “Permission problems (since opensuse 10.3)”…

If you get in your desktop session a message that you e.g. can not:
* mount a CD/DVD

So I opened a terminal as root and when I do:
rcconsolekit status
I get -bash: rcconsolekit: command not found.
but checking my software inventory, I note that ConsoleKit and ConsoleKit-x11 are installed. So that seems weird to me. How can it not be found if it is installed?

But maybe I’m on the wrong track and this isn’t HAL related. The DVD must be mounted, as I can actually play the disc. I just can’t “access” the disc raw…

Still grasping at the straws and hoping for a Christmas miracle. <wink>
Thanks to all who have taken their time to read and those trying to help. Jolly Holiday everyone.

I can tell you there was a plethora of cd/dvd access issues in 11.1
Mind you, I never had issue really.
Certainly things were different.

This has not been repeated in 11.2 (maybe the miracle already happened)
:wink:

Thanks HCVV.
OK as user I get this:
JeepNut@Popeye:/> ls -la /media/disk-1
ls: cannot access /media/disk-1/.: Permission denied
ls: cannot access /media/disk-1/…: Permission denied
ls: cannot access /media/disk-1/VIDEO_TS: Permission denied
total 0
d??? ? ? ? ? ? .
d??? ? ? ? ? ? …
??? ? ? ? ? ? VIDEO_TS

Then as root I get this:
Popeye:/ # ls -la /media/disk-1
total 8
dr–r–r-- 3 JeepNut 4294967295 88 2006-04-11 23:06 .
drwxrwxr-x 7 root users 4096 2009-12-21 22:31 …
dr–r–r-- 2 JeepNut 4294967295 404 2006-04-11 23:06 VIDEO_TS

Which I’m confused about. I’m not sure why there are three lines of info there. Yet is says Total 8? My inexperience is fully revealed I guess.

Now that I know what you were expecting I think I can answer one question. It is reported as /media/disk-1 as there is a USBstick inserted which shows up as /media/disk in the filemanager, but when I have inserted the USBstick and get the prompt about what I want to do, I open in a new window. It is reported then in Konqueror as system:/media/sdc1
I am the owner, Group is root, and all permissions are set to rwxr-xr-x
There are some issues with read/write to that device as well, but maybe should be left for a separate thread? It works well enough for me to use as I need to at this point and don’t want to confuse issues.

Finally as root:
Popeye:/ # ls -la /media
total 42
drwxrwxr-x 7 root users 4096 2009-12-21 22:31 .
drwxr-xr-x 20 root root 4096 2009-12-21 00:42 …
drwxr-xr-x 10 JeepNut root 16384 1969-12-31 19:00 disk
dr–r–r-- 3 JeepNut 4294967295 88 2006-04-11 23:06 disk-1
-rw-r–r-- 1 root root 147 2009-12-21 22:31 .hal-mtab
-rw------- 1 root root 0 2009-12-21 14:54 .hal-mtab-lock
drwxr-xr-x 2 root root 4096 2009-06-14 23:34 MyUSBa
drwxr-xr-x 2 root root 4096 2009-06-14 18:29 MyUSBb
drwxr-xr-x 2 root root 4096 2009-11-06 07:40 xmms_audio_cd

Unfortunately the last bit requested doesn’t work.
As User…
JeepNut@Popeye:/> cd /media/disk-1/VIDEO_TS
bash: cd: /media/disk-1/VIDEO_TS: Permission denied

Which I guess isn’t surprising as the main problem is “access denied” to the disk-1 path…

I really appreciate your continued consideration of the problem. Many Thanks.

I have not studied all you gave me, but I start with:
Then as root I get this:
Popeye:/ # ls -la /media/disk-1
total 8
dr–r–r-- 3 JeepNut 4294967295 88 2006-04-11 23:06 .
drwxrwxr-x 7 root users 4096 2009-12-21 22:31 …
dr–r–r-- 2 JeepNut 4294967295 404 2006-04-11 23:06 VIDEO_TS
The x-bits of /media and /media/disk-1 are gone!!!
as root do

chmod a+x /media /media/disk-1

and then repeat the *ls -la *as root, but more important, as JeepNut

Popeye:/ # ls -la /media
total 42
drwxrwxr-x 7 root users 4096 2009-12-21 22:31 .
drwxr-xr-x 20 root root 4096 2009-12-21 00:42 …
drwxr-xr-x 10 JeepNut root 16384 1969-12-31 19:00 disk
dr–r–r-- 3 JeepNut 4294967295 88 2006-04-11 23:06 disk-1
-rw-r–r-- 1 root root 147 2009-12-21 22:31 .hal-mtab
-rw------- 1 root root 0 2009-12-21 14:54 .hal-mtab-lock
drwxr-xr-x 2 root root 4096 2009-06-14 23:34 MyUSBa
drwxr-xr-x 2 root root 4096 2009-06-14 18:29 MyUSBb
drwxr-xr-x 2 root root 4096 2009-11-06 07:40 xmms_audio_cd

Look at disk and disk-1. disk is OK, but for disk-1 all the x are gone (and you have the strange groupid). You hae also three more things there, probably mounted.

For your information: when you do a ls -la of a directory, you always get the file . and …
. (one dot) means: This directory;
… (two dots) means: The directory above this directory.
Thus there are alwaus two more lines then 'normal’entries in the directory. These . and … are also entries in the directory.

Addition: the chmod should have been

chmod a+x /media/disk-1 /media/disk-1/VIDEO_TS

No harm done to /media if you already did it.

Here are the results:
Popeye:/ # chmod a+x /media/disk-1 /media/disk-1/VIDEO_TS
chmod: changing permissions of /media/disk-1': Read-only file system chmod: changing permissions of /media/disk-1/VIDEO_TS’: Read-only file system
Popeye:/ # ls -la /media
total 42
drwxrwxr-x 7 root users 4096 2009-12-22 22:50 .
drwxr-xr-x 20 root root 4096 2009-12-21 00:42 …
drwxr-xr-x 10 JeepNut root 16384 1969-12-31 19:00 disk
dr–r–r-- 3 JeepNut 4294967295 88 2006-04-11 23:06 disk-1
-rw-r–r-- 1 root root 147 2009-12-22 22:50 .hal-mtab
-rw------- 1 root root 0 2009-12-22 16:33 .hal-mtab-lock
drwxr-xr-x 2 root root 4096 2009-06-14 23:34 MyUSBa
drwxr-xr-x 2 root root 4096 2009-06-14 18:29 MyUSBb
drwxr-xr-x 2 root root 4096 2009-11-06 07:40 xmms_audio_cd
Popeye:/ # exit
exit
JeepNut@Popeye:~> ls -la /media
total 42
drwxrwxr-x 7 root users 4096 2009-12-22 22:50 .
drwxr-xr-x 20 root root 4096 2009-12-21 00:42 …
drwxr-xr-x 10 JeepNut root 16384 1969-12-31 19:00 disk
dr–r–r-- 3 JeepNut 4294967295 88 2006-04-11 23:06 disk-1
-rw-r–r-- 1 root root 147 2009-12-22 22:50 .hal-mtab
-rw------- 1 root root 0 2009-12-22 16:33 .hal-mtab-lock
drwxr-xr-x 2 root root 4096 2009-06-14 23:34 MyUSBa
drwxr-xr-x 2 root root 4096 2009-06-14 18:29 MyUSBb
drwxr-xr-x 2 root root 4096 2009-11-06 07:40 xmms_audio_cd

No matter if I now go to My Computer and try to see the files on DVD or if I open a Konqueror window and drill down to /media/disk-1, I still get the access denied message. How odd.

So it would appear that I cannot actually change the permissions on the path /disk-1 due to it being a “read-only” file system, eh? Could this be due to the way the disc was created? I know it was created on a Windows box. Maybe the disc wasn’t “closed” at the end of the burning process? (maybe wrong terminology there)

With that lightbulb burning in my head I switched discs to a commercial DVD disc of a movie and bingo. I can open the path and view the raw data on that disc. Have the Audio_TS and Video_TS subfolders and can access the data in them.

Doing ls -la with the new media loaded is interesting:
JeepNut@Popeye:~> ls -la /media
total 42
drwxrwxr-x 7 root users 4096 2009-12-22 23:09 .
drwxr-xr-x 20 root root 4096 2009-12-21 00:42 …
drwxr-xr-x 10 JeepNut root 16384 1969-12-31 19:00 disk
-rw-r–r-- 1 root root 144 2009-12-22 23:09 .hal-mtab
-rw------- 1 root root 0 2009-12-22 16:33 .hal-mtab-lock
drwxr-xr-x 2 root root 4096 2009-06-14 23:34 MyUSBa
drwxr-xr-x 2 root root 4096 2009-06-14 18:29 MyUSBb
dr-xr-xr-x 4 JeepNut 4294967295 136 2005-11-14 08:53 TTC
drwxr-xr-x 2 root root 4096 2009-11-06 07:40 xmms_audio_cd

where TTC is that commercial video.
So the odd Group name remains, BUT the permissions now are correct and I can read the files.

So it seems in the end I have an issue with the burned disc rather than with the Operating System or Desktop Environment. Do you agree?

Ok, I forgot about that. It is a DVD and as such read only.
BTW did you ever post back the output of

# mount

as I suggested in post #2 above? We could have seen it there.

Now the result of the voting. The DVD was created by some OS (do you know which one, I do not think you posted that). That OS created a filesystem (the type of which will be shown by the mount). As this is most probably not a native Linux fs type, it may not support ownership by user/group and access bits execute/read/write by owner/group/world as Linux does. Thus at mount some backfalls must be created.

It looks like (among others) these backfalls were generated:

  1. a strange group id;
  2. lack of x-bits in the access bits (thus making the directories unsearchable by everybody including the owner).

We can not set the x-bits as we would do on a normal read/write mass strorage device because we can not write. What may be possible is setting some parameters when we mount the partition. For that we have to know the fs type. So please the output of mount.

And for a possible solution also please the output of

# l /dev/disk/by-label/

And could you please put all the computer output between CODE tags? Select the text and then click the # sign in the bar above. This makes it much more readable.

Going into the GUI to all sorts of places like My Computer, Konqueror, Dolphin or whatever is certainly a useless thing as long as you have no access as the* ls* statement tells you. This is not odd, you have not more rights in the stupid GUI then you have in the CLI.