LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-11-2004, 05:06 PM   #1
rksanders
LQ Newbie
 
Registered: Nov 2004
Distribution: Debian gnu/linux
Posts: 28

Rep: Reputation: 15
Cannot mount CDROM - No Medium Found


I have been using my CDROM for two years without a problem.
As root
mount /cdrom always worked, provided there was a disk in the drive. One day I powered up and the mount command retruned "openfailed" "no media found". I have tried with numerous CD's, all of which mount properly in my dvd drive with
mount /dvd
The drive is recognized, the file /cdrom exists and is empty. Physical connections all seeme to be ok.
fstab entries for the cdrom and dvd are
/dev/cdrom /cdrom iso9660 user,defaults,ro,noauto 0 2
/dev/hdd /dvd iso9660 user,defaults,ro,noauto 0 2
The dvd mounts with no problem; the cdromdoes not.
I have tried mount /dev/cdrom and mount /dev/hdc
no luck.
Unfortunately I don't know what many things I might have done between the last time it worked and the
first time it didn't.
Any ideas will be greatly appreciated.

Rusty
 
Old 11-11-2004, 05:25 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,933

Rep: Reputation: 3305Reputation: 3305Reputation: 3305Reputation: 3305Reputation: 3305Reputation: 3305Reputation: 3305Reputation: 3305Reputation: 3305Reputation: 3305Reputation: 3305
It is possible that the drive has just failed. The circuit that detects a disk does not work anymore.

If you have tired various disks, stamped (i.e. store bought) as well as audio and disks you have burned with the same results then you have a bad drive.

It happens.
 
Old 11-11-2004, 05:41 PM   #3
rksanders
LQ Newbie
 
Registered: Nov 2004
Distribution: Debian gnu/linux
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks Michaelk!

Didn't really want to hear that, but...

I thought at first the drive may have just quit, but when I found its little light
blinking and that the Kernel was recognizing it, I disgarded that hypothesis.
Is there anyway I can test that circuit?

rksanders
 
Old 11-11-2004, 07:14 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,933

Rep: Reputation: 3305Reputation: 3305Reputation: 3305Reputation: 3305Reputation: 3305Reputation: 3305Reputation: 3305Reputation: 3305Reputation: 3305Reputation: 3305Reputation: 3305
I do not know.
BTW does the drive spin at all?
 
Old 11-11-2004, 07:31 PM   #5
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
The most often used command to mount (as root) a data cdrom is "mount -t iso9660 /dev/hdc /mnt". After doing this, you should see the contents of your cdrom with "ls /mnt". If this doesn't work, there's a good reason to suspect that you've got a hardware failure (like michaelk suggests).

Edit:

Of course, if you've compiled your own kernel, it's possible that you've just forgot to add the kernel support for cdrom (iso9660).

Last edited by Dead Parrot; 11-11-2004 at 07:36 PM.
 
Old 11-11-2004, 08:59 PM   #6
rksanders
LQ Newbie
 
Registered: Nov 2004
Distribution: Debian gnu/linux
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks again Michaelk and thanks Dead Parrot:
The drive has two lights: one labeled "writing" and one labelled "disk in."
When I insert a disk and close the door, the "disk in" light blinks fourteen times.
The "writing" light remains dark. Holding my ear to the disk I hear sounds from
inside the drive, but not the whirring/whinning sound which accompanies a
disk being read.
 
Old 11-11-2004, 09:08 PM   #7
rksanders
LQ Newbie
 
Registered: Nov 2004
Distribution: Debian gnu/linux
Posts: 28

Original Poster
Rep: Reputation: 15
My /mnt directory had two subdirectories in it: dvd and smart. I created a
new directory , cdrom, in it and, as root, typed
mount -t iso9660 /dev/hdc /mnt/cdrom
got the same message "open failed no media found."
I did compile the kernel, but support for cdrom and for fs iso9660 are both
"compiled in."
Any recommendations for a replacement that works with Linux? The
present drive is an ACER CDRW 20x10x40.
rksanders (Rusty)
 
Old 11-11-2004, 09:41 PM   #8
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Hmm... this sounds more and more like a hardware failure. You're sure that your cdrom is a data cdrom? (For example, audio cdroms don't have a filesystem to mount.)

The only thing that comes to my mind to enable you to test if it's a hardware failure or a Debian problem is to test the cdrom drive in some other OS. Have you got Windows or a Knoppix cd?

Edit:

I'd hate to urge anyone to spend their hard-earned money on buying new hardware as long as there's a fair chance that it's only a software problem but, since you ask, here's a list of cdrom drives that are known to work well with Linux: http://www.tldp.org/HOWTO/Hardware-H...m.html#AEN6604

Last edited by Dead Parrot; 11-11-2004 at 11:43 PM.
 
Old 11-12-2004, 04:22 AM   #9
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-current
Posts: 796

Rep: Reputation: 78
Sorry to interrupt this thread, but what if the "No medium found" only occurs with certain cd's? I got a cd from someone with jpg's on it. It opens correctly in windows but No medium found in either Slack or Debain.

Never ran into this before, mount point /mnt/cdrom/ still exists and nothing in fstab has been changed:
Code:
/dev/hda7        swap             swap        defaults         0   0
/dev/hda9        /                reiserfs    defaults         1   1
/dev/hda6        /boot            reiserfs    defaults         1   2
/dev/hda8        /home            ext3        defaults         1   2
/dev/hda1        /mnt/deb       reiserfs    defaults         1   2
/dev/hda5        /mnt/data        vfat        uid=1000,defaults         1   0
/dev/cdrom       /mnt/cdrom       iso9660     user,unhide,noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      vfat        noauto,users     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
/dev/sda1       /mnt/flash      auto    rw,user,noauto  0       0
Any advice more than welcome!

