Página 1 de 1

HD externo, Não funciona no boot mas funciona se espetar depois

Enviado: 01 Abr 2021, 08:25
por SuperMax
Estou com um problema bem estranho. Comprei um HD 5tb, particionei (gpt em uma partição só ext4)

Se eu espeto qdo o sistema já está ligado, funciona tudo perfeitamente sem erros.

Por outro lado se eu deixo ele espetado e reinicio o sistema, ele fica mto tempo travado com processos do udisk2, mais precisamente tentando executar sem sucesso

Código: Selecionar todos

dumpe2fs -h /dev/sdc1
Qdo ocorre dessa forma, gera varios erros em dmesg, diz estar tendo varios erros de leitura no HD. (lembrando q isso so ocorre se fizer o boot com ele espetado, se espata depois, vai super blz)

Alquem tem alguma ideia do que pode ser?


adianto alguns comandos que podem ajudar

Código: Selecionar todos

[x@i5 ·14:42· ~]$ systemctl --user status gvfs-udisks2-volume-monitor.service 
● gvfs-udisks2-volume-monitor.service - Virtual filesystem service - disk device monitor
     Loaded: loaded (/usr/lib/systemd/user/gvfs-udisks2-volume-monitor.service; static)
     Active: active (running) since Wed 2021-03-31 14:42:13 -03; 5min ago
   Main PID: 1107 (gvfs-udisks2-vo)
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/gvfs-udisks2-volume-monitor.service
             └─1107 /usr/lib/gvfs-udisks2-volume-monitor

mar 31 14:41:48 arch-i5 systemd[890]: Starting Virtual filesystem service - disk device monitor...
mar 31 14:42:13 arch-i5 gvfs-udisks2-vo[1107]: monitor says it's not supported
mar 31 14:42:13 arch-i5 systemd[890]: Started Virtual filesystem service - disk device monitor.
mar 31 14:42:13 arch-i5 gvfs-udisks2-vo[1107]: monitor says it's not supported
mar 31 14:42:21 arch-i5 gvfs-udisks2-vo[1107]: monitor says it's not supported
[x@i5 ·14:48· ~]$ systemctl status udisks2.service 
● udisks2.service - Disk Manager
     Loaded: loaded (/usr/lib/systemd/system/udisks2.service; disabled; vendor preset: disabled)
     Active: failed (Result: timeout) since Wed 2021-03-31 14:46:18 -03; 1min 47s ago
       Docs: man:udisks(8)
    Process: 1110 ExecStart=/usr/lib/udisks2/udisksd (code=killed, signal=KILL)
   Main PID: 1110 (code=killed, signal=KILL)

mar 31 14:44:48 arch-i5 systemd[1]: udisks2.service: Killing process 1110 (udisksd) with signal SIGKILL.
mar 31 14:44:48 arch-i5 systemd[1]: udisks2.service: Killing process 1151 (dumpe2fs) with signal SIGKILL.
mar 31 14:44:48 arch-i5 systemd[1]: udisks2.service: Killing process 1113 (gdbus) with signal SIGKILL.
mar 31 14:44:48 arch-i5 systemd[1]: udisks2.service: Killing process 1114 (n/a) with signal SIGKILL.
mar 31 14:44:48 arch-i5 systemd[1]: udisks2.service: Main process exited, code=killed, status=9/KILL
mar 31 14:46:18 arch-i5 systemd[1]: udisks2.service: State 'final-sigterm' timed out. Killing.
mar 31 14:46:18 arch-i5 systemd[1]: udisks2.service: Killing process 1151 (dumpe2fs) with signal SIGKILL.
mar 31 14:46:18 arch-i5 systemd[1]: udisks2.service: Failed with result 'timeout'.
mar 31 14:46:18 arch-i5 systemd[1]: udisks2.service: Unit process 1151 (dumpe2fs) remains running after unit stopped.
mar 31 14:46:18 arch-i5 systemd[1]: Failed to start Disk Manager.



alguns trechos do dmesg

Código: Selecionar todos

