|
|
发表于 2006-11-20 13:08:41
|
显示全部楼层
Post by lch3920126
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
LABEL=SWAP-hda2 swap swap defaults 0 0
LABEL=/home1 /home/lch/ct3 ext3 defaults,user 1 0
以上是我的fstab,最后一行是我挂载的硬盘分区,/home1是我的分区的标签。分区格式是ext3
我登录的时候以普通用户的身份登录的
详细点,你的 程序放在哪个目录下? 是最后那个分区吧。
$ man mount
你可以找到帮助的。
我找了一下,可能是:- user Allow an ordinary user to mount the file system. The
- name of the mounting user is written to mtab so that he
- can unmount the file system again. This option implies
- the options noexec, nosuid, and nodev (unless overridden
- by subsequent options, as in the option line
- user,exec,dev,suid).
复制代码
你试试把最后那行改为:
LABEL=/home1 /home/lch/ct3 ext3 defaults,user,exec 1 0
然后:
# umount /home/lch/ct3
# mount -a
可以吗?
可以回个话,呵呵。 |
|