automount fails to detect the cd. cannot read from cd-r/rw drive

Asked by jatan

i have dual boot p3 850mhz/320mb ram/2 hardisk(80+20gb) pc. i use windows xp. this is my first experince with linux. i have installed ubuntu 7.04.

my cd-r/rw drive behaves funnily. it is unable to read my cd. if i insert my cd, the drive will hum but i cannot read my data(irrespective of the format). however,after inserting my cd if i restart my pc or if i insert my cd at the time of booting then it is perfectly read by my drive. but as soon as i eject my cd-r/rw drive and insert another cd or re-insert the same cd the drive fails to read the cd. the drive works perfectly under windows. i use smsung cd-r/rw 252F

using google i have been able to do the following commands:

mahesh@mahesh:~$ ls -l /dev/cdrom
lrwxrwxrwx 1 root root 4 2007-05-23 16:26 /dev/cdrom -> scd0

mahesh@mahesh:~$ sudo mount /dev/scd0 /media/cdrom0
mount: No medium found

mahesh@mahesh:~$ sudo mount /dev/cdrom /media/cdrom0
mount: No medium found

mahesh@mahesh:~$ sudo mount /dev/hdb /media/cdrom0
mount: special device /dev/hdb does not exist

the contents of my /etc/fstab/ file are:

# /etc/fstab: static file system information.

#

# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0

# /dev/sdb1

UUID=683d08e8-3c07-4a7d-93a7-7843b74d5e3f / ext3 defaults,errors=remount-ro 0 1

# /dev/sdb5

UUID=944af908-e7e3-4aea-b454-6f424e358394 none swap sw 0 0

/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0

/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

the contens of my /etc/fstab.pre-uuid/ are:

# UNCONFIGURED FSTAB FOR BASE SYSTEM

the contents of my /usr/share/ubuntu-docs/ubuntu/sample/fstab_automountfs/ are:
# /etc/fstab: static file system information.

#

# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0

/dev/hda2 / ext3 defaults,errors=remount-ro 0 1

/dev/hda5 none swap sw 0 0

/dev/hdb /media/cdrom0 udf,iso9660 ro,user,noauto 0 0

/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

/dev/hda1 /media/windows ntfs umask=0222 0 0

the contents of my /usr/share/ubuntu-docs/ubuntu/sample/fstab_automountnetworkfolders/ are:

# /etc/fstab: static file system information.

#

# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0

/dev/hda2 / ext3 defaults,errors=remount-ro 0 1

/dev/hda5 none swap sw 0 0

/dev/hdb /media/cdrom0 udf,iso9660 ro,user,noauto 0 0

/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

//192.168.0.1/linux /media/sharename smbfs credentials=/root/.smbcredentials 0 0

the contents of my /usr/share/ubuntu-docs/ubuntu/sample/fstab_automountnetworkfoldersall/ are:

# /etc/fstab: static file system information.

#

# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0

/dev/hda2 / ext3 defaults,errors=remount-ro 0 1

/dev/hda5 none swap sw 0 0

/dev/hdb /media/cdrom0 udf,iso9660 ro,user,noauto 0 0

/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

//192.168.0.1/linux /media/sharename smbfs credentials=/root/.smbcredentials,dmask=777,fmask=777 0 0

the contents of my /usr/share/ubuntu-docs/ubuntu/sample/fstab_automountfat/ are:

# /etc/fstab: static file system information.

#

# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0

/dev/hda2 / ext3 defaults,errors=remount-ro 0 1

/dev/hda5 none swap sw 0 0

/dev/hdb /media/cdrom0 udf,iso9660 ro,user,noauto 0 0

/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

/dev/hda1 /media/windows vfat umask=000 0 0

i have got all these files after searching “fstab” in the “file system”.

Please note that /dev/hdb does not exist on the system. I was not able to find it throug search or going to /dev through nautilus even after pressing ctrl+h(show hidden files).The only devices mentioned in the directory were:
/dev/cdrom
/dev/cdrw
/dev/scd0

the other typical thing I found was that if we type computer:/// in the file browser i can see all the drives including cd-rw drive. on right clicking on cd-rw drive and going through its properties/permissions/ I found the following:
 owner: unknown
