Oznacovanie CDRW: sdc0 sg0 scd - co je co?
Michael Mraka
Michael.Mraka na homecredit.net
Čtvrtek Prosinec 2 12:28:11 CET 2004
% Co je zac /dev/sg0? - lebo obcas je napalovacka toto, proste v niekt.
% programoch (narychlo si nespomeniem) potrebujem zadat sg0 nie scd0 a je
% po problemoch. (Nie je nijako sym/hard-linkovane na s*-cokolvek).
% crw-rw---- 1 root cdrom 21, 0 2003-07-09 13:52 /dev/sg0 (bolo
% root:root, to root:cdrom som "vymyslel" ja).
% brw-rw---- 1 root cdrom 11, 0 2003-07-09 13:52 /dev/scd0
% brw-rw---- 1 root disk 8, 32 2003-07-09 13:52 /dev/sdc
lixux/Documantation/devices.txt:
8 block SCSI disk devices (0-15)
0 = /dev/sda First SCSI disk whole disk
16 = /dev/sdb Second SCSI disk whole disk
32 = /dev/sdc Third SCSI disk whole disk
...
240 = /dev/sdp Sixteenth SCSI disk whole disk
Partitions are handled in the same way as for IDE
disks (see major number 3) except that the limit on
partitions is 15.
...
9 char SCSI tape devices
0 = /dev/st0 First SCSI tape, mode 0
1 = /dev/st1 Second SCSI tape, mode 0
...
32 = /dev/st0l First SCSI tape, mode 1
33 = /dev/st1l Second SCSI tape, mode 1
...
128 = /dev/nst0 First SCSI tape, mode 0, no rewind
129 = /dev/nst1 Second SCSI tape, mode 0, no rewind
...
11 block SCSI CD-ROM devices
0 = /dev/scd0 First SCSI CD-ROM
1 = /dev/scd1 Second SCSI CD-ROM
...
The prefix /dev/sr (instead of /dev/scd) has been deprecated.
...
21 char Generic SCSI access
0 = /dev/sg0 First generic SCSI device
1 = /dev/sg1 Second generic SCSI device
...
Most distributions name these /dev/sga, /dev/sgb...;
this sets an unnecessary limit of 26 SCSI devices in
the system and is counter to standard Linux
device-naming practice.
...
86 char SCSI media changer
0 = /dev/sch0 First SCSI media changer
1 = /dev/sch1 Second SCSI media changer
...
--mm Michael Mráka
Další informace o konferenci Linux