28.03.2024, 09:12 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]

Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
Autor Nachricht
2radical
Titel: cd drive detection  BeitragVerfasst am: 26.07.2006, 17:33 Uhr



Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
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?

_________________
illegitimati non carborundum
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
arlekin
Titel:   BeitragVerfasst am: 26.07.2006, 18:17 Uhr



Anmeldung: 21. Jun 2006
Beiträge: 193
Wohnort: Switzerland
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

_________________
Arlekin's Dream Ltd. | http://www.arlekin.ch/
- Bernd Villiger et al. | http://www.penguin.ch/
 
 Benutzer-Profile anzeigen Private Nachricht senden E-Mail senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
2radical
Titel:   BeitragVerfasst am: 26.07.2006, 19:42 Uhr



Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
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.

_________________
illegitimati non carborundum
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
arlekin
Titel:   BeitragVerfasst am: 26.07.2006, 20:26 Uhr



Anmeldung: 21. Jun 2006
Beiträge: 193
Wohnort: Switzerland
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

_________________
Arlekin's Dream Ltd. | http://www.arlekin.ch/
- Bernd Villiger et al. | http://www.penguin.ch/
 
 Benutzer-Profile anzeigen Private Nachricht senden E-Mail senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
2radical
Titel:   BeitragVerfasst am: 26.07.2006, 21:41 Uhr



Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
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

_________________
illegitimati non carborundum
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
arlekin
Titel:   BeitragVerfasst am: 26.07.2006, 22:18 Uhr



Anmeldung: 21. Jun 2006
Beiträge: 193
Wohnort: Switzerland
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.

_________________
Arlekin's Dream Ltd. | http://www.arlekin.ch/
- Bernd Villiger et al. | http://www.penguin.ch/
 
 Benutzer-Profile anzeigen Private Nachricht senden E-Mail senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
2radical
Titel:   BeitragVerfasst am: 27.07.2006, 17:37 Uhr



Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
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.

_________________
illegitimati non carborundum
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
arlekin
Titel:   BeitragVerfasst am: 27.07.2006, 18:48 Uhr



Anmeldung: 21. Jun 2006
Beiträge: 193
Wohnort: Switzerland
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

_________________
Arlekin's Dream Ltd. | http://www.arlekin.ch/
- Bernd Villiger et al. | http://www.penguin.ch/
 
 Benutzer-Profile anzeigen Private Nachricht senden E-Mail senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
2radical
Titel:   BeitragVerfasst am: 27.07.2006, 20:43 Uhr



Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
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.

_________________
illegitimati non carborundum
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
kb0hae
Titel: cd drive detection.  BeitragVerfasst am: 01.08.2006, 03:28 Uhr



Anmeldung: 22. Jul 2005
Beiträge: 124

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!
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
jbs1136
Titel: RE: cd drive detection.  BeitragVerfasst am: 11.08.2006, 21:45 Uhr



Anmeldung: 15. Jul 2006
Beiträge: 136
Wohnort: Spanaway, Wa
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
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Beiträge vom vorherigen Thema anzeigen:     
Gehe zu:  
Alle Zeiten sind GMT + 1 Stunde
Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
PNphpBB2 © 2003-2007 
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.