33
Format a 512e drive to 4096 on Linux
(piefed.blahaj.zone)
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
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.
What do you mean?
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.
Erasing the partition table and/or uefi metadata space.