LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-30-2003, 09:43 PM   #1
shamus
LQ Newbie
 
Registered: Aug 2003
Distribution: Manrake 9.1
Posts: 5

Rep: Reputation: 0
unable to access CD Rom: Mandrake 9.1


My second day as a linux user, and I'm having difficulty getting the system to read the CD rom. When I try to access the CD from the desktop ICON "CD-ROM mounted at /mnt/cdrom", I receive this error:
"Cannot enter directory /mnt/cdrom"

first of all, let me post a copy of my fstab from the /etc directory (I'm not sure if it helps, but I saw another post whrere someone requested the fstab)

/dev/hda1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hda6 /home ext3 defaults 1 2
none /mnt/cdrom supermount dev=/dev/hdb,fs=auto,ro,--,iocharset=iso8859-1,codepa
ge=850 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=auto,--,iocharset=iso8859-1,sync,cod
epage=850,umask=0 0 0
none /proc proc defaults 0 0
/dev/hda5 swap swap defaults 0 0

I'm running Mandrake 9.1, Kernal 2.4.21-013mdk, KDE GUI.
The CD Rom is a generic IDE CD, running on IDE Bus 0 as a primary slave. I know the CD works, because I've installed Linux with it.

Additionally, I've tried to manually mount the CD by entering the command (as root):
#mount -t iso9660 /dev/hdb /mnt/cdrom
and
#mount /dev/hdb /mnt/cdrom

I get the same error from both of these commands:

[root@192 /]# mount /dev/hdb /mnt/cdrom
mount: block device /dev/hdb is write-protected, mounting read-only
mount: No medium found

[root@192 /]# mount -t iso9660 /dev/hdb /mnt/cdrom
mount: block device /dev/hdb is write-protected, mounting read-only
mount: No medium found

The "no medium found" error might imply that I have no CD in the drive, however, I've checked, and there is =)

I have also tried to 're-configure' the CD using the Mandrake control center. Start -->Configuration-->mandrake Control Center --->Hardware --->Hardrake AND --->mandrake Control Center --> Mount Points --> "set where y our CD Rom drive is mounted"

All with no luck. If anyone can give a bit of advice for a n00b, i'd appreciate it. Thanks in advance for any responses.

Shamus
AIM: St0rMCT
MSN Messenger: shaymus57@hotmail.com


Edit: I forgot to mention, I tried to go through the different DEV and MNT directories and chmod 777 *. I understand this opens up security holes, however, I'd like to get the system operational first, THEN tweak it.

Last edited by shamus; 08-30-2003 at 09:45 PM.
 
Old 08-30-2003, 10:02 PM   #2
mooreted
Member
 
Registered: May 2003
Posts: 598

Rep: Reputation: 30
What's in your /mnt directory?

Ted.
 
Old 08-30-2003, 10:10 PM   #3
shamus
LQ Newbie
 
Registered: Aug 2003
Distribution: Manrake 9.1
Posts: 5

Original Poster
Rep: Reputation: 0
Contents of my /mnt directory:

root@192 mnt]# dir
cdrom floppy hdb
 
Old 08-30-2003, 11:17 PM   #4
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
in my fstab the entry for /mnt/cdrom has
umask=0 0 0
instead of the final 0 0 that you seem to have. This might be part of the problem.
Also take a look in /dev. Is there a link called cdrom? If there is, you could try changing the fstab entry /dev/hdb to /dev/cdrom
(/dev/cdrom is not the same as /mnt/cdrom).
 
Old 08-30-2003, 11:22 PM   #5
shamus
LQ Newbie
 
Registered: Aug 2003
Distribution: Manrake 9.1
Posts: 5

Original Poster
Rep: Reputation: 0
Here's a copy of my /dev folder. I'll try altering the fstab line and see how it goes, i'll post the results.

Thanks for the help everyone.

