Edit: feedback
Thanks for all the advice! Here’s some funny feedback: it was a faulty drive 🤣 give me back my feelings 😭 obviously I’m sending it back

dhWvundoMJKYgdc.jpg

I have just received my Seagate 18TB IronWolf Pro HDD and the specs say that the logical sector size is 512 emulated. Moreover, Seagate says that switching to 4096 sector size is as easy as doing a quick format (Windows terminology?). I suppose on Linux this simply means creating a filesystem with that block size? For instance mkfs.ext4 -b 4096 /dev/device or - in my specific case - cryptsetup luksFormat --sector-size=4096 and then creating a file system?

What confuses me is the Arch Wiki article on advanced format that has instructions on how to use hdparm to tell the firmware to use a certain sector size.

Do I need to do the hdparm thing, which seemingly conflicts with the Seagate instructions?

  • okwhateverdude
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 days ago

    I don’t really have a good answer for you. Is the concern IO throughput? Wear leveling? Space efficiency? If this is a new drive being stuffed into an existing system, I recommend doing a couple of permutations and measuring.

    • printf("%s", name);@piefed.blahaj.zoneOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 days ago

      Since I may want to clone disks:

      Disk cloning between drives with different logical sector sizes is not advised. Moving to a drive with a smaller logical sector size (e.g. from 4096 bytes to 512 bytes) will require recreating the partition table since partition boundaries are specified in sector numbers. Moving to a drive with a larger logical sector size (e.g. from 512 bytes to 4096 bytes) may not be possible at all if a file system’s block size is less than target drive’s logical sector size or is not divisible by it. Source: https://wiki.archlinux.org/title/Disk_cloning

      • okwhateverdude
        link
        fedilink
        English
        arrow-up
        2
        ·
        6 days ago

        Ahh yeah, align the sector sizes, especially if you want to boot the clones. Reading the seagate drive page, it seems like it tells you explicitly how to set the sector size 1 . Windows probably does this implicitly when doing a format. I am fairly confident none of the luks or mkfs tooling will touch hard drive firmware settings. So yes, you definitely want to tweak the mode with hdparm.

        1:

        • printf("%s", name);@piefed.blahaj.zoneOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          6 days ago

          Thanks! I did notice that little box of text, but it’s “unfair” they assume people know ATA commands or whatever they are… :( I would’ve appreciated something more… Abstract 🤣

          Anyway, thanks for the help!😊