EEVblog Electronics Community Forum

Electronics => Repair => Topic started by: Greybeard on April 16, 2024, 02:45:56 pm

Title: [solved] USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds w/o 4K/sect. emulation?
Post by: Greybeard on April 16, 2024, 02:45:56 pm
Can anyone give me any advice on choosing a USB3-SATA dock/station/adapter for 3.5" and 2.5" hard drives that can easily handle drive sizes of 4TB and larger?

However, 4K sector size emulation should not be used as I want to access hard drives that have been removed from a PC and have already been internally partitioned and formatted in the PC (512 bytes/sector).

I already have the dock shown in the photo, but it works with 4K emulation, so the HDDs formatted in the dock and in the PC are not interchangeable.

SOLUTION:
Reflashed firmware of my old Sharkoon SATA QuickPort XT USB 3.0 dock:
https://www.eevblog.com/forum/repair/which-usb3-sata-dockcradleadapter-for-3-52-5-hdds-without-4ksec-emulation/msg5459084/#msg5459084 (https://www.eevblog.com/forum/repair/which-usb3-sata-dockcradleadapter-for-3-52-5-hdds-without-4ksec-emulation/msg5459084/#msg5459084)
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: fzabkar on April 16, 2024, 06:12:53 pm
Good luck with your search. I have yet to find a vendor who knows anything more about their product than the price and how many they can move.
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: coromonadalix on April 16, 2024, 11:00:50 pm
never had any problems with sata / ide dock  and many removed hdd from pc's,  from old era w9x  and up  ...

if the controller is recent enough say   2tb support and more,   it should support any hdd formatting / partitions   GPT boot    etc ...

unless you deal with very weird ones that i dont know ?   even recovered some unix drives ..


buy from Amazon, you can return it ??  or your local computer store ???
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: fzabkar on April 16, 2024, 11:10:55 pm
never had any problems with sata / ide dock  and many removed hdd from pc's,  from old era w9x  and up  ...

I have seen hundreds (?) of cases in various storage forums.

USB adapters silently change the sector size:
https://www.klennet.com/notes/2018-04-14-usb-and-sector-size.aspx (https://www.klennet.com/notes/2018-04-14-usb-and-sector-size.aspx)
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: Greybeard on April 17, 2024, 05:39:52 am
coromonadalix:

I partitioned and formatted a 4TB hard drive in the PC (Win10).
Result: It is accessible in the PC (detects 512 bytes/sect.) but NOT accessible on my USB dock.
Problem: I can't access HDDs that have been removed from a PC.

I partitioned and formatted the same 4TB hard drive in my USB dock.
Result: It is accessible on the dock (detects 4KB/sect.) but NOT accessible in the PC.
Problem: If my USB dock breaks, installing HDDs in a PC won't allow me to access the HDDs formatted on USB dock.
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: David Hess on April 17, 2024, 07:14:28 am
I have never had a problem with the drive or sector size.  I picked up an Orico external hard drive docking station for that kind of work:

https://www.amazon.com/gp/product/B0B6ZYSG1M/ (https://www.amazon.com/gp/product/B0B6ZYSG1M/)
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: alm on April 17, 2024, 08:51:59 pm
Are you sure it's the USB dock that's emulating 4k sectors, and not your motherboard emulating 512 byte sectors? As far as I know modern, larger drives all use 4k sectors. Just some drives emulate 512 byte sectors in firmware and other expose the 4k sectors directly.

I'm surprised a GPT partition table would care about sector size beyond partition alignment. What does the partition table look like on the "inaccessible disk"? Does it claim the partition table is not valid? What does parted -l show when booted into Linux from a live USB stick while the disk is "inaccessible"?
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: Greybeard on April 18, 2024, 06:46:22 am
Are you sure it's the USB dock that's emulating 4k sectors, and not your motherboard emulating 512 byte sectors?
I used the wmic diskdrive get BytesPerSector,Model command.
I made screenshots of the results at my other PC I can access and upload in the evening today.

The HDD is a WD40EZAZ.
I think the emulation to 512 bytes is done by the HDD electronics, but I'm not 100% sure...

https://shop.x-hardware.de/4000-GB-Western-Digital-WD-Blue-WD40EZAZ/22667
"Sektoren: 4KB mit Emulation (512e)"

