---128457为操作系统的块个数;os block size为512byte
[root@rhel5 ~]# blockdev --getsize /dev/sdd1
128457
---上述分区的大小
[root@rhel5 ~]# fdisk -l /dev/sdd1
Disk /dev/sdd1: 65 MB, 65769984 bytes
255 heads, 63 sectors/track, 7 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdd1 doesn't contain a valid partition table
[root@rhel5 ~]#
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9240380/viewspace-764269/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/9240380/viewspace-764269/