Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDROM IS WRITE-PROTECTED

Status
Not open for further replies.

071

MIS
Aug 9, 2000
153
Hello !
I'm running Redhat through VMWare but am unable to mount my cdrom drive using a simple 'mount' command as root.

mount -t iso9660 /dev/cdrom /mnt/cdrom
mount:block device /dev/cdrom is write protected, mounting read-only
mount:no medium found

Here's a copy of my /etc/fstab
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 00

The mnt/cdrom is clearly visable and I have set the permissions have been set to rwx but alas to no avail.

Here's a copy of my 'dmesg'
cdrom: open failed

The idecd driver with major number 22 is present in the /proc/devices file and the ISO-9660 filesystem support was compiled in /proc/filesystems.

I also typed the following command to try and read data from the CDROM.
dd if=/dev/cdrom of=/dev/null bs=2048
but am getting the same error message.

Any suggestions would be very much appreciated !!!









Cheers,
71
 
Try a different cd. Perhaps your cd is bad.
Also, see what /dev/cdrom is pointing to. Perhaps it's a symlink to the wrong drive. Try leaving off the iso9660 part. Say for example your cdrom is /dev/hdc....
mount /dev/hdc /mnt/cdrom
That usually works for me.
 
There's a CD-Writing HOWTO
I think part of it is you have to specifty scsi-emulation for the drive at boot time. For example, I have to use the following kernel commandline:

linux ide-scsi=hdc

This tells the kernel to do the scsi emulation on that drive. After that, you should be able to write to a CD. However, it sounds like you are looking to do something like the UDF filesystem in Windows (where you can just drag and drop in Windows Explorer to burn to a CD). I remember being able to read a UDF CD before, not sure about writing it (been a while though, times change).

----
JBR
 
Oops, that's:

linux hdc=ide-scsi

Sorry :)

----
JBR
 
Thanks guys.
The /dev/cdrom is pointing to hdc but still cannot mount using that point.
What is the name of the kernal file in redhat ? In solaris it's /etc/system but cannot remember what it is for Linux.
/etc/rc.d/?? init.d ?? Been a while.........



Cheers,
71
 
turning on scsi-emulation for all ide-drives would mean to turn it on for the harddrives, which is wrong.

Wrong is too, to mount a cdrom in rw - mode, because ROM means READ ONLY MEMORY.
If it is a cdrw, you may mount in rw-mode.

When the medium is empty, you shouldn't (and can not) mount it as cdrom.
Most (all) cdrw-drives allow playing audio-cds and RO-medias.
If you mount a RO-medium,
/dev/hdc /mnt/cdrom iso9660 defaults 0 0
is a good entry for /etc/fstab.

'The name of the kernel file'??? Are you looking for /proc ?
Note: With kernel 2.6 things are different - mention your kernel-version. (i.e.: /sys sysfilesystem).


seeking a job as java-programmer in Berlin:
 
You also can not mount a music cd.

>---------------------------------------Lawrence Feldman
SR. QA. Engineer SNAP Appliance
lfeldman@snapappliance.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top