26
Non-Windows Software / *NIX: Unexpected Behavior of HDD (internal VS enclosure?)
« on: May 23, 2014, 10:28 PM »
Has any one noticed oddness when trying to use a HDD sometimes via enclosure and at other times directly (e.g. via a SATA cable)? An example of oddness is that gparted will show a partition table via one means, but via the other gives errors (sorry, don't have them recorded).
Need to do more testing and research, but came across:
via http://askubuntu.com/a/337993
Is this a well-known gotcha?
Need to do more testing and research, but came across:
My hunch (and it is just a hunch) is that your problem results from switching between a USB enclosure and direct connection of the disk. Some enclosures translate 512-byte logical sectors on the disk into 4096-byte logical sectors presented to the computer -- that is, the opposite of what the firmware in an Advanced Format disk does. I'm not positive, but I suspect that some enclosures do this only on over-2TiB disks. Both MBR and GPT partitioning schemes refer to data by sector numbers, so changing the sector size invalidates the partitioning data. Thus, if you prepare the disk in a USB enclosure that translates in this way and then try to use the disk directly (or vice-versa), you'll see errors because the partitions (and even GPT backup data) won't be where the computer expects it to be
via http://askubuntu.com/a/337993
Is this a well-known gotcha?