LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Two devices pointing to one peice of hardware!? Kubuntu (https://www.linuxquestions.org/questions/linux-software-2/two-devices-pointing-to-one-peice-of-hardware-kubuntu-473514/)

Stabby McTwist 08-13-2006 12:34 PM

Two devices pointing to one peice of hardware!? Kubuntu
 
I have a feeling that this will have a simple answer, but I'm rather new to Linux and don't know how to configure things like this. I have two CD drives. One is just a CD-ROM, the other is a CD-RW. The CD-ROM should be /dev/hdc and the CD-RW should be /dev/hdd. Both hdd and hdc access the CD-ROM, though. I'm running Kubuntu. Both drives are atapi. When I insert a disk into the CD-RW(hdd) the drive reads and stuff, but nothing is mounted. The other one mounts normally. Whenever I try to access hdd, hdc starts spinning. I'm perplexed, but also inexperienced. Thanks in advance!

Tinkster 08-13-2006 01:41 PM

What references to both drives do you see in dmesg?
I don't know where mdk makes its links under /dev but have a
look for cdrom, and check on those with ls -l ...
Maybe try
find /dev -name "cdro*" -exec ls -ld {} \;


Cheers,
Tink

Stabby McTwist 08-13-2006 02:27 PM

Well, the only thing I see about cdroms in dmesg is..

[17179599.628000] cdrom: open failed.
[17179599.908000] cdrom: open failed.
[17179599.912000] cdrom: open failed.

I also tried: find /dev -name "cdr*" -exec is -ld {} \;
It didn't find anything, but I can see cdrw and cdrom0 when I go into /dev in konqueror.

Stabby McTwist 08-13-2006 04:42 PM

Ok, I got it to something workable now. The CD-RW can burn, but only at 12x. It was a jumper problem there. The CD-RW mounts blank cds while I'm burning them, but nothing else.

bigrigdriver 08-13-2006 06:03 PM

First thing to do is check the jumpers on the two drives. One should be jumpered to Master; the other to Slave.

Second, in your file manager, look in the /dev directory. Look for devices named cdrom, cdrecorder, or something like that. The icom may have a down pointed arrow superimposed indicating it's a symlink to another device.

To find out what divice it links to, open a console window and enter the command: ls =l /dev/cdrom. It should show you something like this:
lrwxrwxrwx 1 root root 3 2006-08-12 07:16 /dev/cdrom -> hdc
which indicates that /dev/cdrom is linked to device /dev/hdc.

The symlinks are easily broken; just delete /dev/cdrom. Symlinks are just as easily made: ln -s /dev/hdc /dev/cdrom. ln is the command to make a link; -s is the option to create a symlink; /dev/hdc is the target to link to; /dev/cdrom is the link name.

So, it the links aren't linking to the device you think they should, you can easily break the current links, and remake them as you see fit.


All times are GMT -5. The time now is 02:43 AM.