LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-20-2008, 10:38 AM   #1
joazito
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
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.
 
Old 03-20-2008, 01:02 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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.
 
Old 03-21-2008, 10:50 AM   #3
rosspy
Member
 
Registered: Feb 2008
Distribution: debian
Posts: 45

Rep: Reputation: 15
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.
 
Old 03-21-2008, 03:25 PM   #4
joazito
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Original Poster
Rep: Reputation: 0
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?
 
  


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
cd/dvd drive won't open in Slackware Koentje Linux - Software 1 03-09-2008 03:22 PM
Hard drive accessed constantly lemvigh Linux - Hardware 6 11-10-2007 04:12 AM
DVD-ROM not working. (Light constantly on) windz Linux - Hardware 2 12-03-2006 08:57 AM
Hard drive constantly accessed with SuSE 9.3 ltpl4y3r SUSE / openSUSE 17 08-10-2005 06:49 PM
DVD Drive won't open - until reboot GalaxyPenguin Linux - Hardware 3 04-07-2004 09:32 AM


All times are GMT -5. The time now is 01:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration