All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: RAW drive when using USB to SATA adapter, and vice-versa.
PostPosted: April 6th, 2014, 23:01 
Offline

Joined: April 6th, 2014, 22:43
Posts: 2
Location: Canada
Hi,

I've been using my SATA to USB adapter successfully in the past years with several hard drives. But I'm having problems with a large 1 TB WD mobile hard-drive (WDC WD10JPVT).

Formatting the drive using the motherboard SATA connectors, results in the drive showing up as RAW when using the adapter (RAW 931 GB partition).
Formatting the drive with the adapter, results in the drive showing as RAW when connecting it to the motherboard (a 116.44 GB RAW partition, 815.07 GB of unallocated space).

When I format the drive using the motherboard SATA connectors and issue an fsutil fsinfo ntfsinfo command, here is what I get:
Code:
NTFS Volume Serial Number :       0x3e8280bc828079e3
Version :                         3.1
Number Sectors :                  0x00000000747057ff
Total Clusters :                  0x000000000e8e0aff
Free Clusters  :                  0x000000000e8d9829
Total Reserved :                  0x0000000000000000
Bytes Per Sector  :               512
Bytes Per Physical Sector :       4096
Bytes Per Cluster :               4096
Bytes Per FileRecord Segment    : 1024
Clusters Per FileRecord Segment : 0


Now here is the output after formatting with the adapter:
Code:
NTFS Volume Serial Number :       0x524ee9ec4ee9c935
Version :                         3.1
Number Sectors :                  0x000000000e8e0aff
Total Clusters :                  0x000000000e8e0aff
Free Clusters  :                  0x000000000e8d9769
Total Reserved :                  0x0000000000000000
Bytes Per Sector  :               4096
Bytes Per Physical Sector :       <Not Supported>
Bytes Per Cluster :               4096
Bytes Per FileRecord Segment    : 4096
Clusters Per FileRecord Segment : 1


Now would anyone be able to give a technical explanation to this? I'd just like to understand. Is my SATA to USB adapter crappy, or is it a limitation of all SATA to USB adapters in general? Is it because the hard drive is large? A new SATA feature not supported by the adapter?

Thanks!


Top
 Profile  
 
 Post subject: Re: RAW drive when using USB to SATA adapter, and vice-versa
PostPosted: April 7th, 2014, 0:48 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 15532
Location: Australia
The adapter's firmware is configured for 4096 Bytes Per Sector whereas the drive presents with 512 Bytes Per Sector when attached to a SATA port. This means that its capacity will appear to be 1/8th of what it was when inside the enclosure.

116.44 x (4096 / 512) = 931.52 GiB

You can also see the difference in the number of sectors.

0x747057ff sectors x 512 bytes per sector = 1 000 202 042 880 bytes

0x0e8e0aff sectors x 4096 bytes per sector = 1 000 202 039 296 bytes

_________________
A backup a day keeps DR away.


Top
 Profile  
 
 Post subject: Re: RAW drive when using USB to SATA adapter, and vice-versa
PostPosted: April 7th, 2014, 11:34 
Offline

Joined: April 6th, 2014, 22:43
Posts: 2
Location: Canada
Thank you fzabkar, that was the answer I was looking for. Did a little furhter investigation myself, and found the real cause behind this. The disk uses Advanced Format, which SATA to USB adapters have a hard time adapting to it:

"Sector-size issues are becoming quite complex. Until late 2009, the vast majority of hard disks used 512-byte sectors, and that was that. In late 2009, disk manufacturers began introducing so-called Advanced Format (AF) disks, which use 4096-byte sectors. These first AF disks (and, AFAIK, all AF disks today) present an interface to the computer that shows each 4096-byte physical sector as being split up into eight 512-byte logical sectors. This conversion enables older tools, including many BIOSes, that were built with 512-byte assumptions, to continue to work. I don't know if your disk uses AF or not, but in either case, it almost certainly uses a 512-byte logical sector size, meaning that the interface to the OS should use 512-byte sectors.

Complicating matters is certain USB disk enclosures. Some of these enclosures do the reverse of what AF does: They take eight disk sectors and bundle them into one new 4096-byte sector. I'm not sure what the reasoning is behind this move, but one practical advantage is that disks larger than 2TiB can be used with the old MBR partitioning system. One major disadvantage is that a disk partitioned in one of these enclosures can not be used directly or in an enclosure that doesn't do this type of translation. Likewise, a disk prepared without this translation can't be used when it's transferred into such an enclosure."

http://superuser.com/questions/679725/h ... ector-disk


Top
 Profile  
 
 Post subject: Re: RAW drive when using USB to SATA adapter, and vice-versa
PostPosted: April 7th, 2014, 14:52 
Offline

Joined: November 15th, 2012, 17:47
Posts: 226
Hi fzabkar,

When the adaptor firmware changes the 512e emulation to 4096 bytes, should not it also divide the number of LBA by the same factor ? And, whould not one expect the total size to be the same in situations ?


fzabkar wrote:
The adapter's firmware is configured for 4096 Bytes Per Sector whereas the drive presents with 512 Bytes Per Sector when attached to a SATA port. This means that its capacity will appear to be 1/8th of what it was when inside the enclosure.

116.44 x (4096 / 512) = 931.52 GiB

You can also see the difference in the number of sectors.

0x747057ff sectors x 512 bytes per sector = 1 000 202 042 880 bytes

0x0e8e0aff sectors x 4096 bytes per sector = 1 000 202 039 296 bytes


Top
 Profile  
 
 Post subject: Re: RAW drive when using USB to SATA adapter, and vice-versa
PostPosted: April 7th, 2014, 15:49 
Offline

Joined: November 15th, 2012, 17:47
Posts: 226
fzabkar,

I think I got it mixed up. Here the OP is talking about partition sizes not disk size.

But, I have one question though. During the sata connection, the Operating system (OS) did recognize the partition set by the adaptor albiet with reduced size; the OS calculated the partition size using the sector number set by the adaptor, 0x000000000e8e0aff, (multiplied by 512). Which is one-eighth of the original size.


Why has not the reverse been true for the sata formated partition ? Why did not the OS use the sector number set by the sata connection (0x00000000747057ff) and multiply it by 4096 to get an 8 Tera byte size ? After all the MBR is located in the same place in both cases.


Top
 Profile  
 
 Post subject: Re: RAW drive when using USB to SATA adapter, and vice-versa
PostPosted: April 7th, 2014, 17:03 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 15532
Location: Australia
Matiw wrote:
Why did not the OS use the sector number set by the sata connection (0x00000000747057ff) and multiply it by 4096 to get an 8 Tera byte size ? After all the MBR is located in the same place in both cases.

I don't know, but I suspect that the OS is smart enough to know that a partition can't be larger than the physical drive. It would be interesting to create a small partition, say 100GB, via SATA and then see how it is identified inside the enclosure.

_________________
A backup a day keeps DR away.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: drHDD, Google [Bot], Google Adsense [Bot] and 179 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group