How do commands like fdisk -l find the sector size?

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
So how do commands like fdisk -l find the sector size of a hard disk?
does the MBR of that disk contain this information? if so, which part of it? what offset?
and if its not in the MBR then how can these types of commands find it? they can't be reading it from the beginning of a partition considering they need to calculate the starting address of that partition and they need the sector size for it?
so how are commands like fdisk implemented to find this information? where do they read it from?
linux hard-disk command disk cluster
add a comment |Â
up vote
0
down vote
favorite
So how do commands like fdisk -l find the sector size of a hard disk?
does the MBR of that disk contain this information? if so, which part of it? what offset?
and if its not in the MBR then how can these types of commands find it? they can't be reading it from the beginning of a partition considering they need to calculate the starting address of that partition and they need the sector size for it?
so how are commands like fdisk implemented to find this information? where do they read it from?
linux hard-disk command disk cluster
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
So how do commands like fdisk -l find the sector size of a hard disk?
does the MBR of that disk contain this information? if so, which part of it? what offset?
and if its not in the MBR then how can these types of commands find it? they can't be reading it from the beginning of a partition considering they need to calculate the starting address of that partition and they need the sector size for it?
so how are commands like fdisk implemented to find this information? where do they read it from?
linux hard-disk command disk cluster
So how do commands like fdisk -l find the sector size of a hard disk?
does the MBR of that disk contain this information? if so, which part of it? what offset?
and if its not in the MBR then how can these types of commands find it? they can't be reading it from the beginning of a partition considering they need to calculate the starting address of that partition and they need the sector size for it?
so how are commands like fdisk implemented to find this information? where do they read it from?
linux hard-disk command disk cluster
linux hard-disk command disk cluster
asked 1 min ago
John P
1698
1698
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479199%2fhow-do-commands-like-fdisk-l-find-the-sector-size%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password