kanotix.com

Hardware - cd drive detection

2radical - 26.07.2006, 17:33 Uhr
Titel: cd drive detection
I have 2 cd drives:
hdc: ASUS CD-S520/A5, ATAPI CD/DVD-ROM drive
hdd: _NEC DVD_RW ND-3520A, ATAPI CD/DVD-ROM drive
but only /dev/cdrom /media/cdrom0 shows up in /etc/fstab
I can insert an audio cd into hdc & the desktop icon appears & kaffeine plays it OK, but I wonder why both drives didn't show up in fstab?
arlekin - 26.07.2006, 18:17 Uhr
Titel:
Sounds familiar: On my machine, there are two symlinks (given by default): /dev/cdrom links to /dev/hdc (dvd player), /dev/cdrom1 links to /dev/hdd (dvd burner).
That's why in my partition table, /dev/hdc and /dev/hdd are mentioned explicitly (replacing the entries for /dev/cdrom and /dev/cdrom1), as follows:
Code:

/dev/hdc   /media/cddvd   iso9660   noauto,user,ro       0 0
/dev/hdd   /media/dvdrw   iso9660   noauto,user,rw,sync  0 0

2radical - 26.07.2006, 19:42 Uhr
Titel:
Thanks--I think I'll do that too. What directory are your symlinks in? cause I'll probably have to
ln -s [source destination] at least for hdc.
arlekin - 26.07.2006, 20:26 Uhr
Titel:
2radical hat folgendes geschrieben::

What directory are your symlinks in?

Code:

USER # ls -la /dev/cd*
lrwxrwxrwx 1 root root 3 2006-07-26 21:01 /dev/cdrom -> hdc
lrwxrwxrwx 1 root root 3 2006-07-26 21:01 /dev/cdrom1 -> hdd
lrwxrwxrwx 1 root root 3 2006-07-26 21:01 /dev/cdrw -> hdd
USER # ls -la /dev/dvd*
lrwxrwxrwx 1 root root 3 2006-07-26 21:01 /dev/dvd -> hdc
lrwxrwxrwx 1 root root 3 2006-07-26 21:01 /dev/dvd1 -> hdd
lrwxrwxrwx 1 root root 3 2006-07-26 21:01 /dev/dvdrw -> hdd

2radical hat folgendes geschrieben::

cause I'll probably have to ln -s [source destination] at least for hdc.

I don't know - I haven't created these links, I'm only ignoring them Winken
2radical - 26.07.2006, 21:41 Uhr
Titel:
AHA! Thank you arlekin! My /dev/cdrom is pointing to hdd instead of hdc. I wonder why that happened? Maybe I should remove those links & create new ones pointing to hdc. I don't know if they should hard or soft links, though. I'm thinking hard link because they refer to files in the same file system & don't require user access rights, but I'm not sure about that, to be honest.

joyboy@WorldsEnd:~$ ls -al /dev/cd*
lrwxrwxrwx 1 root root 3 Jul 26 03:56 /dev/cdrom -> hdd
lrwxrwxrwx 1 root root 3 Jul 26 03:56 /dev/cdrw -> hdd
joyboy@WorldsEnd:~$ ls -al /dev/dvd*
lrwxrwxrwx 1 root root 3 Jul 26 03:56 /dev/dvd -> hdd
lrwxrwxrwx 1 root root 3 Jul 26 03:56 /dev/dvdrw -> hdd
arlekin - 26.07.2006, 22:18 Uhr
Titel:
I'm only guessing - but are you able to mount both (!) devices manually from the console (and I'm not thinking of music cds - they are handled in a different way than "real data media"), for example as follows:
Code:

ROOT # mkdir /media/cddvd; mkdir /media/dvdrw
ROOT # mount -v -t iso9660 -o ro /dev/hdc /media/cddvd
ROOT # mount -v -t iso9660 -o rw /dev/hdd /media/dvdrw

Or, if you prefer a more "graphical" way: 1. put a medium in both trays, 2. start Konqueror and take a look at the "adress" media:/ ... both devices should show up there, presumably as "unmounted device(s)".

What I'm after? Let's call it "elemination of possible sources of error(s)" Winken if the procedures described above fail to succeed, there might be more of a problem than just a few missing links and/or "outdated" entries in the partition table.
2radical - 27.07.2006, 17:37 Uhr
Titel:
I'm able to mount both drives from Konsole and Konqueror, so I'm thinking if the 2 links:
lrwxrwxrwx 1 root root 3 Jul 26 03:56 /dev/cdrom -> hdd
lrwxrwxrwx 1 root root 3 Jul 26 03:56 /dev/cdrw -> hdd
point to hdc instead of hdd might be helpful. I don't think fstab would get rewritten on reboot as a result though, I will probably have to edit it manually.
arlekin - 27.07.2006, 18:48 Uhr
Titel:
2radical hat folgendes geschrieben::

I'm able to mount both drives from Konsole (...)

O.k., as expected - then I would recommend to change the partition table as discussed ... By the way: mentioning /dev/cdrom, which is "only" a link, instead of the "real" device, /dev/hdc or /dev/hdd, could be misleading and therefore should be avoided (at least that's what I think of it ...).
2radical hat folgendes geschrieben::

I don't think fstab would get rewritten on reboot as a result though, I will probably have to edit it manually.

Your partition table should stay the way you put it (by manual edition, of course) - after all, this is not SUSE Winken
2radical - 27.07.2006, 20:43 Uhr
Titel:
Zitat:
mentioning /dev/cdrom, which is "only" a link, instead of the "real" device, /dev/hdc or /dev/hdd, could be misleading and therefore should be avoided


OK thanks arlekin, I will try replacing /dev/cdrom with /dev/hdc and /dev/hdd.
kb0hae - 01.08.2006, 03:28 Uhr
Titel: cd drive detection.
Hi. 2radical said "OK thanks arlekin, I will try replacing /dev/cdrom with /dev/hdc and /dev/hdd." I had to do this to get the both of my CD drives to be recognized consistantly in Cedega. Only 1 drive was recognized at a time by Cedega, and it could be either drive at random. Since replacing /dev/cdrom with /dev/hdc and /dev/cdrom1 with /dev/hdd, I havd not had any problems!
jbs1136 - 11.08.2006, 21:45 Uhr
Titel: RE: cd drive detection.
arlekin,

I did a search and came up with this thread. Just wanted to say thank you because I read what your code was, modified it to fit my box and now I can watch dvd's.

Thank you very much.

John
Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007