gh131461 于 2013-12-21 20:13:00发表:
..
irongeek 于 2013-08-09 01:21:43发表:
# fdisk -l Disk /dev/sda: 40.0 GB, 40027029504 bytes 255 heads, 63 sectors/track, 4866 cylinders, total 78177792 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x31363135
yinzinuo 于 2013-08-07 09:25:05发表:
我用实验证明你用的账户如果是普通账户那么将看不到 fdisk -l 执行结果 [root@wowoo ~]# su - wowoo [wowoo@wowoo ~]$ fdisk -l [wowoo@wowoo ~]$ fdisk -l /dev/sda Cannot open /dev/sda [wowoo@wowoo ~]$ su - Password: [root@wowoo ~]# fdisk -l Disk /dev/sda: 10.7 GB, 10737418240 bytes 255 heads, 63 sectors/track, 1305 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: 0x000be81d
features 于 2013-08-07 08:54:00发表:
顶上楼
相思爱文 于 2013-08-06 23:36:40发表:
用root身份运行,指定磁盘,不要不加参数 如 fdisk -l /dev/sda
gh131461 于 2013-12-21 20:13:00发表:
..
irongeek 于 2013-08-09 01:21:43发表:
# fdisk -l
Disk /dev/sda: 40.0 GB, 40027029504 bytes
255 heads, 63 sectors/track, 4866 cylinders, total 78177792 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x31363135
yinzinuo 于 2013-08-07 09:25:05发表:
我用实验证明你用的账户如果是普通账户那么将看不到 fdisk -l 执行结果
[root@wowoo ~]# su - wowoo
[wowoo@wowoo ~]$ fdisk -l
[wowoo@wowoo ~]$ fdisk -l /dev/sda
Cannot open /dev/sda
[wowoo@wowoo ~]$ su -
Password:
[root@wowoo ~]# fdisk -l
Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 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: 0x000be81d
features 于 2013-08-07 08:54:00发表:
顶上楼
相思爱文 于 2013-08-06 23:36:40发表:
用root身份运行,指定磁盘,不要不加参数
如
fdisk -l /dev/sda