开机自动挂载硬盘 出现问题

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
543082593
帖子: 234
注册时间: 2008-11-07 8:41

开机自动挂载硬盘 出现问题

#1

帖子 543082593 » 2008-11-13 20:56

在网上查看了一些达人的关于挂载的方法以后
自己改写了一下 fstab
/dev/sda8 /media/multimedia vfat auto,rw,user,iocharset=utf8 0 0
保存了以后 重新启动 桌面出来以后 出现了我想挂载的硬盘 很兴奋 进去一看 也没有乱码 但是 单击一个文件 右键查看 却发现没有写权限啊
不知道怎么搞 查看了那 么多 也试了很多方法 就是不能达到我想要的结果 就是 开机自动挂载 有读写权限
请各位高手指点
还有就是有哪些好的关于linux学习的书 (我是大二的专业是软件工程)
小弟在此 先谢谢大家了
fall again
smooth criminal
they don't care about us
billie jean
beat it
dangerous
the lost children
childhood
ben
i will be there
speechless
she is out of my life
rock with you
...
LOVE U FOREVER
头像
netphi
帖子: 1051
注册时间: 2008-08-29 21:31

Re: 开机自动挂载硬盘 出现问题

#2

帖子 netphi » 2008-11-13 21:05

挂载参数加上umask=000
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: 开机自动挂载硬盘 出现问题

#3

帖子 adagio » 2008-11-13 21:21

我的写成这样,可以读写

代码: 全选

/dev/sda8 /media/multimedia vfat defaults,utf8,umask=007,gid=46 0 0
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
头像
543082593
帖子: 234
注册时间: 2008-11-07 8:41

Re: 开机自动挂载硬盘 出现问题

#4

帖子 543082593 » 2008-11-13 21:35

哈哈 刚才终于想到了一个很好的绝对可以成功的方法 并且验证确实是成功的
我先手动挂载 发现它是有读写权限的
然后 我就想到了利用终端
有个 mount -ls
查看所有挂载信息
然后看到 /host/ubuntu/disks/root.disk on / type ext3 (rw,errors=remount-ro) []
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
/proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
/dev/sda6 on /host type fuseblk (rw,nosuid,nodev,user_id=0,group_id=0,allow_other,blksize=4096) []
lrm on /lib/modules/2.6.27-8-generic/volatile type tmpfs (rw,mode=755)
/host/ubuntu/disks/boot on /boot type none (rw,bind)
securityfs on /sys/kernel/security type securityfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
/dev/sda8 on /media/DISK1_VOL5 type vfat (rw,nosuid,nodev,uhelper=hal,shortname=mixed,uid=1000,utf8,umask=077,flush) [DISK1_VOL5]
gvfs-fuse-daemon on /home/wangjinqu/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=wangjinqu)
然后 我找到我想要的挂载分区的信息
就是粗体字的一行 把 括号里的挂载选项 复制到我的fstab中的挂载选项里
重启以后 成功
linux 果然很强大
fall again
smooth criminal
they don't care about us
billie jean
beat it
dangerous
the lost children
childhood
ben
i will be there
speechless
she is out of my life
rock with you
...
LOVE U FOREVER
头像
543082593
帖子: 234
注册时间: 2008-11-07 8:41

Re: 开机自动挂载硬盘 出现问题

#5

帖子 543082593 » 2008-11-13 21:53

又失败了 怎么一会成功一会失败阿
fall again
smooth criminal
they don't care about us
billie jean
beat it
dangerous
the lost children
childhood
ben
i will be there
speechless
she is out of my life
rock with you
...
LOVE U FOREVER
回复