这个问题遇到很多次,不能使用fdisk -l比较不方便。下面是今天又遇到了的情况:
执行命令没有任何显示:
[root@mail2 root]# uname -a Linux mail2 2.4.21-27.ELsmp #1 SMP Wed Dec 1 21:59:02 EST 2004 i686 i686 i386 GNU/Linux [root@mail2 root]# fdisk -l
|
df -h可以正常显示:
[root@mail2 root]# df -h Filesystem Size Used Avail Use% Mounted on /dev/cciss/c0d0p1 6.8G 1.9G 4.5G 30% / none 1004M 0 1004M 0% /dev/shm /dev/cciss/c0d0p3 59G 637M 55G 2% /var
|
曾经用sfdisk -l可以显示的,这里也是不方便:
[root@mail2 root]# sfdisk -l
Disk /dev/cciss/c1d0: 140562 cylinders, 255 heads, 32 sectors/track Units = cylinders of 4177920 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System /dev/cciss/c1d0p1 0+ 24 25- 101984 83 Linux /dev/cciss/c1d0p2 25 49 25 102000 83 Linux /dev/cciss/c1d0p3 50 140561 140512 573288960 83 Linux /dev/cciss/c1d0p4 0 - 0 0 0 Empty
|
还是用fdisk -l
[root@mail2 root]# fdisk -l /dev/cciss/c0d0
Disk /dev/cciss/c0d0: 72.8 GB, 72833679360 bytes 255 heads, 32 sectors/track, 17433 cylinders Units = cylinders of 8160 * 512 = 4177920 bytes
Device Boot Start End Blocks Id System /dev/cciss/c0d0p1 * 1 1757 7168544 83 Linux /dev/cciss/c0d0p2 1758 2271 2097120 82 Linux swap /dev/cciss/c0d0p3 2272 17433 61860960 83 Linux
|
个人认为这个和hp的硬盘驱动名称有关系,hp的一般都是dev下的cciss里,2.4内核还不支持。
阅读(7235) | 评论(0) | 转发(0) |