LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   My DVD drive is constantly being accessed, if I open the tray it closes again (https://www.linuxquestions.org/questions/linux-newbie-8/my-dvd-drive-is-constantly-being-accessed-if-i-open-the-tray-it-closes-again-629458/)

joazito 03-20-2008 09:38 AM

My DVD drive is constantly being accessed, if I open the tray it closes again
 
I installed ubuntu 64 bits to use as a backuppc server, which it does nicely. But something is wrong with the DVD drive, it's contantly being accessed although there's no disc there. And if I try to open it the tray closes right after.

MS3FGX 03-20-2008 12:02 PM

So the light is always blinking and it is spinning up?

You can see which program is accessing the drive, which should help. First find the device node for the drive in question with a command like:

Code:

dmesg | grep ATAPI
Which returns the following on my system:

Code:

tj@T-Bird:~$ dmesg | grep ATAPI
hdc: ATAPI DVD A DH20A4P, ATAPI CD/DVD-ROM drive
hdc: ATAPI 48X DVD-ROM DVD-R-RAM CD-R/RW drive, 2048kB Cache, UDMA(66)

You can then use the device (in my case, hdc) along with the "lsof" command (list open files) to find which program is using it.

Code:

sudo lsof | grep /dev/hdc
The output will be all of the programs accessing that device file, as well as the user running it.

rosspy 03-21-2008 09:50 AM

I had the same problem with my dvd-rom drive but it wasn't due to the OS.
It used close the tray whenever I opened it both on linux & xp until I finally replaced the drive with a new one.

joazito 03-21-2008 02:25 PM

It isn't accessing the DVD today, but here's what happens when I type dmesg:

Quote:

[71411.916444] device-mapper: ioctl: error adding target to table
[71411.916944] device-mapper: table: 254:3: linear: dm-linear: Device lookup failed
[71411.917111] device-mapper: ioctl: error adding target to table
[71411.917603] device-mapper: table: 254:3: linear: dm-linear: Device lookup failed
[71411.917769] device-mapper: ioctl: error adding target to table
[71411.918239] device-mapper: table: 254:3: linear: dm-linear: Device lookup failed
[71411.918403] device-mapper: ioctl: error adding target to table
[71411.918842] device-mapper: table: 254:3: linear: dm-linear: Device lookup failed
[71411.919002] device-mapper: ioctl: error adding target to table
[...etc]
What's going on?


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