圣者
精华
|
战斗力 鹅
|
回帖 0
注册时间 2011-6-21
|
d
本帖最后由 ostcollector 于 2014-5-22 11:43 编辑
物理机,Debian Stable Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 GNU/Linux
fdisk -l
Disk /dev/sda: 256.1 GB, 256060514304 bytes
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes
Disk /dev/sde: 3000.6 GB, 3000592982016 bytes
smartctl -a /dev/sd?
User Capacity: 256,060,514,304 bytes [256 GB]
User Capacity: 2,000,398,934,016 bytes [2.00 TB]
User Capacity: 2,000,398,934,016 bytes [2.00 TB]
User Capacity: 2,000,398,934,016 bytes [2.00 TB]
User Capacity: 3,000,592,982,016 bytes [3.00 TB]
dmesg | grep 'GB\|TB'
[ 1.805459] sd 0:0:0:0: [sda] 500118192 512-byte logical blocks: (256 GB/238 GiB)
[ 1.805503] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[ 1.926452] sd 2:0:0:0: [sdc] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[ 1.926628] sd 3:0:0:0: [sdd] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[ 1.926967] sd 4:0:0:0: [sde] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
虚拟机里面,gentoo stable branch
fdisk -l
Disk /dev/vda: 10 GiB, 10737418240 bytes, 20971520 sectors
parted /dev/vda > print
Model: Virtio Block Device (virtblk)
Disk /dev/vda: 10.7GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 33.6MB 32.5MB primary ext2
2 37.7MB 1111MB 1074MB primary linux-swap(v1)
3 1116MB 10.7GB 9597MB primary reiserfs
http://man7.org/linux/man-pages/man7/units.7.html
The situation was messy: in the 14k4 modems, k=1000; in the 1.44MB
diskettes, M=1024000; and so on. In 1998 the IEC approved the stan‐
dard that defines the binary prefixes given above, enabling people to
be precise and unambiguous.
Thus, today, MB = 1000000B and MiB = 1048576B.
In the free software world programs are slowly being changed to con‐
form. When the Linux kernel boots and says
hda: 120064896 sectors (61473 MB) w/2048KiB Cache
the MB are megabytes and the KiB are kibibytes.
|
|