3TB Non-system Disk Reports Wrong Size On CentOS 6 X86_64

Home » CentOS » 3TB Non-system Disk Reports Wrong Size On CentOS 6 X86_64
CentOS 1 Comment

root@five-72 ~
# dd if=/dev/zero of=/dev/sdb bs=1M count00
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB) copied, 8.67101 s, 121 MB/s

root@five-72 ~
# parted /dev/sdb GNU Parted 2.1
Using /dev/sdb Welcome to GNU Parted! Type ‘help’ to view a list of commands.
(parted) mklabel gpt
(parted) print Model: ATA ST3000DM001-1CH1 (scsi) –>
http://www.seagate.com/staticfiles/docs/pdf/datasheet/disc/barracuda-ds1737-1-11
11us.pdf Disk /dev/sdb: 2199GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags

(parted) q Information: You may need to update /etc/fstab.

root@five-72 ~
# cat /sys/block/sdb/queue/physical_block_size
512

But the drive says 4k sector size!

What am I doing wrong?

-Jason

One thought on - 3TB Non-system Disk Reports Wrong Size On CentOS 6 X86_64

  • hdparm reports 4096…. (reading http://karelzak.blogspot.com/2010/05/4096-byte-sector-hard-drives.html)

    Now I am really going nuts.

    root@five-72 ~
    # cat /sys/block/sdb/queue/physical_block_size
    512

    root@five-72 ~
    # cat /sys/block/sdb/queue/logical_block_size
    512

    root@five-72 ~
    # cat /sys/block/sdb/queue/optimal_io_size
    0

    root@five-72 ~
    # uname -a Linux five-72.internal.pdinc.us 2.6.32-431.11.2.el6.x86_64 #1 SMP Tue Mar 25
    19:59:55 UTC 2014 x86_64 x86_64 x86_64 GNU/Linuxroot@five-72 ~

    root@five-72 ~
    # hdparm -I /dev/sdb

    /dev/sdb:

    ATA device, with non-removable media
    Model Number: ST3000DM001-1CH166
    Serial Number: W1F2TPQT
    Firmware Revision: CC26
    Transport: Serial, SATA Rev 3.0
    Standards:
    Used: unknown (minor revision code 0x0029)
    Supported: 8 7 6 5
    Likely used: 8
    Configuration:
    Logical max current
    cylinders 16383 16383
    heads 16 16
    sectors/track 63 63