Wie Gerätedatei für DVD-RW/DVD-RAM-Laufwerk ermitteln?
Hallo liebe Liste, früher war das eine einfache Geschichte: $> grep "hd[abcd]|ide" /var/log/boot.msg lieferte Einträge der Art PCI: Setting latency timer of device 0000:02:00.1 to 64 ide0: BM-DMA at 0xa400-0xa407, BIOS settings: hda:pio, hdb:pio ide1: BM-DMA at 0xa408-0xa40f, BIOS settings: hdc:pio, hdd:pio Probing IDE interface ide0... hda: HL-DT-ST DVDRAM GSA-4167B, ATAPI CD/DVD-ROM drive hdb: WAITEC ALADAR/1, ATAPI CD/DVD-ROM drive Weil es nur 2 IDE-Ports mit je zwei Kanälen gab, wußte man damit sofort, daß man mir fdisk /dev/hda eine eingelegte DVD-RAM partitionieren konnte. Da man heutzutage zig SATA-Anschlüsse hat und (fast) alles ein SCSI-Gerät ist, ist es wohl nicht so leicht, die richtige Gerätedatei für ein Laufwerk zu finden. Das obige Kommando liefert bei meinem Rechner gar nichts vernünftiges mehr (außer, wenn man ALSA Sound-Treiber gesucht hat), deswegen habe ich es versucht mit grep -E "(DVD|CD-ROM)" /var/log/boot.msg und folgendes Ergebnis erhalten: <6>ata9.00: ATAPI: TOSHIBA DVD/HD SD-H802A, TS06, max UDMA/33 <6>ata9.01: ATAPI: Optiarc DVD RW AD-7191A, 1.02, max UDMA/66 <5>scsi 8:0:0:0: CD-ROM TOSHIBA DVD/HD SD-H802A TS06 PQ: 0 ANSI: 5 <5>scsi 8:0:1:0: CD-ROM Optiarc DVD RW AD-7191A 1.02 PQ: 0 ANSI: 5 <6>Uniform CD-ROM driver Revision: 3.20 <7>sr 8:0:0:0: Attached scsi CD-ROM sr0 <7>sr 8:0:1:0: Attached scsi CD-ROM sr1 Mit den Geräten /dev/sr[01] kann es kaum funktionieren, da hiermit DVD-RWs eingebunden werden. Da meine eingelegte DVD-RAM schon ein ext2-Dateisystem trägt, dachte ich an ein SCSI-Device ala /dev/sd[a-h], aber keines von diesen läßt sich mounten. Was mache ich falsch bzw, muß ich noch beachten? Danke für jede noch so kleine Anregung! Ach ja, bei mir läuft eine openSuSE 11.0. mit Viele Grüße Tom -- Nur bis 16.03.! DSL-Komplettanschluss inkl. WLAN-Modem für nur 17,95 ¿/mtl. + 1 Monat gratis!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a -- Um die Liste abzubestellen, schicken Sie eine Mail an: opensuse-de+unsubscribe@opensuse.org Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: opensuse-de+help@opensuse.org
Thomas Michalka schrieb:
Hallo liebe Liste,
früher war das eine einfache Geschichte:
$> grep "hd[abcd]|ide" /var/log/boot.msg
lieferte Einträge der Art
PCI: Setting latency timer of device 0000:02:00.1 to 64 ide0: BM-DMA at 0xa400-0xa407, BIOS settings: hda:pio, hdb:pio ide1: BM-DMA at 0xa408-0xa40f, BIOS settings: hdc:pio, hdd:pio Probing IDE interface ide0... hda: HL-DT-ST DVDRAM GSA-4167B, ATAPI CD/DVD-ROM drive hdb: WAITEC ALADAR/1, ATAPI CD/DVD-ROM drive
Weil es nur 2 IDE-Ports mit je zwei Kanälen gab, wußte man damit sofort, daß man mir fdisk /dev/hda eine eingelegte DVD-RAM partitionieren konnte. Da man heutzutage zig SATA-Anschlüsse hat und (fast) alles ein SCSI-Gerät ist, ist es wohl nicht so leicht, die richtige Gerätedatei für ein Laufwerk zu finden. Das obige Kommando liefert bei meinem Rechner gar nichts vernünftiges mehr (außer, wenn man ALSA Sound-Treiber gesucht hat), deswegen habe ich es versucht mit
grep -E "(DVD|CD-ROM)" /var/log/boot.msg
und folgendes Ergebnis erhalten:
<6>ata9.00: ATAPI: TOSHIBA DVD/HD SD-H802A, TS06, max UDMA/33 <6>ata9.01: ATAPI: Optiarc DVD RW AD-7191A, 1.02, max UDMA/66 <5>scsi 8:0:0:0: CD-ROM TOSHIBA DVD/HD SD-H802A TS06 PQ: 0 ANSI: 5 <5>scsi 8:0:1:0: CD-ROM Optiarc DVD RW AD-7191A 1.02 PQ: 0 ANSI: 5 <6>Uniform CD-ROM driver Revision: 3.20 <7>sr 8:0:0:0: Attached scsi CD-ROM sr0 <7>sr 8:0:1:0: Attached scsi CD-ROM sr1
Mit den Geräten /dev/sr[01] kann es kaum funktionieren, da hiermit DVD-RWs eingebunden werden. Da meine eingelegte DVD-RAM schon ein ext2-Dateisystem trägt, dachte ich an ein SCSI-Device ala /dev/sd[a-h], aber keines von diesen läßt sich mounten.
Was mache ich falsch bzw, muß ich noch beachten? Danke für jede noch so kleine Anregung! Ach ja, bei mir läuft eine openSuSE 11.0.
mit Viele Grüße
Tom
Was sagt: ls -l /dev | grep sr[01] -- Mit freundlichen Grüßen Martin Blank -- Um die Liste abzubestellen, schicken Sie eine Mail an: opensuse-de+unsubscribe@opensuse.org Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: opensuse-de+help@opensuse.org
Hallo zusammen, On Thursday 12 March 2009 16:39, Thomas Michalka wrote:
Was mache ich falsch bzw, muß ich noch beachten?
Du benutzt den falschen Befehl. ;) hwinfo --cdrom --short liefert das gewünschte. Ohne --short noch jede Menge mehr. Liebe Grüße Erik -- "Toleranz kann man von den Rauchern lernen. Noch nie hat sich ein Raucher über einen Nichtraucher beschwert." Alessandro Pertini % Erik P. Roderwald * Uhlenhoffweg 18 * 21129 Hamburg http://www.zigarren-rollen.de -- Um die Liste abzubestellen, schicken Sie eine Mail an: opensuse-de+unsubscribe@opensuse.org Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: opensuse-de+help@opensuse.org
Hallo, Am Don, 12 Mär 2009, Thomas Michalka schrieb:
Mit den Geräten /dev/sr[01] kann es kaum funktionieren, da hiermit DVD-RWs eingebunden werden.
Doch, das passt schon. # lsscsi | awk '$2 ~ "cd" { print; }' [6:0:0:0] cd/dvd HL-DT-ST DVD-RAM GH22NP20 1.00 /dev/sr0 # lsscsi | awk '$2 ~ "cd" { print $NF; }' /dev/sr0 # cdrecord -atip dev=/dev/sr0 [..] Device seems to be: Generic mmc2 DVD-R/DVD-RW. wodim: Found unsupported DVD-RAM media. # mount /dev/sr0 /dvdram /dev/sr0 on /dvdram type udf (rw,nosuid,nodev,noatime,nodiratime) # rsync -avvucxH --ignore-existing ./ /dvdram/root/ # sync [dauert] [Daten landen auf dem DVD-RAM] Sollte mit ext2 genauso klappen. HTH, -dhn -- <[TN]FBMachine> i got kicked out of barnes and noble once for moving all the bibles into the fiction section -- http://www.bash.org/?406373 -- Um die Liste abzubestellen, schicken Sie eine Mail an: opensuse-de+unsubscribe@opensuse.org Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: opensuse-de+help@opensuse.org
Hi, -------- Original-Nachricht --------
Datum: Thu, 12 Mar 2009 20:52:57 +0100 Von: David Haller <lists@dhaller.de>
# lsscsi | awk '$2 ~ "cd" { print; }' [6:0:0:0] cd/dvd HL-DT-ST DVD-RAM GH22NP20 1.00 /dev/sr0 # lsscsi | awk '$2 ~ "cd" { print $NF; }' /dev/sr0
Bei mir gibt's scheinbar keine Device-Anbindung: # lsscsi | awk '$2 ~ "cd" { print; }' [8:0:0:0] cd/dvd TOSHIBA DVD/HD SD-H802A TS06 - [8:0:1:0] cd/dvd Optiarc DVD RW AD-7191A 1.02 - # lsscsi | awk '$2 ~ "cd" { print $NF; }' - - Sind hier die toten kio_file-Prozesse, die die CD im Toshiba-Lw festhalten, die Ursache, wie ich bereits in meiner letzten Mail an die Liste spekuliert habe? lsof | grep Fotos__003 ls 3210 root 3r DIR 11,0 12288 1472 /media/Fotos__003 kio_file 6421 thomas 10r REG 11,0 4373177 1483 /media/Fotos__003/pict0190.jpg kio_file 6464 thomas 10r REG 11,0 4242587 1508 /media/Fotos__003/pict1886.jpg kio_file 6476 thomas 10r REG 11,0 4420921 1504 /media/Fotos__003/pict1800.jpg [... und noch etliche mehr]
# mount /dev/sr0 /dvdram /dev/sr0 on /dvdram type udf (rw,nosuid,nodev,noatime,nodiratime) # rsync -avvucxH --ignore-existing ./ /dvdram/root/
Nur nebenbei: das --ignore-existing verstehe ich hier nicht so ganz. Bei mir wäre ein neues Backup-Verzeichnis leer. Dann wäre die Option doch überflüssig?
# sync
Spricht etwas dagegen, daß man die sync-Option beim mount-Kommando bzw. in der fstab angibt? Gruß, Tom -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01 -- Um die Liste abzubestellen, schicken Sie eine Mail an: opensuse-de+unsubscribe@opensuse.org Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: opensuse-de+help@opensuse.org
Hallo, Am Fre, 13 Mär 2009, Thomas Michalka schrieb:
Datum: Thu, 12 Mar 2009 20:52:57 +0100 Von: David Haller <lists@dhaller.de>
# lsscsi | awk '$2 ~ "cd" { print; }' [6:0:0:0] cd/dvd HL-DT-ST DVD-RAM GH22NP20 1.00 /dev/sr0 # lsscsi | awk '$2 ~ "cd" { print $NF; }' /dev/sr0
Bei mir gibt's scheinbar keine Device-Anbindung:
# lsscsi | awk '$2 ~ "cd" { print; }' [8:0:0:0] cd/dvd TOSHIBA DVD/HD SD-H802A TS06 - [8:0:1:0] cd/dvd Optiarc DVD RW AD-7191A 1.02 - # lsscsi | awk '$2 ~ "cd" { print $NF; }' - -
Ist sr_mod geladen? Wenn nicht teste das mal: 'modprobe -v sr_mod sg' und dann nochmal das lsscsi.
Sind hier die toten kio_file-Prozesse, die die CD im Toshiba-Lw festhalten, die Ursache, wie ich bereits in meiner letzten Mail an die Liste spekuliert habe?
lsof | grep Fotos__003 kio_file 6421 thomas 10r REG 11,0 4373177 1483 /media/Fotos__003/pict0190.jpg [... und noch etliche mehr]
Das kann zwar Probleme machen, aber die LWs sollten dennoch ein Device bekommen.
# mount /dev/sr0 /dvdram /dev/sr0 on /dvdram type udf (rw,nosuid,nodev,noatime,nodiratime) # rsync -avvucxH --ignore-existing ./ /dvdram/root/
Nur nebenbei: das --ignore-existing verstehe ich hier nicht so ganz. Bei mir wäre ein neues Backup-Verzeichnis leer. Dann wäre die Option doch überflüssig?
Äh, das war der 2te Teil einer abgebrochenen Kopieraktion. Sollte ja eh nur demonstrieren, daß man "einfach so" das Medium beschreiben kann.
# sync
Spricht etwas dagegen, daß man die sync-Option beim mount-Kommando bzw. in der fstab angibt?
Kommt darauf an, was du machen willst. Wenn du in einem Rutsch etwas schreiben willst kannst du die Option verwenden, wenn du aber z.B. Dateien bearbeiten, löschen, umbenennen usw. willst, dann ist es sinnvoller nicht jede Aktion schreiben zu lassen, sondern die mehr oder weniger erst beim 'sync'-Aufruf. Gilt für DVD/CD-RW mit Packet-Writing und Flash-Medien genauso. Die Medien sollen eben nicht ständig unnötig "geschrieben" werden, speziell die Blöcke mit den Metainformationen (Dateisystemabhängig), deswegen auch 'noatime,nodiratime' bei den Optionen. -dnh --
Dann nenn mir doch mal einen Spezialeffekt aus irgendeinem Film, der deiner Meinung nach nicht dramaturgisch motiviert war. [ >H. Foest u. M. Hoyer] Star Wars, Eps I - III, Effektdauer von der ersten bis zur letzten Filmminute, gelegentlich unterbrochen durch schlechte Spielszenen und hanebüchene Dialoge. -- Um die Liste abzubestellen, schicken Sie eine Mail an: opensuse-de+unsubscribe@opensuse.org Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: opensuse-de+help@opensuse.org
Guten Morgen, -------- Original-Nachricht --------
Datum: Sun, 15 Mar 2009 19:51:43 +0100 Von: David Haller <lists@dhaller.de> An: opensuse-de@opensuse.org Betreff: Re: Wie Gerätedatei für DVD-RW/DVD-RAM-Laufwerk ermitteln?
Bei mir gibt's scheinbar keine Device-Anbindung:
# lsscsi | awk '$2 ~ "cd" { print; }' [8:0:0:0] cd/dvd TOSHIBA DVD/HD SD-H802A TS06 - [8:0:1:0] cd/dvd Optiarc DVD RW AD-7191A 1.02 - # lsscsi | awk '$2 ~ "cd" { print $NF; }' - -
Ist sr_mod geladen? Wenn nicht teste das mal: 'modprobe -v sr_mod sg' und dann nochmal das lsscsi.
# lsmod | grep -E "sr_mod|sg" sr_mod 35892 19 videobuf_dma_sg 32644 3 saa7134_dvb,videobuf_dvb,saa7134 videobuf_core 38532 3 videobuf_dvb,saa7134,videobuf_dma_sg cdrom 53416 2 ide_cd_mod,sr_mod sg 56912 0 scsi_mod 195160 6 st,sr_mod,usb_storage,sg,sd_mod,libata Sind wohl geladen, aber lsscsi ergibt dasselbe, wie oben, daher hier keine Wiederholung.
Sind hier die toten kio_file-Prozesse, die die CD im Toshiba-Lw festhalten, die Ursache, wie ich bereits in meiner letzten Mail an die Liste spekuliert habe?
lsof | grep Fotos__003 kio_file 6421 thomas 10r REG 11,0 4373177 1483 /media/Fotos__003/pict0190.jpg [... und noch etliche mehr]
Das kann zwar Probleme machen, aber die LWs sollten dennoch ein Device bekommen.
Kann man solche toten (D für dead; an anderer Stelle als "ununterbrechbar schlafend" bezeichnet, was ich dann eher als komatös bezeichnen würde) Prozesse ohne Reboot loswerden? Irgendwie habe ich das Gefühl, daß ich dann die CD wieder herausbekäme und dann sowohl CDs/DVDs als auch DVD-RAMs wieder "genommen" würden. Warum funktioniert umount -f /dev/sr0 eigentlich nicht? Datenverlust auf einer CD riskiert man doch nicht.
# mount /dev/sr0 /dvdram /dev/sr0 on /dvdram type udf (rw,nosuid,nodev,noatime,nodiratime) # rsync -avvucxH --ignore-existing ./ /dvdram/root/
Äh, das war der 2te Teil einer abgebrochenen Kopieraktion. Sollte ja eh nur demonstrieren, daß man "einfach so" das Medium beschreiben kann.
Aha. Aber dann gibt es hier einen Unterschied zu früher. Da mußte ich auf einer DVD-RAM nämlich mindestens eine Partition anlegen, damit das schreibbare Device /dev/hdc1 hieß, nicht /dev/hdc. Letzteres steht ja quasi für das ganze Gerät bzw. Medium. (Ich weiß heute nicht mehr die genaue Begründung, warum man keinen unpartitionierten Massenspeicher beschreiben sollte.) Ist dies eine Spezialität von UDF? (Hatte früher nämlich mit ext2 versehene DVD-RAMs verwendet; ext2 scheint eine Partition, d.h. einen Eintrag in der Partitionstabelle des Mediums zu brauchen.) Gruß, Tom -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01 -- Um die Liste abzubestellen, schicken Sie eine Mail an: opensuse-de+unsubscribe@opensuse.org Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: opensuse-de+help@opensuse.org
Hallo, Am Mon, 16 Mär 2009, Thomas Michalka schrieb:
Von: David Haller <lists@dhaller.de>
Bei mir gibt's scheinbar keine Device-Anbindung:
# lsscsi | awk '$2 ~ "cd" { print; }' [8:0:0:0] cd/dvd TOSHIBA DVD/HD SD-H802A TS06 - [8:0:1:0] cd/dvd Optiarc DVD RW AD-7191A 1.02 - # lsscsi | awk '$2 ~ "cd" { print $NF; }' - -
Ist sr_mod geladen? Wenn nicht teste das mal: 'modprobe -v sr_mod sg' und dann nochmal das lsscsi.
# lsmod | grep -E "sr_mod|sg" sr_mod 35892 19 videobuf_dma_sg 32644 3 saa7134_dvb,videobuf_dvb,saa7134 videobuf_core 38532 3 videobuf_dvb,saa7134,videobuf_dma_sg cdrom 53416 2 ide_cd_mod,sr_mod sg 56912 0 scsi_mod 195160 6 st,sr_mod,usb_storage,sg,sd_mod,libata
Sind wohl geladen, aber lsscsi ergibt dasselbe, wie oben, daher hier keine Wiederholung.
Seltsam. Da ist wohl doch mal ein reboot fällig.
Kann man solche toten (D für dead; an anderer Stelle als "ununterbrechbar schlafend" bezeichnet, was ich dann eher als komatös bezeichnen würde) Prozesse ohne Reboot loswerden?
Nicht wirklich.
Warum funktioniert umount -f /dev/sr0 eigentlich nicht? Datenverlust auf einer CD riskiert man doch nicht.
Gleicher Grund. Das Device wird noch verwendet.
# mount /dev/sr0 /dvdram /dev/sr0 on /dvdram type udf (rw,nosuid,nodev,noatime,nodiratime) # rsync -avvucxH --ignore-existing ./ /dvdram/root/
Äh, das war der 2te Teil einer abgebrochenen Kopieraktion. Sollte ja eh nur demonstrieren, daß man "einfach so" das Medium beschreiben kann.
Aha. Aber dann gibt es hier einen Unterschied zu früher. Da mußte ich auf einer DVD-RAM nämlich mindestens eine Partition anlegen, damit das schreibbare Device /dev/hdc1 hieß, nicht /dev/hdc. Letzteres steht ja quasi für das ganze Gerät bzw. Medium. (Ich weiß heute nicht mehr die genaue Begründung, warum man keinen unpartitionierten Massenspeicher beschreiben sollte.) Ist dies eine Spezialität von UDF? (Hatte früher nämlich mit ext2 versehene DVD-RAMs verwendet; ext2 scheint eine Partition, d.h. einen Eintrag in der Partitionstabelle des Mediums zu brauchen.)
Nein, das liegt nicht am Dateisystem, auch nicht am Medium, du kannst auch ein ext2 direkt auf's DVD-RAM (oder den USB-Stick z.B.) schreiben. Es gibt nur via libata wohl auch kein Device für die Partition (/dev/sr* gibt's nur einzeln). Und sd_mod / ide sind wohl nicht mehr zuständig. *grummel* -dnh -- Eine kurze richtige Antwort (mancher mag sie als unfreundlich bezeichnen) ist besser als eine lange, freundliche, falsche. [Dirk H. Hohndel, SuSE] -- Um die Liste abzubestellen, schicken Sie eine Mail an: opensuse-de+unsubscribe@opensuse.org Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: opensuse-de+help@opensuse.org
Hallo, -------- Original-Nachricht --------
Datum: Tue, 17 Mar 2009 01:54:02 +0100 Von: David Haller <lists@dhaller.de> An: opensuse-de@opensuse.org Betreff: Re: Wie Gerätedatei für DVD-RW/DVD-RAM-Laufwerk ermitteln?
Seltsam. Da ist wohl doch mal ein reboot fällig.
Selbst, wenn das kein Bug im eigentlichen Sinne ist, so ist es doch recht ungünstig. An wen sollte man das melden?
Kann man solche toten (D für dead; an anderer Stelle als "ununterbrechbar schlafend" bezeichnet, was ich dann eher als komatös bezeichnen würde) Prozesse ohne Reboot loswerden?
Nicht wirklich.
Auch das sollte möglich sein. Wo kann ich das loswerden?
Warum funktioniert umount -f /dev/sr0 eigentlich nicht? Datenverlust auf einer CD riskiert man doch nicht.
Gleicher Grund. Das Device wird noch verwendet.
Ja, aber gerade, wenn das der Fall ist, hätte eine option -f(orce) doch ihren Sinn. Wenn umount sonst immer klappt, wozu brauche ich dann -f? Ach ja, laut Manpage im Falles eines unerreichbaren NFS. Dennoch wäre es auch schön, wenn man alle Wechselmedien erzwungenermaßen aushängen könnte. Was ist bei USB-Sticks eigentlich anders, daß man die einfach abstecken darf? (Ich ziehe sie aber immer erst ein paar Sekunden nach dem Schreib-Blinken ab.) CD-ROMs sollte man auch einfach rausholen dürfen, schließlich werden die mittlerweile beim Reinschieben auch automatisch eingebunden (seufz, das waren noch Zeiten, als man das noch manuell durfte!). Was passiert eigentlich, wenn ich die CD bei laufendem PC mit der aufgebogenen Büroklammer raushole? Gruß, Tom -- Aufgepasst: Sind Ihre Daten beim Online-Banking auch optimal geschützt? Jetzt informieren und absichern: https://homebanking.web.de/?mc=mail@footer. -- Um die Liste abzubestellen, schicken Sie eine Mail an: opensuse-de+unsubscribe@opensuse.org Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: opensuse-de+help@opensuse.org
participants (4)
-
David Haller
-
Erik P. Roderwald
-
Martin Blank
-
Thomas Michalka