08 BASH – Lettore CD-DVD visto da OpenSUSE

19 Febbraio, 2024 (14:53) | BASH, Linux | By: sargonsei

08 BASH – Lettore CD-DVD visto da OpenSUSE Tumbleweed

Se l’ output è incompleto, impartire i comandi in modalità Super Utente.
I comandi:

inxi -Sdxxx # Sistema operativo, memorie di massa e lettori CD-DVD
lspci | awk '$2 == "SATA" {system("lspci -vs " $1)}' # Periferiche SATA connesse a porte PCI
lsusb -v | grep -iA 22 SATA # Periferiche SATA connesse a porte USB
#
/usr/sbin/hwinfo --cdrom # Informazioni relative a lettori CD-ROM (DVD)
sudo hwinfo --cdrom # Informazioni relative a lettori CD-ROM (DVD)
sudo hdparm -I /dev/sr0 # Mostra informazioni sul contenuto del disco sr0

Esempi di output:

:~> inxi -Sdxxx # Sistema operativo, memorie di massa e lettori CD-DVD
System:
  Host: 192.168.1.6 Kernel: 6.7.4-1-default arch: x86_64 bits: 64
    compiler: gcc v: 13.2.1 clocksource: tsc
  Desktop: KDE Plasma v: 5.27.10 tk: Qt v: 5.15.12 wm: kwin_x11 vt: 2
    dm: SDDM Distro: openSUSE Tumbleweed 20240216
Drives:
  Local Storage: total: 476.94 GiB used: 187.07 GiB (39.2%)
  ID-1: /dev/nvme0n1 vendor: CYX model: SSD-C1000 size: 476.94 GiB
    speed: 31.6 Gb/s lanes: 4 tech: SSD serial: 230516000201N5121378
    fw-rev: SN09803 temp: 30.9 C scheme: GPT
  Optical-1: /dev/sr0 vendor: HL-DT-ST model: DVDRAM GP08NU20 rev: 1.01
    dev-links: cdrom
  Features: speed: 24 multisession: yes audio: yes dvd: yes
    rw: cd-r,cd-rw,dvd-r,dvd-ram state: running
:~> lspci | awk '$2 == "SATA" {system("lspci -vs " $1)}' # Periferiche SATA connesse a porte PCI
00:17.0 SATA controller: Intel Corporation Tiger Lake-LP SATA Controller (rev 30) (prog-if 01 [AHCI 1.0])
        DeviceName: Onboard - SATA
        Subsystem: Intel Corporation Device 7270
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 135
        Memory at 80700000 (32-bit, non-prefetchable) [size=8K]
        Memory at 80703000 (32-bit, non-prefetchable) [size=256]
        I/O ports at 5090 [size=8]
        I/O ports at 5080 [size=4]
        I/O ports at 5060 [size=32]
        Memory at 80702000 (32-bit, non-prefetchable) [size=2K]
        Capabilities: 
        Kernel driver in use: ahci
        Kernel modules: ahci

:~> lsusb -v | grep -iA 22 SATA # Periferiche SATA connesse a porte USB
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Bus 001 Device 008: ID 152e:1640 LG (HLDS) INIC-1605 SATA Bridge
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 [unknown]
  bDeviceSubClass         0 [unknown]
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x152e LG (HLDS)
  idProduct          0x1640 INIC-1605 SATA Bridge
  bcdDevice            1.62
  iManufacturer           1 HLDS Inc
  iProduct                2 SuperMulti RW
  iSerial                 3 0010101640003F1F5
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0020
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower                2mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
Couldn't open device, some information will be missing
--
Bus 002 Device 003: ID 1f75:0888 Innostor Technology Corporation IS888 SATA Storage Controller
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.00
  bDeviceClass            0 [unknown]
  bDeviceSubClass         0 [unknown]
  bDeviceProtocol         0
  bMaxPacketSize0         9
  idVendor           0x1f75 Innostor Technology Corporation
  idProduct          0x0888 IS888 SATA Storage Controller
  bcdDevice            0.36
  iManufacturer           1 Generic
  iProduct                2 Generic USB3.0 to SATA bridge
  iSerial                 3 100000000000
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x002c
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              800mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0
:~> /usr/sbin/hwinfo --cdrom # Informazioni relative a lettori CD-ROM (DVD)
27: SCSI 300.0: 10602 CD-ROM (DVD)
  [Created at block.259]
  Unique ID: POWV.QGSRWIIfio8
  Parent ID: MZfG._jFtzZRlG19
  SysFS ID: /class/block/sr0
  SysFS BusID: 3:0:0:0
  SysFS Device Link: /devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.0/host3/target3:0:0/3:0:0:0
  Hardware Class: cdrom
  Model: "HL-DT-ST DVDRAM GP08NU20"
  Vendor: usb 0x152e "HL-DT-ST"
  Device: usb 0x1640 "DVDRAM GP08NU20"
  Revision: "1.01"
  Serial ID: "0010101640003F1F5"
  Driver: "usb-storage", "sr"
  Driver Modules: "usb_storage", "sr_mod"
  Device File: /dev/sr0 (/dev/sg1)
  Device Files: /dev/sr0, /dev/disk/by-diskseq/5, /dev/disk/by-id/usb-HL-DT-ST_DVDRAM_GP08NU20_0010101640003F1F5-0:0, /dev/disk/by-path/pci-0000:00:14.0-usb-0:9:1.0-scsi-0:0:0:0, /dev/cdrom, /dev/disk/by-path/pci-0000:00:14.0-usbv2-0:9:1.0-scsi-0:0:0:0
  Device Number: block 11:0 (char 21:1)
  Features: CD-R, CD-RW, DVD, DVD-R, DVD-RW, DVD-R DL, DVD+R, DVD+RW, DVD+R DL, DVD-RAM, MRW, MRW-W
  Speed: 480 Mbps
  Module Alias: "usb:v152Ep1640d0162dc00dsc00dp00ic08isc02ip50in00"
  Driver Info #0:
    Driver Status: usb_storage is active
    Driver Activation Cmd: "modprobe usb_storage"
  Drive status: no medium
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #22 (USB Controller)
  Drive Speed: 24
:~>