[root@192 dev]# dir
apm_bios md12 md182 md244 md77 ptyc2 ptyq7 ptyuc ptyz1 tty28
audio md120 md183 md245 md78 ptyc3 ptyq8 ptyud ptyz2 tty29
cdrom md121 md184 md246 md79 ptyc4 ptyq9 ptyue ptyz3 tty3
cdrom0 md122 md185 md247 md8 ptyc5 ptyqa ptyuf ptyz4 tty30
cdroms md123 md186 md248 md80 ptyc6 ptyqb ptyv0 ptyz5 tty31
console md124 md187 md249 md81 ptyc7 ptyqc ptyv1 ptyz6 tty32
cpu md125 md188 md25 md82 ptyc8 ptyqd ptyv2 ptyz7 tty33
cua md126 md189 md250 md83 ptyc9 ptyqe ptyv3 ptyz8 tty34
cua0 md127 md19 md251 md84 ptyca ptyqf ptyv4 ptyz9 tty35
cua1 md128 md190 md252 md85 ptycb ptyr0 ptyv5 ptyza tty36
discs md129 md191 md253 md86 ptycc ptyr1 ptyv6 ptyzb tty37
dsp md13 md192 md254 md87 ptycd ptyr2 ptyv7 ptyzc tty38
dspW md130 md193 md255 md88 ptyce ptyr3 ptyv8 ptyzd tty39
fb md131 md194 md26 md89 ptycf ptyr4 ptyv9 ptyze tty4
fd md132 md195 md27 md9 ptyd0 ptyr5 ptyva ptyzf tty40
fd0 md133 md196 md28 md90 ptyd1 ptyr6 ptyvb ram0 tty41
fd0u1040 md134 md197 md29 md91 ptyd2 ptyr7 ptyvc ram1 tty42
fd0u1120 md135 md198 md3 md92 ptyd3 ptyr8 ptyvd ram10 tty43
fd0u1440 md136 md199 md30 md93 ptyd4 ptyr9 ptyve ram11 tty44
fd0u1600 md137 md2 md31 md94 ptyd5 ptyra ptyvf ram12 tty45
fd0u1680 md138 md20 md32 md95 ptyd6 ptyrb ptyw0 ram13 tty46
fd0u1722 md139 md200 md33 md96 ptyd7 ptyrc ptyw1 ram14 tty47
fd0u1743 md14 md201 md34 md97 ptyd8 ptyrd ptyw2 ram15 tty48
fd0u1760 md140 md202 md35 md98 ptyd9 ptyre ptyw3 ram2 tty49
fd0u1840 md141 md203 md36 md99 ptyda ptyrf ptyw4 ram3 tty5
fd0u1920 md142 md204 md37 mem ptydb ptys0 ptyw5 ram4 tty50
fd0u360 md143 md205 md38 misc ptydc ptys1 ptyw6 ram5 tty51
fd0u720 md144 md206 md39 mixer ptydd ptys2 ptyw7 ram6 tty52
fd0u800 md145 md207 md4 mouse ptyde ptys3 ptyw8 ram7 tty53
fd0u820 md146 md208 md40 null ptydf ptys4 ptyw9 ram8 tty54
fd0u830 md147 md209 md41 port ptye0 ptys5 ptywa ram9 tty55
floppy md148 md21 md42 psaux ptye1 ptys6 ptywb raminitrd tty56
full md149 md210 md43 ptmx ptye2 ptys7 ptywc random tty57
hda md15 md211 md44 pts ptye3 ptys8 ptywd raw tty58
hda1 md150 md212 md45 pty ptye4 ptys9 ptywe rd tty59
hda2 md151 md213 md46 ptya0 ptye5 ptysa ptywf root tty6
hda5 md152 md214 md47 ptya1 ptye6 ptysb ptyx0 root.old tty60
hda6 md153 md215 md48 ptya2 ptye7 ptysc ptyx1 rtc tty61
hdb md154 md216 md49 ptya3 ptye8 ptysd ptyx2 scsi tty62
ide md155 md217 md5 ptya4 ptye9 ptyse ptyx3 sequencer tty63
initctl md156 md218 md50 ptya5 ptyea ptysf ptyx4 sequencer2 tty7
initrd md157 md219 md51 ptya6 ptyeb ptyt0 ptyx5 shm tty8
kmem md158 md22 md52 ptya7 ptyec ptyt1 ptyx6 sound tty9
log md159 md220 md53 ptya8 ptyed ptyt2 ptyx7 stderr ttyS0
md md16 md221 md54 ptya9 ptyee ptyt3 ptyx8 stdin ttyS1
md0 md160 md222 md55 ptyaa ptyef ptyt4 ptyx9 stdout urandom
md1 md161 md223 md56 ptyab ptyp0 ptyt5 ptyxa tts usb
md10 md162 md224 md57 ptyac ptyp1 ptyt6 ptyxb tty vc
md100 md163 md225 md58 ptyad ptyp2 ptyt7 ptyxc tty0 vcc
md101 md164 md226 md59 ptyae ptyp3 ptyt8 ptyxd tty1 vcs
md102 md165 md227 md6 ptyaf ptyp4 ptyt9 ptyxe tty10 vcs1
md103 md166 md228 md60 ptyb0 ptyp5 ptyta ptyxf tty11 vcs2
md104 md167 md229 md61 ptyb1 ptyp6 ptytb ptyy0 tty12 vcs3
md105 md168 md23 md62 ptyb2 ptyp7 ptytc ptyy1 tty13 vcs4
md106 md169 md230 md63 ptyb3 ptyp8 ptytd ptyy2 tty14 vcs5
md107 md17 md231 md64 ptyb4 ptyp9 ptyte ptyy3 tty15 vcs6
md108 md170 md232 md65 ptyb5 ptypa ptytf ptyy4 tty16 vcs7
md109 md171 md233 md66 ptyb6 ptypb ptyu0 ptyy5 tty17 vcsa
md11 md172 md234 md67 ptyb7 ptypc ptyu1 ptyy6 tty18 vcsa1
md110 md173 md235 md68 ptyb8 ptypd ptyu2 ptyy7 tty19 vcsa2
md111 md174 md236 md69 ptyb9 ptype ptyu3 ptyy8 tty2 vcsa3
md112 md175 md237 md7 ptyba ptypf ptyu4 ptyy9 tty20 vcsa4
md113 md176 md238 md70 ptybb ptyq0 ptyu5 ptyya tty21 vcsa5
md114 md177 md239 md71 ptybc ptyq1 ptyu6 ptyyb tty22 vcsa6
md115 md178 md24 md72 ptybd ptyq2 ptyu7 ptyyc tty23 vcsa7
md116 md179 md240 md73 ptybe ptyq3 ptyu8 ptyyd tty24 zero
md117 md18 md241 md74 ptybf ptyq4 ptyu9 ptyye tty25
md118 md180 md242 md75 ptyc0 ptyq5 ptyua ptyyf tty26
md119 md181 md243 md76 ptyc1 ptyq6 ptyub ptyz0 tty27
 