https://drivesolutions.com/western-digital-blue-4tb-5400rpm-sata-iii-6gb-s-256mb-cache-3-5-desktop-hard-drive-wd40ezaz.html
"Advanced Format: Yes - 512e (emulation) 4096 (4Kn native) Logical Data Block Length"

I'm surprised a GPT partition table would care about sector size beyond partition alignment. What does the partition table look like on the "inaccessible disk"? Does it claim the partition table is not valid? What does parted -l show when booted into Linux from a live USB stick while the disk is "inaccessible"?
Inaccessible disk means: No drive letter is shown and Windows Disk Management asks "should the disk be initialized?".
I've not tried to look at the partition table nor used Linux tools, but Windows 7/10 did not claim a not valid partition table.
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: coromonadalix on April 18, 2024, 08:05:31 am
@ Greybeard

When you format a drive, sure some default values will be pushed onto the drive    fat 32 ntfs  etc ....  GPT   is the new gimmick to be able to BOOT on BIG drives

https://en.wikipedia.org/wiki/GUID_Partition_Table

But normally a good dock, will follow the drive formatting and access it, multi partitions too .... 

BUT  if it's a Mac drive or Linux partitions,  say in windows you need to have the proper tools / and drivers etc ... or other os'es,   and theses can play small tricks, sometimes Windows will not show them ...

And when this happens  you need software who will access the drive in raw mode and do recover or clone   etc ..    once again you have to get the proper SW for that, and they don't work all the same way ...

Same for hardware, if you work with older stuff, you'll get hardware limitations too, controller side, capacity ...   motherboards ..     

I have a bunch of ide to sata / sata to ide drives cards, who are able to read old drives

Ebay few bucks $$$ china junk, who work pretty well  some PCI slot promise ata (IDE) cards    usb docks ...  usb floppies,  but dont do 720k  :palm:

I had to restart an very old TEK scope (20-25 years) with Win98, WinME, Win2k would crash,  boy it was a nightmare finding all the needed stuff, motherboad locked out ...   floppies in 2024 ???? using  some "plop"  boot disk to install usb drivers at a DOS  level ??   and finding genuine CD-Roms was a nightmare too,  no burned iso's would work ...


And yes the infamous  do you want to format the drive may happen, witch i do refuses right away

if the mbr is bad / defective, that's another story


As for your dock story, i never saw that behavior, and i would say try to find another dock,  and buy a more recent one who at least goes beyond 4 TB, there are at 8TB or 12TB models

Sorry to say, but as i wrote earlier,   i recover very old drives with an WAVLINK   or my IOcrest 8 slot  tower,  they certify 48 bit lba   ... and do 4tb and up ??? even old 4 8 20 30 40 80 gig models worked very well ? i have a drawer full of drives 2.5" 3.5"  ide and sata 1 sata 2   


BUT   for your problems   i can not say,  it can / could happen to me too,  there is so many things who can go wrong ...

As for @fzabkar    link  for  usb enclosures who change specs,   i never experienced that ???    i would say:   the usb  chip / interface is not good enough,  but when it is possible,  i always connect to the motherboard IDE or SATA  interface,  never use any external interface(s) unless in deep  sh@@$



The drives i use right now are :   swapped between the dock / tower / and hot-swap caddies in my computer,  formatted by win 7 win 10 win 11    i have no problems at all and between computers too ??  maybe i'm lucky ?

Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: coromonadalix on April 18, 2024, 08:11:10 am
oh in the old days   

you had to play with sectors,  head quantity   ...  etc .. to set the drive capacity and format it properly  ...  even on old mfm rll   ones,  and  the time you had to use DOS debug commands to access the controller and do the formatting  .... some controller where pretty powerful

old times
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: Greybeard on April 18, 2024, 09:14:53 am
What do you think about this:
Could I reformat the HDD from 512 emulated bytes/sect (512e) to 4K native (4Kn) to make mainboard and USB dock handle the HDD correctly?
Is there a WD specific tool to do that?
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: coromonadalix on April 18, 2024, 10:24:48 am
Don't want to be rude, nor offensive

But i don't like your "emulated" thing,  it's done automatically given on the "formatting" normally when you choose FAT / NTFS / GPT   etc ..   and all should be fine.
The hdd controller knows what to do ...  i never played with theses settings, nor force a setting ?


What i'm saying is :

EX:  if the drive is seen and ok in a machine, say you boot from it, form a connected ide or sata port   ... or formatted it, non bootable, just storage,  and say put lots of files in it to do some tests

