Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot change logical sector size of SATA-connected Seagate: "Setting sector size not supported on this device" #9

Closed
ghost opened this issue May 25, 2020 · 5 comments

Comments

@ghost
Copy link

ghost commented May 25, 2020

I have a Seagate HDD and I want to change the logical sector size to 4096 bytes. I'm on Debian.

SeaChest tools show for my drive:

Logical Sector Size (B): 512
Physical Sector Size (B): 4096

The result of the following two commands,

SeaChest_Format -d /dev/sg1 --setSectorSize 4096 --confirm this-will-erase-data:

SeaChest_Lite -d /dev/sg1 --setSectorSize 4096 --confirm this-will-erase-data

is:

Setting sector size not supported on this device

Seagate website says no firmware update is available for the drive.

Surely if the physical sector size is 4096, SeaChest should allow me to set logical sector size to 4096 somehow?

@lucipacurar
Copy link

lucipacurar commented May 30, 2020

I have the same problem with a 3TB ST3000DM008-2DM166 and I get the same error when I try to convert it to native 4K sectors on Ubuntu 20.04:

Logical Sector Size (B): 512
Physical Sector Size (B): 4096

@lucipacurar
Copy link

lucipacurar commented May 30, 2020

Thank you for the info! Well, I'm using my drive inside a Synology NAS, and Synology says:

Always use and manage 4K native (4Kn) hard drives separately.
4Kn hard drives are supported from DSM 5.1-5021. Use 4Kn hard drives separately from hard drives in other disk sector formats when creating, repairing, expanding and migrating any volume, disk group, RAID group and LUN.

I was planning on buying another 3TB drive to pair them up inside the NAS. But now I guess I have to sell this one and buy a pair of 4Kn drives.

@lucipacurar
Copy link

lucipacurar commented May 30, 2020

https://www.seagate.com/www-content/product-content/ironwolf/en-us/docs/100807039h.pdf

It looks like all new IronWolf drives are 512e, so no need to worry in the end.

@jdrch
Copy link

jdrch commented Jun 14, 2020

If it doesn't say '4kn' or you find a datasheet confirming, assume like my disk that it's a '512e' drive.

TIL. I was wondering why Google results for 512e to 4Kn conversions were so sparse. FWIW I'm starting to switch to 4Kn completely, starting with ordering a 14 TB 4Kn Toshiba MG07 yesterday.

@vonericsen
Copy link
Contributor

Hello everyone,
Let me start by saying that this can be confusing topic, so bear with me as I try to explain it.
This Github repo is maintained by Seagate'stools team and product specific information is expertise of Field & Customer Support Engineers, so please reach out to support team for further assistance.

The ability to switch between a 4k and 512 logical sector size requires the firmware to allow this to happen, which is what SeaChest checks for before sending these commands.
Prior to the introduction of this capability in newer products, you had to purchase a drive formatted with what you wanted:

  • 512N(ative): 512 logical & 512 physical
  • 512E(mulated): 512 logical & 4096 physical
  • 4KN(ative): 4k logical & 4k physical

I believe the first product line this feature was enabled on Seagate devices was 12 TB drives receiving this feature. SAS has had this a bit longer on mission critical products (10k/15k RPM products).
If you are purchasing a drive and want this capability, you can look for "Fast Format" as this is typically how it is described, at least in Seagate's marketing.

If you already have a drive, running SeaChest_Format -d myDriveHandle -i and looking in the Features Supported Section can tell if this is supported or not.

  • SATA will list this as Set Sector Configuration
  • SAS will list this as Fast Format. Note: Check the product manual on SAS products as this is not as easy to detect support for.

As for those USB adapters that show up as 4KN, this is a reverse-emulation that doesn't actually do anything to the drive. If you read 1 of the USB sectors, this is translated into a read of 8 SATA drive sectors. The SAT spec mentions this is allowed, but does not set any requirements on LBA alignment, meaning the USB adapter is free to set its LBA 0 at a different place from the drive's LBA0-7, but in practice I have not seen this happen. These adapters may also be more rare as they were designed to get around a 32bit LBA limit in Windows XP, which is no longer as popular of a problem as it used to be.

@Seagate Seagate locked and limited conversation to collaborators Mar 12, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants