Bytes Per Physical Sectors on a Modern Hard Drive

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
d2alphame
Member
Member
Posts: 35
Joined: Fri May 04, 2012 8:04 am

Bytes Per Physical Sectors on a Modern Hard Drive

Post by d2alphame »

How many bytes are there on a physical sector on modern hard drives? I read recently in some places that its 4K bytes (4096 bytes). Just want to be sure before I start reading/writing on hard drive.
User avatar
NickJohnson
Member
Member
Posts: 1249
Joined: Tue Mar 24, 2009 8:11 pm
Location: Sunnyvale, California

Re: Bytes Per Physical Sectors on a Modern Hard Drive

Post by NickJohnson »

It's practically always 512 bytes, AFAIK. CDs are also almost always 2048 bytes per sector. In any case, it should be possible to read the number of bytes per sector using the ATA interface if you want to handle the weird hardware.
Tyler
Member
Member
Posts: 514
Joined: Tue Nov 07, 2006 7:37 am
Location: York, England

Re: Bytes Per Physical Sectors on a Modern Hard Drive

Post by Tyler »

http://en.wikipedia.org/wiki/Advanced_Format

However, early adopters translate to 512-byte sectors in the Disk Controller to support legacy systems.
Post Reply