And after, you put it into a dock  and the dock don't see any partition or don't mount the drive properly, you don't see files ...  the dock is the problem ... it's an hardware compatibility problem of some sort ??

The only problem i see so far, many docks wont let windows boot from it (if the drive was booting directly connected)  maybe due to BIOS restrictions, secure boot ...  or use legacy mode ... even if you select boot from usb ...  even tried some usb to nvme / sata interfaces ...

So far only  usb floppy and usb keys are booting fine in my case ?


For the drives at some point in the past you had drives managers softwares made by Ontrack or WD format tools, Seagate, Hitachi and many brands had them, but in them i never saw changing the formatting parameters ???

But now     you rely on the OS to do the job, do scandisks of defragment the drive  etc ...

you have free partition managers and paid ones,  some can migrate entire systems, manipulate partition sizes, clone   etc ...  tried many,  i have a bunch of them.



And last   

it will depend on the OS and or the hardware too,   you had  128gb limits and other things too in the past,  from the DOS era, windows 3 and up, old windows can not cope with bigger partition sizes etc ...   you have to search for that

the old scope i restarted had theses limits over 20 gig of size,  it went bezerk if i tried bigger,  it had an 6.4 gig drive in it ...
etc ...
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: fzabkar on April 18, 2024, 11:37:00 am
There is no such thing as a "good dock" or a "bad dock". Some will present a fixed 512-byte physical sector size to the USB host while others will present a fixed 4KB physical sector size. Still others will use 512-byte sectoring for drives with a capacity less than 2TiB, and automatically switch to 4KB sectoring for drives larger than 2TiB.

The reason for this behaviour is so that large drives can be used with legacy OS-es such as Windows XP. Since Win XP is limited to MBR partitions, the maximum number of sectors it can address is 2^32. At 512 bytes per sector, that works out to a capacity of 2TiB. However, if the sector size is increased to 4KB (= 8 x 512B), then XP can see a USB mass storage device with a capacity of 16TiB. This was how Seagate approached this problem with their early external drives. WD's My Book externals can be "fast formatted" to present either sector size to the host.

Note that these USB bridges behave the same way whether the drive is a 512n (native) or 512e (emulated) model. That is, it has nothing to do with whether the drive is an Advanced Format model with 4KB physical sectors.

Also, it should be said that some modern high capacity SATA and SAS drives are now shipping as 512e models but can be fast formatted to 4Kn by the user. This requires a specific utility, usually supplied by the manufacturer, although it is an ATA standard feature.

https://www.seagate.com/files/www-content/product-content/enterprise-performance-savvio-fam/enterprise-performance-15k-hdd/_cross-product/_shared/doc/seagate-fast-format-white-paper-04tp699-1-1701us.pdf (https://www.seagate.com/files/www-content/product-content/enterprise-performance-savvio-fam/enterprise-performance-15k-hdd/_cross-product/_shared/doc/seagate-fast-format-white-paper-04tp699-1-1701us.pdf)

https://wiki.archlinux.org/title/Advanced_Format#Advanced_Format_hard_disk_drives (https://wiki.archlinux.org/title/Advanced_Format#Advanced_Format_hard_disk_drives)

Quote
If your SATA HDD supports multiple logical sector sizes and the optional ATA command SET SECTOR CONFIGURATION EXT (e.g. Seagate drives advertising FastFormat support), you can use hdparm to change between the supported logical sector sizes.
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: Greybeard on April 18, 2024, 11:54:01 am
@ coromonadalix
I think we're talking at cross purposes.
I don't need to boot from the HDD, I just need to access data.

Quote
i would say try to find another dock
That's why I am here...
I just want to find a dock that reports sector size the same way the mainboard sees without using a USB dock.



Also, it should be said that some modern high capacity SATA and SAS drives are now shipping as 512e models but can be fast formatted to 4Kn by the user. This requires a specific utility, usually supplied by the manufacturer, although it is an ATA standard feature.

https://www.seagate.com/files/www-content/product-content/enterprise-performance-savvio-fam/enterprise-performance-15k-hdd/_cross-product/_shared/doc/seagate-fast-format-white-paper-04tp699-1-1701us.pdf (https://www.seagate.com/files/www-content/product-content/enterprise-performance-savvio-fam/enterprise-performance-15k-hdd/_cross-product/_shared/doc/seagate-fast-format-white-paper-04tp699-1-1701us.pdf)
Does the Seagate tool also work with WD drives?
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: fzabkar on April 18, 2024, 12:13:52 pm
Does the Seagate tool also work with WD drives?

