LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   CD drive not working (https://www.linuxquestions.org/questions/linux-newbie-8/cd-drive-not-working-726962/)

macubex 05-19-2009 02:10 AM

CD drive not working
 
I inserted a dvd in my cd drive. After that , I guess, it's not working. When I insert a cd, it makes some sounds and nothing shows up. And /media/cdrom0 directory is empty too. Please help.....

linuxlover.chaitanya 05-19-2009 02:13 AM

What is the distribution? It might not necessarily be the problem with your linux. It could be hardware issue as well if you can check with some other drive.

macubex 05-19-2009 11:09 AM

Thank you for your reply.
I'm using debian. My usb ports are working. And I think my floppy drive is also working too. Do you think the reason is I inserted a dvd in my cd drive?

Unfortunately I don't have any other drives to check with.

rikijpn 05-19-2009 12:08 PM

No, I don't think that by putting a DVD in a CD drive it will break. I've done it once, and after looping like for a lot, it just kept working fine.
Maybe you need to edit your /etc/fstab, or mount it manually. You know how there are some configs to make it all automatic(like when you put a USB flash drive and then a window pops up and your /media/device dir is automatically created), I just couldn't stand that and shut that off.
Well, you should check if the device for your CD drive still exists (otherwise your kernel got screwed, or your drive is broken-> more likely). And after that put a disk, and try to mount it manually.

linuxlover.chaitanya 05-20-2009 12:05 AM

Quote:

Originally Posted by macubex (Post 3545929)
Thank you for your reply.
I'm using debian. My usb ports are working. And I think my floppy drive is also working too. Do you think the reason is I inserted a dvd in my cd drive?

Unfortunately I don't have any other drives to check with.

Ok you did not say that the drive is a usb one. So if it does not get mounted automatically, the best way is to try and mount it manually.
But I seriously doubt that a cd drive will read a dvd.

macubex 05-20-2009 01:26 AM

No, my CD drive is not usb connected, that's not what I said. I just said that my usb ports are ok. When I put in a cd in my drive and try to mount it using 'KDE control module', the tray goes in, cd rotates, but then it says 'mount: No medium found'.

Quote:

No, I don't think that by putting a DVD in a CD drive it will break. I've done it once, and after looping like for a lot, it just kept working fine.
Maybe you need to edit your /etc/fstab, or mount it manually. You know how there are some configs to make it all automatic(like when you put a USB flash drive and then a window pops up and your /media/device dir is automatically created), I just couldn't stand that and shut that off.
Well, you should check if the device for your CD drive still exists (otherwise your kernel got screwed, or your drive is broken-> more likely). And after that put a disk, and try to mount it manually.

How do I know if it's the problem of my drive or kernel? And how do I rectify that?

linuxlover.chaitanya 05-20-2009 01:30 AM

Ok your mention of usb made me think it is a usb drive. Can you try and mount it manually using mount command and see if it gets mounted. The other issue could be faulty cd media and not the drive.

rikijpn 05-20-2009 08:21 AM

Ok, I have no idea of how that 'KDE control module' thing works, so I can't tell you much about that.
You can check whether your device still exists by looking at your /dev/ directory. Your cd device is usually /dev/scd0, /dev/sr0 or /dev/hdc I think... check if there is one of those. Also, check your /proc/sys/dev/cdrom/info , if you can see numbers like after drive speed, see some letters after drive name(this will be on /dev/), then your device exists, and you probably have problems mounting the disk.
try:
Code:

less /proc/sys/dev/cdrom/info
If you succed in finding the device name, put a cd, and try
Code:

sudo mount -t iso9660 /dev/DEVICE_NAME_HERE /media/cdrom

I don't think your kernel is the problem... modules just don't get "removed" if you don't do anything for it to happen. But if you want to check, stfw for modules and how to add and remove them (and of course they keyword CD somewhere).

macubex 05-20-2009 08:59 AM

Quote:

less /proc/sys/dev/cdrom/info
I got this in the file

Quote:

CD-ROM information, Id: cdrom.c 3.20 2003/12/17

drive name: hdd
drive speed: 52
drive # of slots: 1
Can close tray: 1
Can open tray: 1
Can lock tray: 1
Can change speed: 1
Can select disk: 0
Can read multisession: 1
Can read MCN: 1
Reports media changed: 1
Can play audio: 1
Can write CD-R: 1
Can write CD-RW: 1
Can read DVD: 0
Can write DVD-R: 0
Can write DVD-RAM: 0
Can read MRW: 1
Can write MRW: 1
Can write RAM: 1


I put a cd in and then tried to mount as root. This is what I got

Quote:

root@r-1de4224f24df4:/# mount -t iso9660 /dev/hdd /media/cdrom
mount: No medium found
The cd is good.

rikijpn 05-20-2009 09:14 AM

beats me
 
... maybe try this?
https://lists.linux-foundation.org/p...ne/018981.html

ceantuco 05-20-2009 09:47 AM

Have you tried #reboot?? I had the a similar problem with my DVD/CDRW drive. just wondering...

macubex 05-21-2009 01:36 AM

I waited for some time as it said. But it still shows 'no medium found'.

Quote:

Have you tried #reboot?? I .........
Still the same.

rikijpn 05-21-2009 03:01 AM

Well, at this point you should try booting from a live CD like knoppix or something to see whether you drive really works.
If it works you may want to install another/reinstall your kernel. Did you do any kernel update/new compilation lately?

macubex 05-22-2009 12:39 AM

It's not booting from CD. The CD rotates for a while and it boots from hard disk. And yeah, I've done an update of kernel, through the update manager of Debian.

linuxlover.chaitanya 05-22-2009 01:57 AM

If its not booting from the cd then you should check with the drive rather than your os and cd media.


All times are GMT -5. The time now is 08:04 PM.