QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 586|回复: 11

低级问题,困扰我多次了

[复制链接]
发表于 2003-7-2 10:48:35 | 显示全部楼层 |阅读模式
每次使用mount命令,要先了解设备的格式,我用fdsik为什么用不上,提示:
bash: fdisk: command not found
请指教
发表于 2003-7-2 11:25:57 | 显示全部楼层
你的环境变量PATH中没有包括fdisk的搜索路径,Redhat9的fdisk明令在/sbin/下。
你可以将这个路径加入或者直接用/sbin/fdisk
回复

使用道具 举报

发表于 2003-7-2 11:47:11 | 显示全部楼层
编译内核,加上automount支持就可以自动判断格式
回复

使用道具 举报

 楼主| 发表于 2003-7-2 11:50:39 | 显示全部楼层
alvan, 谢谢你的回复,可我进入 /sbin后,还是用不了fdisk
回复

使用道具 举报

 楼主| 发表于 2003-7-2 11:52:24 | 显示全部楼层
atfa, 谢谢你的回复,可我刚接触linux,不知道怎么编译内核,也不知道怎么automount
回复

使用道具 举报

发表于 2003-7-2 11:55:24 | 显示全部楼层
杳找有不有fdisk文件,如有用   bash fdisk试一试.
回复

使用道具 举报

发表于 2003-7-2 12:24:15 | 显示全部楼层
你用root 登录了吗?
回复

使用道具 举报

发表于 2003-7-2 15:55:05 | 显示全部楼层
[quote:457bb80f59="mongxi"]杳找有不有fdisk文件,如有用   bash fdisk试一试.[/quote]
我尝试了一下,出现以下情况:
fdisk 不能执行二进制文件
回复

使用道具 举报

发表于 2003-7-2 17:25:28 | 显示全部楼层
用绝对路径试一下吧
回复

使用道具 举报

发表于 2003-7-2 20:52:25 | 显示全部楼层
find -name fdisk
保证你能找出fdisk在哪里。
回复

使用道具 举报

发表于 2003-7-3 00:28:47 | 显示全部楼层
automount is for other purposes.  Not for mounting local devices.  Normally, mount will automatically determine file system types for you.  The default type is iso9660.  If you do not specify a particular type, mount will probe the device superblock for the filesystem type.
回复

使用道具 举报

发表于 2003-7-3 15:36:50 | 显示全部楼层
上面的查找命令有误,应该是find / -name fdisk, 如果还是找不到可能你没有装util-linux-2.11y-9.rpm包。到下面这个地址看看吧:
http://ftp.wss.yale.edu/rpm2html/rh9/RedHat/RPMS/util-linux-2.11y-9.i386.html
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-10-1 21:39 , Processed in 0.047990 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表