Cheers, Leon.
 
Old 11-12-2004, 10:09 AM   #10
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
@LJSBrokken:

If you've got Windows, Slack, and Debian on the same computer (that is, they all use the same physical cdrom drive), then both Slack and Debian should be able to mount all the cd's you can mount in Windows.

The possible problem I detect in your fstab line for cdrom is that you mount /dev/cdrom to /mnt/cdrom. Now, /dev/cdrom is just a symbolic link that points to the actual cdrom device (possibly /dev/hdc). If you've entrusted in Debian the creation of the symlink /dev/cdom -> /dev/hdc to the discover program and it sometimes fails to create this symlink, then that would explain your troubles.

[Edit: I just noticed that there has been a bug report against discover1 on this issue, and it has already been fixed in Unstable/Sid: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=255103 ]

I'd suggest that you first make sure what is your actual cdrom device. "ls -l /dev | grep cdrom" in xterm should show you where the symlink /dev/cdrom points. (It's usually /dev/hdc or /dev/hdd.) Then you can change the "/dev/cdrom" bit in fstab to your actual cdrom device. That should make mounting cdroms more reliable.

If you know that your cdrom device is actually /dev/hdc (and not, for example, /dev/hdd), then the most reliable way to mount it would be if you do (as root) "mount -t iso9660 /dev/hdc /mnt/cdrom", because this rules out the possible problems with incorrectly made symlinks.

Last edited by Dead Parrot; 11-14-2004 at 05:51 AM.
 
Old 11-12-2004, 10:56 AM   #11
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-current
Posts: 796

Rep: Reputation: 78
Dead Parrot,

Mounting with XP was on another computer. Am proud to say my laptop is windows-free! ;-)

Thanks for your suggestions. I'll have a look at that and report back. But isn't it weird that some cd's mount well, while others won't (but do alright in XP)?

I have no idea what the discover program is, have to read up on that one. Am rather unfamiliar with Debian, I added it when I kicked XP out ;-) and since it's pretty stable, it's good to keep it 'untouched' while tinkering on Slackware so that I always have at least one stable distro running (for work related stuff).

Cheers, Leon.
 
Old 11-12-2004, 11:02 AM   #12
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-current
Posts: 796

Rep: Reputation: 78
yes, /dev/hdc is the cdrom drive, however:
Code:
bash-3.00# mount -t iso9660 /dev/hdc /mnt/cdrom/
mount: block device /dev/hdc is write-protected, mounting read-only
mount: No medium found
bash-3.00#
 
Old 11-12-2004, 11:07 AM   #13
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-current
Posts: 796

Rep: Reputation: 78
In Debian fstab was set up correctly, I mean the /dev/hdc thing. /etc/fstab in Debian is
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hda1       /               reiserfs defaults        0       1
/dev/hda7       none            swap    sw              0       0
/dev/hda5	/mnt/data	vfat	uid=1000,defaults	1	0
/dev/hda8	/mnt/slack_home	ext3	defaults	1	0
/dev/hda9	/mnt/slack_root	reiserfs	defaults	1	0
/dev/hdc        /media/cdrom0   iso9660 ro,user,noauto  0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
/dev/sda1	/mnt/flash	auto	rw,user,noauto	0	0
 
Old 11-12-2004, 11:35 AM   #14
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Quote:
bash-3.00# mount -t iso9660 /dev/hdc /mnt/cdrom/
mount: block device /dev/hdc is write-protected, mounting read-only
mount: No medium found
bash-3.00#
The "mounting read-only" message doesn't indicate any problem -- that's the way cdroms should be mounted. You don't get this this warning if you use "mount -t iso9660 -r /dev/hdc /mnt/cdrom/" instead.

However, the "No medium found" suggests that the mount command cannot find a mountable medium (that is, a data cd) from /dev/hdc. Are you sure that you've inserted a data cd into the cdrom drive before issuing the mount command? (A music cd will not do, because it doesn't have mountable filesystem.)

Last edited by Dead Parrot; 11-12-2004 at 11:51 AM.
 
Old 11-12-2004, 02:04 PM   #15
rksanders
LQ Newbie
 
Registered: Nov 2004
Distribution: Debian gnu/linux
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks again Michaelk and Dead Parrot

I changed fstab from
/dev/cdrom /cdrom iso9660 user,defaults,ro,noauto 0 2
/dev/hdc /cdrom iso9660 user,defaults,ro,noauto 0 2
and entered
mount -t iso9660 /dev/hdc /cdrom
got
mount: block device /dev/hdc is write-protected, mounting read-only
cdrom: open failed.
mount: no medium found
checked: the cdrom is device hdc; the symlink cdrom
does point to hdc
I tried several different disks from several different sources--none in the
cdrom drive
guess it's time to start shopping. If that doesn't work, I'll be back
Thanks for all your help. I've learned alot.
A parting question: when I did ls -l /dev | grep hdc I got
a list of 21devices: hdc, hdc1-hdc20, and ls /dev lists
hundreds of devices that don't seem really to exist.
Where did that list come from?

Rusty
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
No medium found: cant mount swap part Dark Elf Linux - Hardware 5 06-02-2005 11:52 PM
cant mount the cdrom - wrong medium type UddUnderline Mandriva 3 02-15-2005 07:42 AM
mount : No medium found Alwyn Linux - Newbie 3 01-11-2005 12:24 AM
unable to mount USB camera: "No medium found" in Fedora Core 2 meonkeys Fedora 0 05-20-2004 02:35 PM
"no medium found" when mounting cdrom Vivers Linux - Newbie 5 08-16-2003 04:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:34 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration