raspberrypi / Raspberry-Pi-OS-64bit

Repository for containing issues on the 64 bit operating system (as distinct from the 32 bit one)
466 stars 21 forks source link

USB SSD 4TB not seen correctly and disconnections #197

Open fatez opened 2 years ago

fatez commented 2 years ago

Hi everyone,

I have the updated system :

PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian

    _,met$$$$$gg.          pi@dns 
    ,g$$$$$$$$$$$$$$$P.       ------ 
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 11 (bullseye) aarch64 
 ,$$P'              `$$$.     Host: Raspberry Pi 4 Model B Rev 1.1 
',$$P       ,ggs.     `$$b:   Kernel: 5.10.63-v8+ 
`d$$'     ,$P"'   .    $$$    Uptime: 2 hours, 13 mins 
 $$P      d$'     ,    $$P    Packages: 952 (dpkg) 
 $$:      $$.   -    ,d$$'    Shell: bash 5.1.4 
 $$;      Y$b._   _,d$P'      Terminal: /dev/pts/1 
 Y$$.    `.`"Y$$$$P"'         CPU: BCM2835 (4) @ 1.500GHz 
 `$$b      "-.__              Memory: 183MiB / 3795MiB 
  `Y$$
   `Y$$.                                              
     `$$b.                                            
       `Y$$b.
          `"Y$b._
              `"""

the problem is that if i connect an ssd disk via usb adapter (i've tried 3 different ones and i always have the same problem) it doesn't recognize the correct size of the disk with cfdisk and even if i format it in ext4 i start to have freez on the system with disconnections and slowdown of the whole os


Disk: /dev/sda
                          Size: 3.64 TiB, 4000787030016 bytes, 976754646 sectors
                                    Label: dos, identifier: 0x00000000

    Device           Boot           Start             End         Sectors      Size      Id Type
>>  /dev/sda1                           1      4294967295      4294967295       16T      ee GPT            

[ 5508.815751] usb 1-1.2: new high-speed USB device number 3 using xhci_hcd
[ 5508.997295] usb 1-1.2: New USB device found, idVendor=152d, idProduct=1561, bcdDevice= 2.04
[ 5508.997317] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5508.997330] usb 1-1.2: Product: SABRENT
[ 5508.997343] usb 1-1.2: Manufacturer: SABRENT
[ 5508.997355] usb 1-1.2: SerialNumber: DB9876543214E
[ 5509.006611] scsi host0: uas
[ 5509.011510] scsi 0:0:0:0: Direct-Access     SABRENT                   0204 PQ: 0 ANSI: 6
[ 5509.143366] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 5517.996289] sd 0:0:0:0: [sda] 976754646 4096-byte logical blocks: (4.00 TB/3.64 TiB)
[ 5517.996552] sd 0:0:0:0: [sda] Write Protect is off
[ 5517.996569] sd 0:0:0:0: [sda] Mode Sense: 5f 00 00 08
[ 5517.997044] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 5517.997436] sd 0:0:0:0: [sda] Optimal transfer size 33550336 bytes
[ 5518.021774] sd 0:0:0:0: [sda] Attached SCSI disk

pi@dns:/media $ sudo blkid 
/dev/mmcblk0p1: LABEL_FATBOOT="boot" LABEL="boot" UUID="E5B6-FD41" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="341608ce-01"
/dev/mmcblk0p2: LABEL="rootfs" UUID="a4b3ef34-532d-430b-a401-589e4a6a5d2c" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="341608ce-02"

/dev/sda: PTTYPE="PMBR"

If I try to create the new partition and format it and then mount it I get these errors:

[ 8444.921082] sd 0:0:0:0: [sda] 976754646 4096-byte logical blocks: (4.00 TB/3.64 TiB)
[ 8444.921340] sd 0:0:0:0: [sda] Write Protect is off
[ 8444.921358] sd 0:0:0:0: [sda] Mode Sense: 53 00 00 08
[ 8444.921828] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 8444.922602] sd 0:0:0:0: [sda] Optimal transfer size 33550336 bytes
[ 8444.946221] sd 0:0:0:0: [sda] Attached SCSI disk
[ 8475.781041] sd 0:0:0:0: [sda] tag#13 uas_eh_abort_handler 0 uas-tag 6 inflight: CMD IN 
[ 8475.781062] sd 0:0:0:0: [sda] tag#13 CDB: opcode=0x28 28 00 3a 38 17 7b 00 00 05 00
[ 8475.781396] sd 0:0:0:0: [sda] tag#12 uas_eh_abort_handler 0 uas-tag 5 inflight: CMD IN 
[ 8475.781407] sd 0:0:0:0: [sda] tag#12 CDB: opcode=0x28 28 00 3a 38 17 65 00 00 15 00
[ 8475.781718] sd 0:0:0:0: [sda] tag#10 uas_eh_abort_handler 0 uas-tag 3 inflight: CMD IN 
[ 8475.781729] sd 0:0:0:0: [sda] tag#10 CDB: opcode=0x28 28 00 3a 38 17 5d 00 00 02 00
[ 8475.797071] scsi host0: uas_eh_device_reset_handler start
[ 8475.926108] usb 2-2: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[ 8475.950931] scsi host0: uas_eh_device_reset_handler success
[ 8506.505663] scsi host0: uas_eh_device_reset_handler start
[ 8506.506287] sd 0:0:0:0: [sda] tag#6 uas_zap_pending 0 uas-tag 3 inflight: CMD 
[ 8506.506302] sd 0:0:0:0: [sda] tag#6 CDB: opcode=0x28 28 00 3a 38 17 5d 00 00 02 00
[ 8506.634654] usb 2-2: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[ 8506.659448] scsi host0: uas_eh_device_reset_handler success
[ 8631.432096] sd 0:0:0:0: [sda] tag#21 uas_eh_abort_handler 0 uas-tag 6 inflight: CMD IN 
[ 8631.432116] sd 0:0:0:0: [sda] tag#21 CDB: opcode=0x28 28 00 3a 38 17 7b 00 00 04 00
[ 8631.432330] sd 0:0:0:0: [sda] tag#20 uas_eh_abort_handler 0 uas-tag 5 inflight: CMD IN 
[ 8631.432342] sd 0:0:0:0: [sda] tag#20 CDB: opcode=0x28 28 00 3a 38 17 65 00 00 15 00
[ 8631.448108] scsi host0: uas_eh_device_reset_handler start
[ 8631.577080] usb 2-2: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[ 8631.601976] scsi host0: uas_eh_device_reset_handler success
popcornmix commented 2 years ago

Does this help?