Child pages
  • Physical storage device (HDD, SDD) partitions

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The partition size shown by fdisk (in 1024 bytes Blocks) is rounded; if an exact partition size is required it can be calculated by End - Start + 1 (fdisk shows End and Start in sectors). For example:

...

root@CW8:~#

...

fdisk

...

-l

...

/dev/sdb

...


[snip]

...


Device

...

Boot

...

Start

...

End

...

Blocks

...

Id

...

System

...


[snip]

...


/dev/sdb7

...

1224268508

...

1250261614

...

12996553+

...

83

...

Linux

End - Start + 1 is 1250261614 - 1224268508 + 1 = 25993107.

...

    • Length includes the EPBR, any following unused sectors and the logical partition itself.

    • Offset is the EPBR plus any following unused sectors.

    • First Sector is the first (and only) sector of the EPBR

    • The partition size is not displayed. It can be calculated from Length less Offset. For example:

...

root@CW8:~#

...

cfdisk

...

-Ps

...

/dev/sdb

...


Partition

...

Table

...

for

...

/dev/sdb

...


               First       Last
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID)

...

Flag

...


--

...

-------

...

-----------

...

-----------

...

------

...

-----------

...

--------------------

...

----

...


[snip]

...


 7 Logical  1224268445*

...

1250261614*

...

    63    25993170

...

Linux

...

(83)

...

           None

Length less Offset: 25993170 - 63 = 25993107.

...