The tool is SeaChest Utilities. I don't know if it works with WD's drives, but WD/HGST has Hugo, Niagara and wdckit.

https://support-en.wd.com/app/answers/detailweb/a_id/50708/~/wdckit-drive-utility-download-and-instructions-for-internal-drives (https://support-en.wd.com/app/answers/detailweb/a_id/50708/~/wdckit-drive-utility-download-and-instructions-for-internal-drives)

Quote
wdckit Top Features

    Show:
    List the details like disk#, serial number, capacity, state, geometry, protection, progress, version, statistics, and more.

    Format:
    Does a format on a SCSI/ATA device to change sector size.

    Update:
    Updates the drive with new firmware.

Note that an ATA FastFormat is not the same thing as WD's "fast formatter" for its USB drives. The latter reconfigures the bridge firmware whereas the former reconfigures the HDD.

See this thread for even more quirky USB bridges:

https://forums.tomshardware.com/threads/i-have-several-hard-drives-that-work-in-one-pc-but-show-as-uninitialized-in-another-pc.3503743/#post-21181059 (https://forums.tomshardware.com/threads/i-have-several-hard-drives-that-work-in-one-pc-but-show-as-uninitialized-in-another-pc.3503743/#post-21181059)

This "Verbatim USB 3.0 SuperSpeed Desktop Hard Drive 3TB" is enumerated as 2 "virtual" physical disks, 2.2TB (= 2TiB) + 0.8TB. BIOS shows 2 USB devices. The enclosure contains a single 3TB HDD.

https://forums.tomshardware.com/threads/external-usb3-3tb-drive-shows-2-devices.648875/ (https://forums.tomshardware.com/threads/external-usb3-3tb-drive-shows-2-devices.648875/)
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: Greybeard on April 18, 2024, 12:53:26 pm
Why does it always have to be as complicated as possible?   :-\

Are there really no docks that simply pass on the sector size unchanged?
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: coromonadalix on April 18, 2024, 01:17:55 pm
I would say too many hardware makers, even if they say  "compatible" ... you do know it's a big word   :palm:

Technology change so fast  |O


As for a bootable Windows 10-11 drive: now you have 3-4 partitions  listed  .... loll   see in disk management,  minimum is 3 ... 

The main  called C:\  and other hidden ones for boot and recovery   ...  and  Acer and some other brands hide an recovery partition with an windows re-installation media in it  ...  you will never see it normally in windows,  some partitioning SW  will show it ...  |O

ex:  if you wipe a drive like this, but not destroy all partitions to merge them as one,  you'll get some lost space  around 600meg for an windows drive converted into a storage one ...
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: Greybeard on April 18, 2024, 06:22:37 pm
Are you sure it's the USB dock that's emulating 4k sectors, and not your motherboard emulating 512 byte sectors?
I used the wmic diskdrive get BytesPerSector,Model command.
I made screenshots of the results at my other PC I can access and upload in the evening today.
Screenshots as promised:

Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: alm on April 18, 2024, 07:11:29 pm
So it is indeed the enclosure that does the translation. And the problem is that the partition table is in units of sectors, so the partition offsets will be wrong.

I'd make sure all partitions are aligned on 4k boundaries (should happen automatically when partitioned on the USB dock). And when you need to access a disk directly, use a method like this (https://superuser.com/questions/679725/how-to-correct-512-byte-sector-mbr-on-a-4096-byte-sector-disk) to mount the partitions. I'm pretty sure the method could also be adjusted in the other direction (4k partition table on 512b disk). Alternatively you could use a tool like Testdisk to reconstruct the partition table.

Using 4kn disks sounds like the better solution long term. You could also do the research for what USB to SATA bridge ICs do translation and which don't.
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: fzabkar on April 18, 2024, 07:42:29 pm
As a workaround to this translation problem, you could use the demo version of DMDE:

https://dmde.com/ (https://dmde.com/)