access:read only
group:unknwn
access:read only
others:unknown
access:read only
execute:unchecked
selinux:unknown
last changed:unknown

any changes i tried to effect by using my mouse gave an error message “permission cannot be changed”.

on going through properties/drive i found out:

vendor: samsung
model:cd r/rw 252F
serial:<blank>
firmware:R804
connection:SCSI
media:cd-rw drive
removeable:Yes(ejectable)
external:no

settings:
mount point:<blank>
file system:<blank>
mount options:<blank>
should i make any changes here.? if any changes are to be made then how?

i typed the following:

mahesh@mahesh:gksudo nautilus

but on typing computer:/// the only drive i could access was file system .

what do i do next?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
jatan
Solved:
Last query:
Last reply:
Revision history for this message
Benoit Malet (benoit-malet) said :
#1

Hello !

The problem probably comes from your /etc/fstab : the line concerning your CDROM is this one:

/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0

the "noauto" means that it will not be mounted automatically ... So I suggest you try to modify this line to match this :

/dev/scd0 /media/cdrom0 udf,iso9660 defaults 0 0

Tell us if that did the trick !

Regards,
Benoît

Revision history for this message
jatan (jatanmistry) said :
#2

no the problem is compounded. automounter still fails to read my cds. if i insert a cd after ubuntu has booted up the system fails to recognise the cd. in order to view the data on the cd i have to insert the cd and re-boot the system. after the system has re-booted i can see the cd has mounted(desktop icon shows me). now after viewing the data on the cd if i try to eject using the button on the drive it fails as the cd-r/rw drive has gone into root mode. even if i right-click n the desktop icon and press eject it fais giving an error that only the root has the permission to do that. so after googling i was able to unmount the cd using the command:
mahesh@mahesh:~$ sudo umount /media/cdrom0
after ejecting the cd if i insert a new cd or re-insert the same cd, the system fails to auto mount. if i try using the command:
mahesh@mahesh:~$ sudo mount /dev/scd0 /media/cdrom0

the only response i get is that the termnal goes unresponsive and i have to close it.

Also what i have found out is that if i have inserted a re-writeable disc at the time of boot up, the system is unable to write data on it. i don”t Know how to set permissions for the same.

can i not use my cd drive as i use in windows without using the terminal and wherein the cd is mounted and unmounted automaically.

also i do not know how to change permissions for cd drive. currently it has been set to root which is not what i want as many other users are going to use the computer(and i do not want to give out my root password)

i am again re-typing a figment of my last communication as i am still not able to understand what the system is trying to say or how i can change the settings.

the other typical thing I found was that if we type computer:/// in the file browser i can see all the drives including cd-rw drive. on right clicking on cd-rw drive and going through its properties/permissions/ I found the following:
 owner: unknown
access:read only
group:unknwn
access:read only
others:unknown
access:read only
execute:unchecked
selinux:unknown
last changed:unknown

any changes i tried to effect by using my mouse gave an error message “permission cannot be changed”.

on going through properties/drive i found out:

vendor: samsung
model:cd r/rw 252F
serial:<blank>
firmware:R804
connection:SCSI
media:cd-rw drive
removeable:Yes(ejectable)
external:no

settings:
mount point:<blank>
file system:<blank>
mount options:<blank>
should i make any changes here.? if any changes are to be made then how?

i typed the following:

mahesh@mahesh:gksudo nautilus

but on typing computer:/// the only drive i could access was file system .

should i downgrade to ubuntu 6.10?

Revision history for this message
Hanusz leszek (leszek-skynet) said :
#3

Hello,

It should be noted that the line in your fstab file was correct, the noauto option only means that this device won't be automatically mounted at boot.

You should check if you have the correct permissions.
go to System->Administration->User and groups
choose the user and click on properties
go to "User Privileges" tab
Be sure that "Access external storage devices automatically" and "Use CD-ROM drives" are checked

Revision history for this message
jatan (jatanmistry) said :
#4

Thanks Hanusz Leszek,
However the problem is unsolved. the only way to view a cd is to insert a cd into the drive and re-start the pc.

Revision history for this message
Vo Hai (haivdc) said :
#5

me too

Revision history for this message
Best jatan (jatanmistry) said :
#6

updating the kernel to 2.16 helped me to solve the problem