Old 08-31-2003, 07:45 AM   #6
mooreted
Member
 
Registered: May 2003
Posts: 598

Rep: Reputation: 30
Okay, "cdrom" is in there. Here's what my cdrom entry looks like in fstab:

none /mnt/cdrom supermount dev=/dev/scd0,fs=auto,ro,--,iocharset=iso8859-1,codepage=850 0 0

Of course this is for a CD/RW drive but the only difference would be /dev/cdrom instead of /dev/scd0.

Ted.
 
Old 08-31-2003, 10:40 AM   #7
shamus
LQ Newbie
 
Registered: Aug 2003
Distribution: Manrake 9.1
Posts: 5

Original Poster
Rep: Reputation: 0
Ok, here is my 'altered' fstab file. I've changed the /dev/hdb to /dev/cdrom. I rebooted after the change, and still get the same error. I also want to add a few observations, in case they may help solve the problem.

1. Konqeror - when I click on the "CD-Rom mounted at /mnt/cdrom" ICON on my desktop, Konqeror pops up, however, initially the "location" line of Konqeror reads "devices:/nonemntcdrom". After about 5 seconds, the location line changes to "file:/mnt/cdrom" and then the error message:
"cannot enter directory /mnt/cdrom" appears.

2. during boot up, I notice a line that says something like 'CDrom LN382 mounted at hdb' (thats not exact, it goes by pretty fast on the screen)