DMDE will show your partition with a [4K] identifier, indicating that it was created in a 4Kn environment. In the Partitions tab, just d-click your FS volume, expand the $Root, and then r-click and "recover" your desired files to another drive. The free version will recover up to 4000 files of any size from any one folder per click.
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: Greybeard on April 18, 2024, 08:03:27 pm
To be honest, I don't feel very comfortable using disk editors or modifying boot sectors, etc.

Using 4kn disks sounds like the better solution long term. You could also do the research for what USB to SATA bridge ICs do translation and which don't.
That's why I asked for a tool reformatting the 512e HDD back to 4K.
I think I will ask WD support.

How can I find out what USB to SATA chipset is used by my old Sharkoon SATA QuickPort XT USB 3.0 dock or the potential new ones?
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: coromonadalix on April 18, 2024, 09:49:16 pm
Chip:    Jmicron JMS567  given on the maker site  loll

Some reports on some sites,  reliability problems and other quirks with this chipset  ??


if you're in windows :  check in device manager the dock should be enumerated .... and on it check its properties / hardware id's /  and do a search on its vid / pid informations

maybe  before that you can see it in the taskbar,   mine  is giving away the information when i have an hdd in it 

i see asm xxxx  when i want to disconnect an hdd from usb port
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: Greybeard on April 19, 2024, 08:34:37 am
I've opened the case of my Sharkoon SATA QuickPort XT USB 3.0 dock and confirmed the Bridge IC:

ASMedia ASM1051.

I found several firmwares on this site:
https://www.station-drivers.com/index.php/en/component/remository/Drivers/Asmedia/ASM-105x-115x-215x-(ASMT-xxxx)-Sata-USB-3.x-controllers/ASM1051-Sata-USB-3.x-controllers/lang,en-gb/ (https://www.station-drivers.com/index.php/en/component/remository/Drivers/Asmedia/ASM-105x-115x-215x-(ASMT-xxxx)-Sata-USB-3.x-controllers/ASM1051-Sata-USB-3.x-controllers/lang,en-gb/)
https://www.station-drivers.com/index.php/en/component/remository/Drivers/Asmedia/ASM-105x-115x-215x-(ASMT-xxxx)-Sata-USB-3.x-controllers/ASM1053-Sata-USB-3.x-controllers/lang,en-gb/ (https://www.station-drivers.com/index.php/en/component/remository/Drivers/Asmedia/ASM-105x-115x-215x-(ASMT-xxxx)-Sata-USB-3.x-controllers/ASM1053-Sata-USB-3.x-controllers/lang,en-gb/)
http://37.187.91.32/index.php/en/component/remository/Drivers/Asmedia/ASM-105x-115x-215x-(ASMT-xxxx)-Sata-USB-3.x-controllers/ASM1051-Sata-USB-3.x-controllers/lang,en-gb/ (http://37.187.91.32/index.php/en/component/remository/Drivers/Asmedia/ASM-105x-115x-215x-(ASMT-xxxx)-Sata-USB-3.x-controllers/ASM1051-Sata-USB-3.x-controllers/lang,en-gb/)

But I'm not sure which one could be the correct one.
Some named Asmedia ASM-105x (photos show ASM1051) , one is named Asmedia ASM-1053 (maybe wrong IC type, shown photo is unreadable)

I try to contact the dock maker again to get more info and/or firmware...

PS:
Original FWAsmedia ASM-105x SATA/USB 3.0 Firmware Version 100824_91_00.
Found the "nearly" original Asmedia ASM-105x SATA/USB 3.0 Firmware Version 100824_00_00
http://37.187.91.32/index.php/en/component/remository/func-startdown/510/lang,en-gb/ (http://37.187.91.32/index.php/en/component/remository/func-startdown/510/lang,en-gb/)

PPS:
Found the original FWAsmedia ASM-105x SATA/USB 3.0 Firmware Version 100824_91_00:
https://www.usbdev.ru/?wpfb_dl=2056 (https://www.usbdev.ru/?wpfb_dl=2056)

And many many others:
https://www.usbdev.ru/files/asmedia/asmt2105firmware/ (https://www.usbdev.ru/files/asmedia/asmt2105firmware/)
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: coromonadalix on April 19, 2024, 03:03:32 pm
oh  another hardware ????  mmm   i have doubts,  normally    you have to check your windows device manager  where it enumerates,  hardware properties  ....

your station drivers  show firmwares links  not drivers ...  normally theses  install by themselves

if you don't have any exclamation marks in device manager,  you are ok 


