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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to mount !!

Status
Not open for further replies.

071

MIS
Aug 9, 2000
153
Hello,
Receive the following error message when attempting to mount on Redhat

mount: block device /dev/cdrom is write protected, mounting read-only.

Have the following entry in my fstab...

dev/cdrom /mnt/cdrom uffs, iso9660 noauto, owner, kudzu, ro 0 0

Have changed the line to rw and rebooted but no difference...

Have been checking the net for similar errors but not having much luck...

Little help please !








Cheers,
71
 
mount: block device /dev/cdrom is write protected, [red]mounting read-only.[/red]

CDROM is READ ONLY, so changing the line to rw (read/write) has no effect. It should be ro (read only).

Anyway, cdrom should be mounted.

Chacal, Inc.[wavey]
 
Just to continue the edufication..

If your CD ROM is R+W capable, the burning software will make adjustments as needed during use.

It is appropriate to mount CD ROM as read-only as Chacal pointed out

D.E.R. Management - IT Project Management Consulting
 
When you mount a CD it is always Read Only. When you are writing to a cd using the burning software the CD is not mounted. The software accesses the device directly.

Hope that helps.
 
Thanks guys but still unable to mount the cdrom. Not much in the /var/adm/messages file except

cdrom: open failed.

I'm wondering if it's anything to do with the lay out of my filesystem....





Cheers,
71
 
Here's the output of ls -l /dev/cdrom

/dev/cdrom ->/dev/sdc0

Shouldn't it be linked to /dev/hdc ? If so, how can I unlink it ? ( ln -f ?)




Cheers,
71
 
Hi Guy's
Some additional information.

I'm running Redhat Enterprise linux 3 through a VMWare image.

Was using the CDROM drive with no problems last week. My Windows OS has no problem reading it and I have also tried a couple of different CD's but still no joy... Keep getting

Mount: No medeium found.

My only worry is that there is a possibility that I might have downloaded a bug somehere as I was using the CDROM drive to transfer patches into the linux image.

-Have wasted a lot of time preparing this image for an Oracle 10G installation !!!
Any idea's/suggestions would be much appreciated ?




Cheers,
71
 
I doubt you downloaded a bug. CDROMs can be kind of annoying under Linux because of the different ways to access them. It used to be that the best way to address a CD burner was to use SCSI emulation, so you would tell the kernel at boot time and you would access it through /dev/scdX. The drivers have matured since then, so now you don't have to go through that emulation layer, but some things still expect it.

Take a look at your boot parameters. I'm not using emulation and mine look like this:
kernel /vmlinuz-2.6.12-1.1398_FC4 ro root=LABEL=/1 rhgb quiet

I forget what the exact parameter for emulation is, but it's completely obvious, something like "hdc=scsi" or some such.

You can also use cdrecord to scan you bus, that may give you some clue as to how you should be addressing the device. Mine looks like this:

Code:
foxtrot(~)$ cdrecord -scanbus
Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
scsidev: 'ATA'
devname: 'ATA'
scsibus: -2 target: -2 lun: -2
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.83-RH '@(#)scsi-linux-sg.c    1.83 04/05/20 Copyright 1997 J. Schilling').
scsibus2:
        2,0,0   200) 'SAMSUNG ' 'CD-ROM SC-148C  ' 'B105' Removable CD-ROM
        2,1,0   201) 'PLEXTOR ' 'CD-R   PX-W8432T' '1.07' Removable CD-ROM
        2,2,0   202) *
        2,3,0   203) *
        2,4,0   204) *
        2,5,0   205) *
        2,6,0   206) *
        2,7,0   207) *
Notice the reference to ATA.

Of course VMWare adds a whole other layer of complexity and obfuscation. Since it's a commercial product, have you called them for support?
 
what VMWare are you using? ESX? GSX? workstation?

remember that the virtual CDROM can be the real CDROM device or a .iso file. Are you pointing out to the correct device?

Cheers.

Chacal, Inc.[wavey]
 
MANY,MANY THANKS Guy's but........SHOCK HORROR...am now unable to mount my / filesystem !!!

