[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Avvio del sistema molto lento se il lettore CD è collegato



Ciao a tutti,
come da oggetto l'avvio del sistema diventa molto lento se il lettore CD è collegato (SATA).

Su google ho visto che dovrebbe essere un problema di udev [1]

dodo@debian:~$ uname -a
Linux debian 3.0.0-1-amd64 #1 SMP Sat Aug 27 16:21:11 UTC 2011 x86_64 GNU/Linux

dodo@debian:~$ dpkg -l |grep libudev
ii  libgudev-1.0-0                       172-1                             GObject-based wrapper library for libudev
ii  libudev0                             172-1                             libudev shared library

- dmesg con CD collegato
...
[    2.065660] input: Logitech USB Optical Mouse as /devices/pci0000:00/0000:00:12.2/usb1/1-4/1-4.1/1-4.1:1.0/input/input0
[    2.065732] generic-usb 0003:046D:C047.0001: input,hidraw0: USB HID v1.10 Mouse [Logitech USB Optical Mouse] on usb-0000:00:12.2-4.1/input0
[    2.068679] input: Logitech Logitech USB Keyboard as /devices/pci0000:00/0000:00:12.2/usb1/1-4/1-4.4/1-4.4:1.0/input/input1
[    2.068747] generic-usb 0003:046D:C315.0002: input,hidraw1: USB HID v1.10 Keyboard [Logitech Logitech USB Keyboard] on usb-0000:00:12.2-4.4/input0
[    2.068762] usbcore: registered new interface driver usbhid
[    2.068763] usbhid: USB HID core driver
[    2.106134] ata2.00: configured for UDMA/100
[    2.908263] scsi 1:0:0:0: CD-ROM            TSSTcorp CDDVDW SH-S223C  SB04 PQ: 0 ANSI: 5
[    2.917929] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[    2.917963] sd 0:0:0:0: [sda] Write Protect is off
[    2.917966] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    2.917981] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.945744]  sda: sda1 sda2
[    2.946040] sd 0:0:0:0: [sda] Attached SCSI disk
[    2.947463] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    2.947492] sr 1:0:0:0: Attached scsi generic sg1 type 5
[    2.950374] sr0: scsi3-mmc drive: 52x/52x writer dvd-ram cd/rw xa/form2 cdda tray
[    2.950378] cdrom: Uniform CD-ROM driver Revision: 3.20
[    2.950497] sr 1:0:0:0: Attached scsi CD-ROM sr0
[   33.824042] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[   33.824072] ata2.00: failed command: IDENTIFY PACKET DEVICE
[   33.824099] ata2.00: cmd a1/00:01:00:00:00/00:00:00:00:00/00 tag 0 pio 512 in
[   33.824101]          res 40/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x4 (timeout)
[   33.824150] ata2.00: status: { DRDY }
[   33.824176] ata2: hard resetting link
[   34.316040] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[   35.118257] ata2.00: configured for UDMA/100
[   35.919042] ata2: EH complete
[   66.848058] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[   66.848088] ata2.00: failed command: IDENTIFY PACKET DEVICE
[   66.848116] ata2.00: cmd a1/00:01:00:00:00/00:00:00:00:00/00 tag 0 pio 512 in
[   66.848117]          res 40/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x4 (timeout)
[   66.848167] ata2.00: status: { DRDY }
[   66.848193] ata2: hard resetting link
[   67.340056] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[   68.142299] ata2.00: configured for UDMA/100
[   68.943112] ata2: EH complete
[   69.134067] PM: Starting manual resume from disk
[   69.134070] PM: Hibernation image partition 8:1 present
[   69.134072] PM: Looking for hibernation image.
[   69.144316] PM: Image not found (code -22)
[   69.144319] PM: Hibernation image not present or could not be loaded.
[   69.264503] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
...

dodo@debian:~$ time /lib/udev/ata_id --export /dev/sr0
ID_ATA=1
ID_TYPE=cd
ID_BUS=ata
ID_MODEL=TSSTcorp_CDDVDW_SH-S223C
ID_MODEL_ENC=TSSTcorp\x20CDDVDW\x20SH-S223C\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
ID_REVISION=SB04
ID_SERIAL=TSSTcorp_CDDVDW_SH-S223C_R4136GHZ822046
ID_SERIAL_SHORT=R4136GHZ822046

real    0m0.008s
user    0m0.000s
sys    0m0.000s


Se scollego il CD il sistema si avvia molto velocemente.
Ovviamente il lettore CD funziona, ho installato Wheezy proprio da questo lettore.

Avete un'idea di come risolvere il problema?
Il lettore CD lo uso molto poco quindi potrei anche lasciarlo staccato, però mi piacerebbe capire e risolvere il problema.

Grazie in anticipo

Edoardo


[1] https://bugzilla.redhat.com/show_bug.cgi?id=684599

Reply to: