Can't mount CD-Rom!

Forum rules
Before you post please read this
Post Reply
Darkelve
Level 1
Level 1
Posts: 14
Joined: Sat Jan 06, 2007 7:49 am

Can't mount CD-Rom!

Post by Darkelve » Mon Jan 08, 2007 11:40 am

When I insert a CD, Nautilus tries to show the contents of it but then I get:
"You do not have the permissions necessary to view the contents of "cdrom0".

And when I try to change this under Nautilus, Right-click, 'cdrom0 properties' it says "you are not the owner so you can't change these permissions'.

How do I fix this?

scorp123
Level 8
Level 8
Posts: 2277
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Re: Can't mount CD-Rom!

Post by scorp123 » Mon Jan 08, 2007 12:10 pm

Darkelve wrote:When I insert a CD, Nautilus tries to show the contents of it but then I get:
"You do not have the permissions necessary to view the contents of "cdrom0".

And when I try to change this under Nautilus, Right-click, 'cdrom0 properties' it says "you are not the owner so you can't change these permissions'.

How do I fix this?
Can you please give me the output of these commands (when the CD is inserted!):

Code: Select all

 cat /etc/fstab
ls -al /media
mount
You probably got some permissions wrong. Shouldn't be too difficult to fix ...

Darkelve
Level 1
Level 1
Posts: 14
Joined: Sat Jan 06, 2007 7:49 am

Post by Darkelve » Tue Jan 09, 2007 2:05 pm

1. cat /etc/fstab output

Code: Select all

 
~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hda8       /               ext3    defaults,errors=remount-ro 0       1
# /dev/hda1
UUID=84F055CBF055C458 /windows/c      ntfs    defaults,nls=utf8,umask=007,gid=46 0       1
# /dev/hda6
UUID=80E2-EECE  /windows/d      vfat    defaults,utf8,umask=007,gid=46 0       1
# /dev/hda5
UUID=F45D-5464  /windows/e      vfat    defaults,utf8,umask=007,gid=46 0       1
# /dev/hda7
UUID=38cd5274-7d9c-459f-89d7-db45265dda8b none            swap    sw              0       0
/dev/hdc        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/hdd        /media/cdrom1   udf,iso9660 user,noauto     0       0
/dev/           /media/floppy0  auto    rw,user,noauto  0       0

2. ls -al /media output

Code: Select all

~$ ls -al /media
total 18
drwxr-xr-x  5 root root 4096 2006-10-25 15:26 .
drwxr-xr-x 22 root root 4096 2007-01-06 01:23 ..
lrwxrwxrwx  1 root root    6 2007-01-06 01:13 cdrom -> cdrom0
drwx------  2  400  401 2048 2006-03-30 23:44 cdrom0
drwxr-xr-x  2 root root 4096 2007-01-06 01:13 cdrom1
lrwxrwxrwx  1 root root    7 2007-01-06 01:13 floppy -> floppy0
drwxr-xr-x  2 root root 4096 2007-01-06 01:13 floppy0
3. mount output

Code: Select all

~$ mount
/dev/hda8 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.17-10-generic/volatile type tmpfs (rw)
/dev/hda1 on /windows/c type ntfs (rw,nls=utf8,umask=007,gid=46)
/dev/hda6 on /windows/d type vfat (rw,utf8,umask=007,gid=46)
/dev/hda5 on /windows/e type vfat (rw,utf8,umask=007,gid=46)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/hdc on /media/cdrom0 type iso9660 (ro,noexec,nosuid,nodev,user=wouter)

Darkelve
Level 1
Level 1
Posts: 14
Joined: Sat Jan 06, 2007 7:49 am

Post by Darkelve » Tue Jan 09, 2007 2:23 pm

Oh, and I have to add that I tried with some other CD's and with those CD's it worked fine. It's only with the installation discs of Dreamfall (trying to install it under Wine) that it gives this error. That's strange since I didn't have that problem under SuSe 10.1 or Fedora Core 6. And I'm pretty sure that the disc is fine (it did that for all the Dreamfall disks I tried).

scorp123
Level 8
Level 8
Posts: 2277
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Post by scorp123 » Tue Jan 09, 2007 3:38 pm

Darkelve wrote: 1. cat /etc/fstab output

Code: Select all

 /dev/           /media/floppy0  auto    rw,user,noauto  0       0
Aside from your CD-ROM problem: that line should start with /dev/fd0 (assuming that you have a floppy drive and it is connected to a floppy controller and not via USB ...) up there, not /dev ...
Darkelve wrote:2. ls -al /media output

Code: Select all

drwx------  2  400  401 2048 2006-03-30 23:44 cdrom0
Bingo! That's the problem right there. What kind of CD is that?? :? Was this CD burned on a UNIX-like machine with some form of UNIX filesystem on it? e.g. ISO9660 with Rockridge extensions and restrictive file permissions? Any idea why else the files on the CD claim to belong to a user with the UID=400 and group ID=401 ??

Very important to know: does this happen with every CD or just with this one?
Darkelve wrote:

Code: Select all

~$ mount
/dev/hdc on /media/cdrom0 type iso9660 (ro,noexec,nosuid,nodev,user=wouter)
Your mount options look normal otherwise ... I wonder why that CD has those screwed permissions? Can you please give me the output of this command:

Code: Select all

ls -al /dev/hd*

Darkelve
Level 1
Level 1
Posts: 14
Joined: Sat Jan 06, 2007 7:49 am

Post by Darkelve » Tue Jan 09, 2007 4:15 pm

Yes, it does this for ALL cd's (all 6 of them).

Maybe it has something to do with that the discs use Securom?
Still weird since there was no problem for other distros.

Output from ls -al /dev/hd* :

Code: Select all

~$ ls -al /dev/hd*
brw-rw---- 1 root disk   3,  0 2007-01-09 19:20 /dev/hda
brw-rw---- 1 root disk   3,  1 2007-01-09 19:20 /dev/hda1
brw-rw---- 1 root disk   3,  2 2007-01-09 19:20 /dev/hda2
brw-rw---- 1 root disk   3,  5 2007-01-09 19:20 /dev/hda5
brw-rw---- 1 root disk   3,  6 2007-01-09 19:20 /dev/hda6
brw-rw---- 1 root disk   3,  7 2007-01-09 19:20 /dev/hda7
brw-rw---- 1 root disk   3,  8 2007-01-09 18:21 /dev/hda8
brw-rw---- 1 root cdrom 22,  0 2007-01-09 19:20 /dev/hdc
brw-rw---- 1 root cdrom 22, 64 2007-01-09 19:20 /dev/hdd

scorp123
Level 8
Level 8
Posts: 2277
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Post by scorp123 » Tue Jan 09, 2007 5:15 pm

And are you member of group cdrom? You can verify this:

Code: Select all

groups yourusername
I am thinking of a workaround for your problem ... Maybe a shell script with some special mount options would help?

Darkelve
Level 1
Level 1
Posts: 14
Joined: Sat Jan 06, 2007 7:49 am

Post by Darkelve » Wed Jan 10, 2007 2:53 pm

Here it is:

Code: Select all

~$ groups wouter
wouter : wouter adm dialout cdrom floppy audio dip video plugdev lpadmin scanner admin"
I don't know... I want to install Dreamfall with Wine, so I have to be able to mount them, but also to switch between CD's when the installer asks for it.

Post Reply

Return to “Mounting Partitions”