[CentOS] 3TB non-system disk reports wrong size on Centos 6 x86_64

Jason Pyeron

jpyeron at pdinc.us
Wed Apr 30 20:47:27 UTC 2014


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

root at 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 at five-72 ~
# cat /sys/block/sdb/queue/physical_block_size
512


But the drive says 4k sector size!

What am I doing wrong?

-Jason

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.





More information about the CentOS mailing list