3. this is the 'information' given by hardrake about my CDrom (start -->configuration-->mandrake control center-->hardware-->hardrake-->information

Model:382

Vendor: Lite-On Technology Corp.

Bus: ide

Channel: secondary

New devfs device: /dev/ide/host0/bus0/target1/lun0/cd

Old device file: /dev/hdb

Media class: cdrom

Does the 'new devfs device' line mean anything? should I be linking the /mnt/cdrom to /dev/ide/host0/bus0/target1/lun0/cd instead of /dev/hdb?

**altered fstab, I saved a copy of my original to desktop in case I have to restore it**
[shamus@192 etc]$ more fstab
/dev/hda1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hda6 /home ext3 defaults 1 2
none /mnt/cdrom supermount dev=/dev/cdrom,fs=auto,ro,--,iocharset=iso8859-1,code
page=850 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=auto,--,iocharset=iso8859-1,sync,cod
epage=850,umask=0 0 0
none /proc proc defaults 0 0
/dev/hda5 swap swap defaults 0 0

Thanks again for all the help

Last edited by shamus; 08-31-2003 at 10:41 AM.
 
Old 08-31-2003, 11:21 AM   #8
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
maybe it's the supermount. Since you've already backed up your fstab, as root do
supermount -i disable
This will remove the 'supermount' tags from the fstab. See if you can mount the cdroms manually after this (you might have to reboot first, I'm not sure).
 
Old 08-31-2003, 11:54 AM   #9
shamus
LQ Newbie
 
Registered: Aug 2003
Distribution: Manrake 9.1
Posts: 2

Rep: Reputation: 0
Progress!

after removing supermount (supermount -i disable) and rebooting, I use a konsole and as root try to mount the CD rom manually to /mnt/cdrom from /dev/hdb.

the CDROM access light turns on, the CD spins up, I get this message:

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

then!

Linux locks up. I cant do an <alt> F2 or anything to bring up another login. I've waiting for about 10 minutes or so, figuring linux was maybe reading the entire CD, but it never 'un-locked-up" and the CD never stopped spinning. So I rebooted and tried again, to the same result. Any suggestions?

Thanks,

shamus
 
Old 08-31-2003, 12:38 PM   #10
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
uhuhuu,
have you tried to manually to remove the CD from the drive?
There might also be a problem with the cd. Try another one if you haven't already -I've had mandrake refuse to read cds burned under windows though the cds seemed perfectly fine under windows.

other than this, nothing occurs to me now.
 
Old 08-31-2003, 12:47 PM   #11
shamus
LQ Newbie
 
Registered: Aug 2003
Distribution: Manrake 9.1
Posts: 2

Rep: Reputation: 0
LOL,

Just tried that, and still the same result. big time lockup, with the CD spinning (trying to access the CD, I suppose). THe mouse stops moving, and the keyboard doesnt respond.
 
Old 08-31-2003, 12:54 PM   #12
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
how about
mount /dev/cdrom /mnt/cdrom
instead of
mount /dev/hdb /mnt/cdrom?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandrake - Unable to access LAN SamJ Linux - Networking 2 02-11-2005 05:45 AM
unable to see cd-rom content TiK Fisher Linux - Hardware 7 07-31-2004 05:26 PM
Unable to access programs in Mandrake 9.2 justinian1978 Mandriva 1 04-13-2004 09:20 AM
DVD-ROM/CD-ROM unable to recognize debain boot CD gottfried Linux - Newbie 2 01-20-2004 12:39 PM
Mandrake 9.0: Unable to Get Write Access to Samba Server on Win2K tkotam Linux - Newbie 2 05-28-2003 10:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration