分页: 1 / 1

初学linux mount命令不太明白

发表于 : 2010-11-16 13:15
kn1792
想在ubuntu下装个软件,已经安装完了,但是agent还没有启动
后来在官方网站看了一下操作说明,有些还能理解,有些就不行了:

mkdir -p /var/lib/Acronis/mms --这个是创建目录

/etc/init.d/acronis_agent status --这个是检查我安装程序的运行状态

/etc/init.d/acronis_agent start --这个是启动我安装的程序

4.Check that the /tmp directory shows that it is mounted without the noexec option:

mount | grep tmp ---这个就不懂了

If it is mounted with the noexec option, remount it:

mount -o remount,exec[device_name]/tmp ---这个就更不懂了,尤其是[device_name]这部分

Re: 初学linux mount命令不太明白

发表于 : 2010-11-16 14:09
懒蜗牛Gentoo
mount | grep tmp ---这个就不懂了

mount是列出当前mount了的分区,以及mount的参数,grep tmp是过滤出跟tmp有关的这行。目的是查看/tmp目录在挂载的时候有没有添加添加noexec参数。

Re: 初学linux mount命令不太明白

发表于 : 2010-11-16 14:39
kn1792
懒蜗牛Gentoo 写了:mount | grep tmp ---这个就不懂了

mount是列出当前mount了的分区,以及mount的参数,grep tmp是过滤出跟tmp有关的这行。目的是查看/tmp目录在挂载的时候有没有添加添加noexec参数。
这段明白了,但是要mount 哪个 /tmp呢? 这个tmp 在哪呢?

Re: 初学linux mount命令不太明白

发表于 : 2010-11-16 14:56
懒蜗牛Gentoo
mount | grep tmp

运行这个命令之后,就可以看到tmp是mount的哪个设备了。或者你直接把mount命令的结果贴上来大家看看。

Re: 初学linux mount命令不太明白

发表于 : 2010-11-16 15:05
hiphen
mount -o remount,exec[device_name]/tmp ---这个就更不懂了,尤其是[device_name]这部分
-------------------------------------------

你执行
mount | grep tmp后,应该有有一段文字输出,也许会有如下一句
/dev/sda14 on /tmp type ext4 (rw)


你的提示告诉你,需要remount一下,如下:
mount -o remount,exec /tmp