There are some usb enclosures out there that emulate 4K drives for 512 bytes-per-sector discs. This means when the disc is taken out of the enclosure, sector addresses are not working anymore, as they should be multiplied by 8 to work again.
HFS+ on the other hand is sector-size-indifferent (much as for example ext2/3/4 is, but contrary to FAT or NTFS)
So it is only a question of rewriting the partition table.
In 4K-Mode (i.e. inside the USB enclosure), you had
Sector 0: MBR protective partition
Sector 1: GPT Header
Sector 2: GPT Data which indicates partition starts at n and ends at m
Sector n: Start of Partition
Sector m: End of Partition
in 512bytes mode this is now:
Sector 0: MBR protective partition
Sector 8: GPT Header
Sector 16: GPT Data which indicates partition starts at n (wrong) and ends at m (wrong)
Sector n*8: Start of Partition
Sector m*8: End of Partition
Size of the partition is m-n, which is of course also 8 times larger (8×500GB = 4TB)
Note down the values for n and m (to be found in sector 16 at the area colored, in my example 0x22 (start) and 0xF42 (end) ![here](https://cdn.statically.io/img/i.sstatic.net/TKZS0.png)
Then use a partitioning tool of your choice (ideally something like gnu parted where you can enter direct sector addresses), create a new empty GPT partition table and declare a new HFS+-Partition (with Partition Type GUID 48465300-0000-11AA-AA11-00306543ECAC, which stands for HFS+) with the noted down start and end addresses, but multiplied by 8. Note that the addresses are of course little-endian hexadecimal addresses, so they have to be read as such and also be written as such.