- 论坛徽章:
- 0
|
本帖最后由 20040925 于 2011-10-24 14:50 编辑
回复 5# cu_little_bird
就是执行fdisk -l后显示
Disk /dev/sda: 8589 MB, 8589934592 bytes
15 heads, 63 sectors/track, 17753 cylinders
Units = cylinders of 945 * 512 = 483840 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x3dc1f8b6
Device Boot Start End Blocks Id System
/dev/sda1 * 1 70 33043+ 83 Linux
/dev/sda2 71 1181 524947+ 83 Linux
/dev/sda3 1182 17753 7830270 83 Linux
Disk /dev/sdb: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xb0b3cfbf
Device Boot Start End Blocks Id System
/dev/sdb1 1 2610 20964793+ 83 Linux
两分钟后接着显示
Disk /dev/sdc: 130 MB, 130285568 bytes
8 heads, 32 sectors/track, 994 cylinders
Units = cylinders of 256 * 512 = 131072 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 401 51312 7 HPFS/NTFS
/dev/sdc2 402 522 15488 83 Linux
/dev/sdc3 523 587 8320 83 Linux
/dev/sdc4 588 994 52096 83 Linux
好像是linux读/dev/sdc1(ntfs分区)时很慢,但也不至于两分钟,况且没有实际的数据读写,只是读一下分区表
使用strace fdisk -l命令显示停在下面代码处
open("/dev/sdc", O_RDONLY|O_LARGEFILE |
|