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?

  • mangaskahn@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    12 hours ago

    Use sg_format to run a low level format on the disk. 512E vs 4kN isn’t going to change much in a homelab environment. If you create a filesystem with 4k clusters, Linux will send 4k wrudte blocks to the disk. The firmware on the disk will write that out into 8 logical disk sectors, usually in a single 4k physical sector. I use my storage mainly for media and there’s no performance difference between my 512E disks and my 4nN disks. I simply don’t have an intense and sensitive enough environment to show the performance gain. I’d say leave the low level formating alone and just write a filesystem on top of it with 4k blocks.

      • mangaskahn@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        2 hours ago

        Low level formating is how the data tracks are layed out on the disk platters, it’s what the drive firmware sees. hdparm and sg_format instruct the disk to rearrange those tracks. High-level formatting is what the OS sees when you run mkfs. It creates a new file system or replaces an existing one.