pls  do check device manager  before installing any gimmick  ...
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: madires on April 19, 2024, 04:55:12 pm
On linux you can use the hdparm tool to select the logical sector size (if supported by the disk). First check the disk:
  # hdparm -I /dev/sda | grep 'Sector size:'
  Logical  Sector size:                   512 bytes [ Supported: 512 4096 ]
  Physical Sector size:                  4096 bytes

Then change to 4k:
  hdparm --set-sector-size 4096 /dev/sda
Re-partion and re-format.

What happened in your case is that the disk is set to 512e, i.e. the disk is emulating 512 byte sectors, and the USB-SATA bridge is emulating 4k sectors on top. Besides some bridge chips always emulating 4k sectors there are also chips only supporting 512 byte sectors (a disk with a logical sector size of 4k wouldn't work).
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: fzabkar on April 19, 2024, 05:44:22 pm
I've opened the case of my Sharkoon SATA QuickPort XT USB 3.0 dock and confirmed the Bridge IC:

There is also an "E" version of the IC which I believe supports AES hardware encryption.

https://upload.wikimedia.org/wikipedia/commons/6/6c/ASMedia_ASM1051E_ABA91140A2_T6A_1143.jpg (https://upload.wikimedia.org/wikipedia/commons/6/6c/ASMedia_ASM1051E_ABA91140A2_T6A_1143.jpg)

Some of these bridge ICs have internal code which enables them to run as a generic bridge when the external memory (8-pin SPI flash?) is disabled. If yours is one of these, then perhaps the default sector size in generic mode is 512 bytes?

Edit:

WD's My Books use the same Asmedia bridge.

https://goughlui.com/2015/10/25/how-to-remove-wd-hard-drive-from-mybook-enclosure/ (https://goughlui.com/2015/10/25/how-to-remove-wd-hard-drive-from-mybook-enclosure/)

Quote
P/N: WDBFJK0060HBK-04
Default WD My Book 1230 VID 0158 PID 1230 REV 1065

I cut the Vcc lead (pin #8) from the EEPROM, and the device detects as USB Mass Storage Device VID 04D9 PID 2013 REV 0103 and disables the goofy 4k sector translation mode as well, so regularly written 512e drives >2Tb actually read correctly.

Hope this is useful.

– Gough

You may need to cut the *HOLD pin as well, as sometimes the IC can still be powered up via this pin (if it is tied to Vcc) when Vcc is cut.
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: Greybeard on April 19, 2024, 06:15:01 pm
Just to clarify:
I don't use Linux, I use Win7 and Win10.
My type of USB bridge is ASM1051 not ASM1051E.

How can I read out PID and VID of the device in Win10?
I found the PID and VID in device manager:

(https://www.eevblog.com/forum/repair/which-usb3-sata-dockcradleadapter-for-3-52-5-hdds-without-4ksec-emulation/?action=dlattach;attach=2129675;image)

And that's what I read out via flash tool:

(https://www.eevblog.com/forum/repair/which-usb3-sata-dockcradleadapter-for-3-52-5-hdds-without-4ksec-emulation/?action=dlattach;attach=2129723;image)

Just to be sure the "new" firmware" and the found "nearly original" is the proper one.

Where can I find Product string and Manufacturer string in device manager?
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: madires on April 19, 2024, 06:49:25 pm
Just in case you don't find any suitable disk tool for Windows, you can put any linux boot CD on a USB stick and boot from it.
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: fzabkar on April 19, 2024, 06:57:19 pm
https://linux-hardware.org/?id=usb:174c-55aa (https://linux-hardware.org/?id=usb:174c-55aa)

I would suggest that you identify the serial EEPROM/flash and short the DI or DO pins while powering up the enclosure. This will invalidate the external memory and cause the bridge to operate as a generic device until the next power cycle. If the result is what you want, then you could permanently disable the chip.
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: Greybeard on April 19, 2024, 08:35:32 pm
https://linux-hardware.org/?id=usb:174c-55aa (https://linux-hardware.org/?id=usb:174c-55aa)

That's what I found in another (linux related) VID + PID data base:

Code: [Select]
174c  ASMedia Technology Inc.
07d1  Transcend ESD400 Portable SSD (USB 3.0)
1151  ASM1151W
1153  ASM1153 SATA 3Gb/s bridge
2074  ASM1074 High-Speed hub
3074  ASM1074 SuperSpeed hub
     -> 5106  ASM1051 SATA 3Gb/s bridge
5136  ASM1053 SATA 3Gb/s bridge
51d6  ASM1051W SATA 3Gb/s bridge
     -> 55aa  ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge

The read out PID via flash tool seems to be wrong (55AA indicates ASM1051E) but in reality it is a ASM1051 without E.
Does it matter if 55AA or 5106 is used? Should I correct it (5106 resp. ASM1051)?

I would suggest that you identify the serial EEPROM/flash and short the DI or DO pins while powering up the enclosure.
This will invalidate the external memory and cause the bridge to operate as a generic device until the next power cycle.
If the result is what you want, then you could permanently disable the chip.

It's a serial EEPROM 25LC512:

(https://www.eevblog.com/forum/repair/which-usb3-sata-dockcradleadapter-for-3-52-5-hdds-without-4ksec-emulation/?action=dlattach;attach=2129849;image)

Can shorting SI or SO to GND kill the IC?

Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: fzabkar on April 19, 2024, 08:51:44 pm
I think these ICs are protected against shorts to ground. I would try shorting SO to ground.
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: Greybeard on April 19, 2024, 09:03:49 pm
How did you find out that this will happen?
Probably there is much more config data stored in the EEPROM (time out behavior etc.)...
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: fzabkar on April 19, 2024, 10:06:31 pm
How did you find out that this will happen?
Probably there is much more config data stored in the EEPROM (time out behavior etc.)...

Most bridges are designed in this way. It's rare for a bridge to need an external "ROM" for basic functionality.

See https://habr.com/ru/companies/ntc-vulkan/articles/485966/ (https://habr.com/ru/companies/ntc-vulkan/articles/485966/)

Quote
Findings:

During the boot process, the ASM1051 tries to load the code from the ROM [ie the external SPI flash].

The first thing ASM1051 does is compare the checksum-8 byte from address 0x04 to 0x7E with the value at address 0x7F.

If the calculation of the preamble check is successful, then it can be considered for the "code" (addresses from 0x0082 to 0x807F). The ASM1051 compares this sum with the value at address 0x8083 and checks that there is a byte 0x5A at address 0x8082.

If all checks are correct, then the ASM1051 is loaded from the ROM, otherwise it uses the mask firmware.

ASM1053 datasheet:

https://datasheetspdf.com/pdf-file/917641/ASMedia/ASM1053/1 (https://datasheetspdf.com/pdf-file/917641/ASMedia/ASM1053/1)
Title: Re: Which USB3-SATA dock/cradle/adapter for 3.5+2.5" hdds without 4K/sec emulation?
Post by: Greybeard on April 20, 2024, 07:59:10 am
Finally it works!
4TB HDD recognised as 512 Bytes/sector (new formatted in PC/SATA) attached via USB dock:

(https://www.eevblog.com/forum/repair/which-usb3-sata-dockcradleadapter-for-3-52-5-hdds-without-4ksec-emulation/?action=dlattach;attach=2130440;image)

(https://www.eevblog.com/forum/repair/which-usb3-sata-dockcradleadapter-for-3-52-5-hdds-without-4ksec-emulation/?action=dlattach;attach=2130488;image)

I used the firmware I found in a german forum:
https://www.computerbase.de/forum/threads/asmedia-aktuelle-externe-gehaeuse-chip-firmware-fuer-8tb.1473501/ (https://www.computerbase.de/forum/threads/asmedia-aktuelle-externe-gehaeuse-chip-firmware-fuer-8tb.1473501/)
(download "ASMedia.1051.No.Name.Device.7z" after first post)

English translation:
https://www-computerbase-de.translate.goog/forum/threads/asmedia-aktuelle-externe-gehaeuse-chip-firmware-fuer-8tb.1473501/?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=de&_x_tr_pto=wapp#post-17358890 (https://www-computerbase-de.translate.goog/forum/threads/asmedia-aktuelle-externe-gehaeuse-chip-firmware-fuer-8tb.1473501/?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=de&_x_tr_pto=wapp#post-17358890)

Direct download firmware 130220.81.F6.02 and how-to (german):
https://www.computerbase.de/forum/attachments/asmedia-1051-no-name-device-7z.493140/ (https://www.computerbase.de/forum/attachments/asmedia-1051-no-name-device-7z.493140/)

THANK YOU ALL !!!  :-+