[   81.646016] sd 6:0:0:0: [sdc] tag#1 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD IN 
[   81.646023] sd 6:0:0:0: [sdc] tag#1 CDB: Read(16) 88 00 00 00 00 02 46 30 d7 80 00 00 00 08 00 00
[   81.672688] scsi host6: uas_eh_device_reset_handler start
[   81.797218] usb 4-2: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[   81.817581] scsi host6: uas_eh_device_reset_handler success
[  141.392667] scsi host6: uas_eh_device_reset_handler start
[  141.393148] sd 6:0:0:0: [sdc] tag#1 uas_zap_pending 0 uas-tag 2 inflight: CMD 
[  141.393153] sd 6:0:0:0: [sdc] tag#1 CDB: Read(16) 88 00 00 00 00 02 46 30 d7 80 00 00 00 08 00 00
[  141.520720] usb 4-2: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[  141.544496] scsi host6: uas_eh_device_reset_handler success
[  145.992193] audit: type=1130 audit(1617212642.174:76): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=plexmediaserver comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  172.109288] scsi host6: uas_eh_device_reset_handler start
[  172.109527] sd 6:0:0:0: [sdc] tag#3 uas_zap_pending 0 uas-tag 2 inflight: CMD 
[  172.109530] sd 6:0:0:0: [sdc] tag#3 CDB: Read(16) 88 00 00 00 00 02 46 30 d7 80 00 00 00 08 00 00
[  172.233963] usb 4-2: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[  172.255199] scsi host6: uas_eh_device_reset_handler success
[  202.859321] scsi host6: uas_eh_device_reset_handler start
[  202.859733] sd 6:0:0:0: [sdc] tag#13 uas_zap_pending 0 uas-tag 2 inflight: CMD 
[  202.859739] sd 6:0:0:0: [sdc] tag#13 CDB: Read(16) 88 00 00 00 00 02 46 30 d7 80 00 00 00 08 00 00
[  202.984003] usb 4-2: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[  203.004248] scsi host6: uas_eh_device_reset_handler success
[  233.539322] scsi host6: uas_eh_device_reset_handler start
[  233.539817] sd 6:0:0:0: [sdc] tag#15 uas_zap_pending 0 uas-tag 2 inflight: CMD 
[  233.539823] sd 6:0:0:0: [sdc] tag#15 CDB: Read(16) 88 00 00 00 00 02 46 30 d7 80 00 00 00 08 00 00
[  233.663667] usb 4-2: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[  233.684276] scsi host6: uas_eh_device_reset_handler success
[  233.684478] sd 6:0:0:0: [sdc] tag#15 FAILED Result: hostbyte=DID_RESET driverbyte=DRIVER_SENSE cmd_age=183s
[  233.684482] sd 6:0:0:0: [sdc] tag#15 Sense Key : Not Ready [current] 
[  233.684484] sd 6:0:0:0: [sdc] tag#15 Add. Sense: Logical unit is in process of becoming ready
[  233.684488] sd 6:0:0:0: [sdc] tag#15 CDB: Read(16) 88 00 00 00 00 02 46 30 d7 80 00 00 00 08 00 00
[  233.684492] blk_update_request: I/O error, dev sdc, sector 9767540608 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[  264.262659] sd 6:0:0:0: [sdc] tag#22 uas_eh_abort_handler 0 uas-tag 9 inflight: CMD IN 
[  264.262666] sd 6:0:0:0: [sdc] tag#22 CDB: Read(16) 88 00 00 00 00 02 46 30 d7 87 00 00 00 01 00 00
[  264.262906] sd 6:0:0:0: [sdc] tag#21 uas_eh_abort_handler 0 uas-tag 8 inflight: CMD IN 
[  264.262911] sd 6:0:0:0: [sdc] tag#21 CDB: Read(16) 88 00 00 00 00 02 46 30 d7 86 00 00 00 01 00 00
[  264.264777] sd 6:0:0:0: [sdc] tag#19 uas_eh_abort_handler 0 uas-tag 7 inflight: CMD IN 
[  264.264782] sd 6:0:0:0: [sdc] tag#19 CDB: Read(16) 88 00 00 00 00 02 46 30 d7 85 00 00 00 01 00 00
[  264.266726] sd 6:0:0:0: [sdc] tag#18 uas_eh_abort_handler 0 uas-tag 6 inflight: CMD IN 
[  264.266731] sd 6:0:0:0: [sdc] tag#18 CDB: Read(16) 88 00 00 00 00 02 46 30 d7 84 00 00 00 01 00 00
[  264.266854] sd 6:0:0:0: [sdc] tag#17 uas_eh_abort_handler 0 uas-tag 5 inflight: CMD IN 
[  264.266859] sd 6:0:0:0: [sdc] tag#17 CDB: Read(16) 88 00 00 00 00 02 46 30 d7 83 00 00 00 01 00 00
[  264.266978] sd 6:0:0:0: [sdc] tag#16 uas_eh_abort_handler 0 uas-tag 4 inflight: CMD IN 
[  264.266983] sd 6:0:0:0: [sdc] tag#16 CDB: Read(16) 88 00 00 00 00 02 46 30 d7 82 00 00 00 01 00 00
[  264.267103] sd 6:0:0:0: [sdc] tag#15 uas_eh_abort_handler 0 uas-tag 3 inflight: CMD IN 
[  264.267108] sd 6:0:0:0: [sdc] tag#15 CDB: Read(16) 88 00 00 00 00 02 46 30 d7 81 00 00 00 01 00 00
[  264.267207] sd 6:0:0:0: [sdc] tag#14 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD IN 
[  264.267210] sd 6:0:0:0: [sdc] tag#14 CDB: Read(16) 88 00 00 00 00 02 46 30 d7 80 00 00 00 01 00 00
[  264.306505] scsi host6: uas_eh_device_reset_handler start
[  264.443772] usb 4-2: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[  264.464273] scsi host6: uas_eh_device_reset_handler success
gdisk

Código: Selecionar todos

[x@i5 ·16:45· ~]$ sudo gdisk -l /dev/sdc
[sudo] senha para danilo: 
GPT fdisk (gdisk) version 1.0.7

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sdc: 9767541167 sectors, 4.5 TiB
Model: Expansion       
Sector size (logical/physical): 512/4096 bytes
Disk identifier (GUID): 2A4ACD9E-0A07-4F5E-892F-19E98725295C
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 9767541133
Partitions will be aligned on 2048-sector boundaries
Total free space is 2412 sectors (1.2 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048      9767540735   4.5 TiB     8300  HD Externo

[x@i5 ·16:19· ~]$ ls -l /sys/block/sd* | sed 's/.*\(sd.*\) -.*\(ata.*\)\/h.*/\2 => \1/'
ata1 => sda
ata2 => sdb
lrwxrwxrwx 1 root root 0 mar 31 15:39 /sys/block/sdc -> ../devices/pci0000:00/0000:00:1c.3/0000:04:00.0/usb4/4-2/4-2:1.0/host6/target6:0:0/6:0:0:0/block/sdc/

fiz varias tentativas para tentar impedir o udisk2 ler ou ignorar o sdc, mas não consegui, ele até fica sem monta-lo mas executa o dumpe2fs dele e trava. Não sei pq.