fdisk -l shows incorrect disk size

Solution Verified - Updated -

Issue

  • We have connected a disk of size 150 GB to our server, but when fdisk -l command is executed, it shows the disk size as 161GB:

    Disk /dev/sdb: 161.0 GB, 161061273600 bytes
    255 heads, 63 sectors/track, 19581 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    

Environment

  • Red Hat Enterprise Linux 5, 6,7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content