It's a long story so I'll start at the beginning.....

I recently installed, configured and networked (DHCP) RedHat Enterprise through my VMWare image and successfully created and prepared a new partition for my Oracle 10G installation.
This was done adding in a new disk in VMWare and executing the following commands....

fdisk /dev/sdb --
mkfs /dev/sdb1
tune2fs -j /dev/sdb1
mount /dev/sdb1 /mount_point

I then updated my fstab and hey presto I now had my newfilesystem !

(Was starting to get excited here! )


I then downloaded 10G and most of the necessary packages that are required by Orace but ran into an Xserver issue which wouldn't let me open the display....
After a good deal of researching I managed to find out that it was the result of the display not being exporting properly.

Was sorted by issuing the following command.

xhost + localhost

(For some reason, DISPLAY=192.XXX.XX.X; export DISPLAY didn't work ! Also tried many other combinations but didn't work)

I then decided to transfer my oracle packages but.......what do ya know, the bloody CDROM drive wouldn't mount so tried editing my /etc/fstab............BUT ACCIDENTILY quit out of it with the 1st 2 letters of the 1st line (which unfortunatly is / slice) ommited.....so now, when starting up it says ....
checking root filesystem
fsck.ext3: No such file or directory BEL=/: ( U might guess by now the full word should be LABEL !!!)

And then it goes into maintenance mode. I then enter the root p/w but I cannot edit the /etc/fstab as it is in Readonly mode.....
I have tried su'ing to root and changing the permissions on the file but still cannot edit....I cant seem to get into single user mode or boot from CDROM either....... I'm getting REALLY, REALLY FRUSTRATED with this as I have put so much time into preparing it and now all my hard work seems to have gone to waste............
CAN ANYONE PLEASE HELP - Would really appreciate it - Am beginning to loose it here :-(


Cheers,
71
 
Have spent hours researching for possible solutions but no joy.......:-(

Cheers,
71
 
The CD that you are trying to mount, is it blank? A blank CD can not be mounted because there is not a filesystem on it.
 
I insist!

what VMWare are you using? ESX? GSX? workstation?

remember that the virtual CDROM can be the real CDROM device or a .iso file. Are you pointing out to the correct device?

Cheers.

Chacal, Inc.[wavey]
 
Thanks guy's not ready to give up by a long shot !
Chacalinc, I'm using VMWare workstation. What a week....thank God it's Friday !





Cheers,
71
 
This thread is becoming a little wild and could use some cleaning up...

I noted:
Code:
My only worry is that there is a possibility that I might have downloaded a bug somehere as I was using the CDROM drive to transfer patches into the linux image

What kind of patches? Did you update the kernel?

Its possible that your CD was supported with a module that was not upgraded if you updated your kernel. This might explain the CD "going away".

Did you add any other hard drives that might have changed the drive order that would have moved the CD ROM to another device position? (/dev/hdx)

Have you assured yourself - through booting another linux or windows - that the CD remains functional. No problems with the drive, its cables, or BIOS?

I don't know if it's appropriate on a VMWare environment, but have you tried to manually create a device for this CD ROM to make sure YOU KNOW how it's been setup? I could see the device moving if kudzu re-detects it, which could leave you banging away at the wrong device!

Plenty of chances for things to get confusing... Please eliminate a few.

D.E.R. Management - IT Project Management Consulting
 
Thanks again guys - headache's not as bad :)
Daver,
Downloaded a few packages that were required for Oracle ( gcc etc...)
Didn't update the kernel. Added another harddrive ( through VMWare) and created a new filesystem out of it which was successfully mounted after adding it into the fstab, dont know about the drive order though. Is is automatically changed ?
I am 100 % positive that there is no problem with the CD itself as I use it through windows.
Not sure how to manually create a device for the CD ROM ?

Unfortunatly I cant made any changes at the moment as the whole file system is in Read only mode !

In oder to avoid confusion, I'll open a new post to see if we can salvage this mess that I've created !!!!






Cheers,
71
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top