Skip to contentSkip to conversation

fdisk expert print lists wrong start sector for logical partitions

DISCUSSION Phillip Susi 2 participants 4 messages Nov 13, 2013 – Nov 14, 2013 Util-Linux package

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The expert print function shows all logical partitions as having the same start sector as the extended partition that contains them.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSg6OAAAoJEJrBOlT6nu75Xm8H/1gJG62oJVo1+LsACZpOQJz8 D2/TwwZgAtrxCS6rOE0zq+tA+g2+4SZ611XiNBO3YNZrYRNxp6RpPehbSUFVGLI6 uuFFKobZ5x+xIZVSH6ZV4lO//lEpRM1YN2lhAMRS2svfpoYeYmmLBpa683WNgwvX Ry86GEBrYCA8bRzqwovhtASgPLH/C3U+iEYbASPdUJpUxQL6CjPmAL6KsL7/EZJg O8W96cl4B3mubeyIUsAfiIZaYaQwM3A9kdGL9pmMztw4Pl/RwjzCgzNI3ZJ7b7z3 mktjDX3DISvVfyu5+dQQfRj0V0aDR3xFTTOGyb+1i9WJTRa4s/qnH96vo13zGWU= =zRsJ
-----END PGP SIGNATURE-----

maintainer
#1 lore raw
Quoted 2 lines · Phillip Susi

The expert print function shows all logical partitions as having the same start sector as the extended partition that contains them.

Normal mode:

Device Boot Start End Blocks Id System
/dev/sdb1 2048 22527 10240 83 Linux
/dev/sdb2 22528 1228799 603136 5 Extended
/dev/sdb5 24576 229375 102400 83 Linux
/dev/sdb6 231424 1228799 498688 83 Linux

Expert mode:

Nr AF Hd Sec Cyl Hd Sec Cyl Start Size Id

  1 00   32  33   0  102  37   1      2048     20480 83
  2 00  102  38   1  124  48  76     22528   1206272 05
  3 00    0   0   0    0   0   0         0         0 00
  4 00    0   0   0    0   0   0         0         0 00
  5 00  135   7   1   70  56  14      2048    204800 83

6 00 103 26 14 124 48 76 2048 997376 83

It's correct, although probably it seems strange at a first glance.

It dumps MBR and EBR tables, nothing else. It means that you can see all the values as stored on the device without any calculation.

I agree that this info is not too useful. Maybe we can change this old thing and describe the whole chain of the MBR->EBR->EBR... in more readable and more precise way. Not sure, but I guess nobody cares about this output backward compatibility.

Karel

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com
#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 6 lines · Karel Zak

It's correct, although probably it seems strange at a first glance.

It dumps MBR and EBR tables, nothing else. It means that you can see all the values as stored on the device without any calculation.

So it isn't saying the partition starts at sector 2048, but rather it is 2048 sectors from the EBR?

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJShPk+AAoJEJrBOlT6nu75oUIH/iuXeQO+m9zuazRX26qJFMmY OtdPbSX73qEoP+/nB/aKFJH8w20Mlx6z5t9jX6yaZedYkDMXsup8rOzG9nQh854U ZRGhqfoA5gTfLUqZqAyzyaNT6tCxDIX8IBtC7eLKsz21SwlAWtxiVndS5eQ0ySc3 moW4igUcg5zgwc6JJc5Ybx38T4kT4McBZpJAh3mMhFPww20o8WS3vmAnCYTZi9jt H3HvR9OBKKEZxmz/Ddlz3YcQ6U5Z941xns/MbxAJMCl8ZY9Fn7dByvCEyuBtQ2Rs wGz+XQJ1s/fEMDVko6xgEGmiSyQoVe76ux9iHe4u4Z22h+cbbH7AxpYmPhSUfJM= =YrnF
-----END PGP SIGNATURE-----

maintainer
#3 lore raw
Quoted 7 lines · Phillip Susi

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 3 lines · Karel Zak

It's correct, although probably it seems strange at a first glance.

Quoted 6 lines
Quoted 3 lines

It dumps MBR and EBR tables, nothing else. It means that you can see all the values as stored on the device without any calculation.

So it isn't saying the partition starts at sector 2048, but rather it is 2048 sectors from the EBR?

Yep.
Karel

Quoted 19 lines

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJShPk+AAoJEJrBOlT6nu75oUIH/iuXeQO+m9zuazRX26qJFMmY OtdPbSX73qEoP+/nB/aKFJH8w20Mlx6z5t9jX6yaZedYkDMXsup8rOzG9nQh854U ZRGhqfoA5gTfLUqZqAyzyaNT6tCxDIX8IBtC7eLKsz21SwlAWtxiVndS5eQ0ySc3 moW4igUcg5zgwc6JJc5Ybx38T4kT4McBZpJAh3mMhFPww20o8WS3vmAnCYTZi9jt H3HvR9OBKKEZxmz/Ddlz3YcQ6U5Z941xns/MbxAJMCl8ZY9Fn7dByvCEyuBtQ2Rs wGz+XQJ1s/fEMDVko6xgEGmiSyQoVe76ux9iHe4u4Z22h+cbbH7AxpYmPhSUfJM= =YrnF
-----END PGP SIGNATURE-----
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com