大家都知道硬盘是存储电脑数据的必要工具,如果没有硬盘,那么电脑就无法正常的使用,所以,为了大家的数据安全,大家需要保护好硬盘,避免硬盘出现各种数据丢失问题。可是,......
2016-08-31 200 电脑故障解决
[root@localhost boot]# fdisk-l <--使用 fdisk命令时候 出现如下错误
bash: fdisk-l: command not found
[root@localhost boot]# whereis fdisk <--查询fdisk命令的位置
fdisk: /sbin/fdisk /usr/share/man/man8/fdisk.8.gz
[root@localhost boot]# echo $PATH <---查询环境变量
/nfs/smartsvn/bin:/usr/local/sbin:/sbin:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/java/jdk1.7.0_25/bin:/usr/dev/svnclient/smartsvn-7_5_2/bin
[root@localhost boot]# echo $PATH | grep /sbin/fdisk <--再次确认确实没有fdisk命令所在位置
[root@localhost boot]# ln -s /sbin/fdisk /usr/local/sbin <--fdisk添加到当前命令搜索路径中即可
[root@localhost boot]# cd /usr/local/sbin <--确认fdisk已经添加到环境变量
[root@localhost sbin]# ls -F |grep /sbin/fdisk
[root@localhost sbin]# ls -F
fdisk@
[root@localhost sbin]# fdisk -l<--使用fdisk命令
Disk /dev/sda: 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: 0x000f1e94
Device Boot Start End Blocks Id System
/dev/sda1 * 1 39 307200 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 39 2354 18598912 83 Linux
/dev/sda3 2354 2611 2064384 82 Linux swap / Solaris
标签: Linux
相关文章
大家都知道硬盘是存储电脑数据的必要工具,如果没有硬盘,那么电脑就无法正常的使用,所以,为了大家的数据安全,大家需要保护好硬盘,避免硬盘出现各种数据丢失问题。可是,......
2016-08-31 200 电脑故障解决
电源是电脑主机的动力基地,是电脑主机配件的动力源泉,电源输出的电流好坏,直接影响电脑主机配件的性能和使用寿命。如果将CPU比作电脑的心脏,则电源就是整台电脑主机的血液......
2016-07-26 200 电脑故障解决
电脑开机密码忘记了怎么取消。相信很多人都会设置开机密码,却不知道开机密码怎么取消。还有的人设置了开机密码,过段时间连自己都不记得了,那该怎么办?现在就让小来给大家......
2017-05-09 200 电脑故障解决
有时候使用电脑的时候可能会听到来自电脑嗡嗡的声音,相信很多使用朋友们都有遇到过,尤其是那些年龄较大或者长时间没有进行清理的电脑,噪音尤其之大,有时候这种噪音已经严......
2016-07-26 200 电脑故障解决
在夏天室内的温度过高,很容易造成CPU温度升高,很容易造成电脑蓝屏或者死机的问题,那么怎样才能防止CPU温度过高的问提呢? 台式电脑CPU温度过高的解决方法 1、最好把不重要或者不......
2017-05-11 200 电脑故障解决