Jump to content

USB Drive to SATA


Recommended Posts

Hello there!

 

Previously I was using 7x 4TB external USB drives in unraid (to test it out).

After finally deciding to move to a proper NAS, I bought a case that has enough space to fit those drives internally (SATA).

 

Now onto my problem:

unraid doesn't recognize those drives without the external enclosure. (Even with a new config, due to id changes).

This is not due to some sort of encryption of the drive, I sampled a few hundred megabytes of the drive in the enclosure (USB) and attached via SATA with "dd" and compared the output - exactly the same.

After some digging I succeeded in nailing it down to the following thing:

The size of the logical sectors is reported differently: 512 (SATA) instead of 4096 (USB). This resultsin the parition table being broken.

I then decided to do the following on the drive to fix the partition table:

- Backup the first few megabytes of the drive in case something goes wrong

- Attach the drive to a ubuntu system, that has "parted" installed

- (parted) mklabel

  - Type: gpt

- (parted) rescue

  - This searches for partition, it found one (only one - spanning the full drive), and updates the partition table accordingly.

 

Now the partition table should be fixed, right?

Yes and No, I now can mount the drive using Unassigned Drives. However, I can not use the drive in the array: "Unsupported partition layout"

Apparently for the use in unraid the partition has to start at a certain position (64), which now is probably off :/

 

Is there any way to somehow fix this, or do I have to transfer 28TB worth of data onto clean drives and start from scratch?

Edited by mkku
Additional info (sector size)
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...