QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1972|回复: 9

有关mount和fstab的问题,谢谢!

[复制链接]
发表于 2004-9-22 13:51:20 | 显示全部楼层 |阅读模式
我用root用户挂载windows分区时,总有像2K下用户的我的文档不能被赋予write权限,root也没有,我只有用chmod 777 mydoucument 临时改一下,我应该怎么改才能使用开机后一加载就能有write权限?我已经在fstab中使用了umask=0,请指教,最好能说明白一点谢谢!
发表于 2004-9-22 14:43:12 | 显示全部楼层
/dev/hda1 /mnt/win_c vfat umask=0, 0 0 0
回复

使用道具 举报

发表于 2004-9-22 15:05:55 | 显示全部楼层
随便再补充问一句,用vi对fstab编辑以后怎么存盘哦!?(新手的问题总是很弱智的,呵呵)
回复

使用道具 举报

发表于 2004-9-22 15:26:38 | 显示全部楼层
:wq
还有umask=0000 当中不要空格和逗号。
回复

使用道具 举报

 楼主| 发表于 2004-9-22 22:22:54 | 显示全部楼层
不行,我一直这样做,但只有普通文件会有rwx权限,看看下面:
[marship@macroheart marship]$ ll
总用量 125856
-rwxrwxrwx    1 root     root     38486016  9月  6 09:47 01.rm.nv!
-rwxrwxrwx    1 root     root     49800131  9月  6 13:22 02.rm.nv!
-rwxrwxrwx    1 root     root       917747  9月  8 15:42 20043141602167135.swf
-rwxrwxrwx    1 root     root      3207250 2004-03-23  20043231152284658.swf
-rwxrwxrwx    1 root     root         1242  9月 13 10:56 a.txt
drwxrwxrwx    5 root     root        16384  9月  6 18:02 crack
-rwxrwxrwx    1 root     root           78  9月  4 13:11 desktop.ini
-rwxrwxrwx    1 root     root       697393  9月  4 13:26 dscn8314.jpg
-rwxrwxrwx    1 root     root        44544  9月 11 10:21 Duba_Sdbot.EXE
-rwxrwxrwx    1 root     root      1663938  8月 31 20:55 fg160a.exe
-rwxrwxrwx    1 root     root      5928125  9月 11 22:22 HelixPlayer-0.3.0.rpm
-rwxrwxrwx    1 root     root       159744 2004-01-15  ipmsg.exe
-rwxrwxrwx    1 root     root       877193  9月  8 15:41 love1.swf
drwxrwxrwx   10 root     root        16384  9月  4 13:45 Maxthon
-rwxrwxrwx    1 root     root       236920  9月 14 21:47 meinvnv.swf
-rwxrwxrwx    1 root     root      3466985  9月 13 11:12 MPlayer-0.92.tar.tar
-rwxrwxrwx    1 root     root      2913845  9月 11 22:01 MPlayer-CVS-20040808-K&
K.rar
-rwxrwxrwx    1 root     root      6707725  9月 11 22:22 MPlayer-mingw32-1.0pre5
.zip
drwxrwxrwx    2 root     root        16384  9月  4 13:11 My eBooks
dr-xr-xr-x    3 root     root        16384  9月  4 13:11 My Music
dr-xr-xr-x    2 root     root        16384  9月  4 13:11 My Pictures
dr-xr-xr-x    2 root     root        16384  9月  5 09:36 My Videos
-rwxrwxrwx    1 root     root        22567  9月  7 18:59 nfs配置.htm
-rwxrwxrwx    1 root     root      2006890  8月 16 08:19 NT2Setup_192.EXE
-rwxrwxrwx    1 root     root       376832  8月  4 09:46 putty.exe
-rwxrwxrwx    1 root     root        82444  9月 11 10:21 RavSasser.exe
-rwxrwxrwx    1 root     root      9005228  9月 11 22:22 realplayer.rpm
drwxrwxrwx    2 root     root        16384  9月  9 16:40 samba
drwxrwxrwx   15 root     root        16384  9月  6 19:09 sample
-rwxrwxrwx    1 root     root       418925 2003-09-03  t116.swf
-rwxrwxrwx    1 root     root       214549  9月  9 17:26 tank-sdl-0.2.0.tar.bz2
-rwxrwxrwx    1 root     root         8704  9月  8 21:23 Thumbs.db
drwxrwxrwx    8 root     root        16384  9月  4 14:19 vc program
drwxrwxrwx    6 root     root        16384  9月  6 17:38 Visual Studio
-rwxrwxrwx    1 root     root       431904  9月 11 10:20 WindowsXP-KB823182-x86-
CHS.exe
drwxrwxrwx    2 root     root        16384  9月 13 10:56 新建文件夹
-rwxrwxrwx    1 root     root       807509  9月  4 13:13 王码五笔.exe

其中My music 和My Pictures 和My videos 是典型的xp中我的文档里的项目,很奇怪。
回复

使用道具 举报

发表于 2004-9-23 09:50:35 | 显示全部楼层
2.4的LINUX内核默认没有写NTFS的功能,所以挂载时应该这么写:
/dev/hda1 /mnt/win_c ntfs iocharset=gb2312,ro,umask=0 0 0
回复

使用道具 举报

发表于 2004-9-23 13:26:27 | 显示全部楼层
我的fc2,本来挂载的ntfs好好的,但我把它写入fstab后,重启后,显示不出来,再一次在终端下挂载,不能挂了,好像说ntfs不行,难道要装插件?那为什么本来可以呢?
回复

使用道具 举报

 楼主| 发表于 2004-9-23 21:58:12 | 显示全部楼层
我的不是这个问题,我的是fat32 ,我从来不用ntfs,我只是权限问题,你们可以试一下,把2K或XP下含My Doucument的盘挂上,就会发现我说的权限问题。
回复

使用道具 举报

发表于 2004-9-23 23:29:58 | 显示全部楼层
是不是 RH/FC 的特性呢? 我用的是 Gentoo, 实验了一下没有发现你说的问题。
回复

使用道具 举报

发表于 2004-9-24 10:08:54 | 显示全部楼层
[quote:5b897935c5="marship"]我的不是这个问题,我的是fat32 ,我从来不用ntfs,我只是权限问题,你们可以试一下,把2K或XP下含My Doucument的盘挂上,就会发现我说的权限问题。[/quote]
FAT32实际上不能称为文件系统,所以也没有权限的设置。
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-5-16 02:42 , Processed in 0.210989 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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