免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4299 | 回复: 5
打印 上一主题 下一主题

mount的错误!!!求解答[依旧没有解决] [复制链接]

论坛徽章:
0
1 [报告]
发表于 2007-03-12 22:15 |显示全部楼层
原帖由 hiwoody 于 2007-3-12 22:03 发表于 4楼  


请版主看看说说为什么和你说的不一样  (红色已经标注了关键)
/dev/hda3 是独立的/home分区 ext3的文件系统格式    挂在 的时候也用了-o选项  500是用户明ID 用用户名挂在一样的效果

Mount options for ext2
The `ext2' file system is the standard Linux file system. Since Linux 2.5.46, for most mount options the default is determined by the filesystem superblock. Set them with tune2fs(.
acl / noacl
Support POSIX Access Control Lists (or not).
bsddf / minixdf
Set the behaviour for the statfs system call. The minixdf behaviour is to return in the f_blocks field the total number of blocks of the file system, while the bsddf behaviour (which is the default) is to subtract the overhead blocks used by the ext2 file system and not available for file storage. Thus
% mount /k -o minixdf; df /k; umount /k
Filesystem   1024-blocks  Used Available Capacity Mounted on
/dev/sda6      2630655   86954  2412169      3%   /k
% mount /k -o bsddf; df /k; umount /k
Filesystem   1024-blocks  Used Available Capacity Mounted on
/dev/sda6      2543714      13  2412169      0%   /k
(Note that this example shows that one can add command line options to the options given in /etc/fstab.)
check=none / nocheck
No checking is done at mount time. This is the default. This is fast. It is wise to invoke e2fsck( every now and then, e.g. at boot time.
debug
Print debugging info upon each (re)mount.
errors=continue / errors=remount-ro / errors=panic
Define the behaviour when an error is encountered. (Either ignore errors and just mark the file system erroneous and continue, or remount the file system read-only, or panic and halt the system.) The default is set in the filesystem superblock, and can be changed using tune2fs(.
grpid or bsdgroups / nogrpid or sysvgroups
These options define what group id a newly created file gets. When grpid is set, it takes the group id of the directory in which it is created; otherwise (the default) it takes the fsgid of the current process, unless the directory has the setgid bit set, in which case it takes the gid from the parent directory, and also gets the setgid bit set if it is a directory itself.
grpquota / noquota / quota / usrquota
These options are accepted but ignored.
nobh
Do not attach buffer_heads to file pagecache. (Since 2.5.49.)
nouid32
Disables 32-bit UIDs and GIDs. This is for interoperability with older kernels which only store and expect 16-bit values.
oldalloc or orlov
Use old allocator or Orlov allocator for new inodes. Orlov is default.
resgid=n and resuid=n
The ext2 file system reserves a certain percentage of the available space (by default 5%, see mke2fs( and tune2fs(). These options determine who can use the reserved blocks. (Roughly: whoever has the specified uid, or belongs to the specified group.)
sb=n
Instead of block 1, use block n as superblock. This could be useful when the filesystem has been damaged. (Earlier, copies of the superblock would be made every 8192 blocks: in block 1, 8193, 16385, ... (and one got thousands of copies on a big filesystem). Since version 1.08, mke2fs has a -s (sparse superblock) option to reduce the number of backup superblocks, and since version 1.15 this is the default. Note that this may mean that ext2 filesystems created by a recent mke2fs cannot be mounted r/w under Linux 2.0.*.) The block number here uses 1k units. Thus, if you want to use logical block 32768 on a filesystem with 4k blocks, use "sb=131072".
user_xattr / nouser_xattr
Support "user." extended attributes (or not).

Mount options for fat
(Note: fat is not a separate filesystem, but a common part of the msdos, umsdos and vfat filesystems.)
blocksize=512 / blocksize=1024 / blocksize=2048
Set blocksize (default 512).
uid=value and gid=value
Set the owner and group of all files. (Default: the uid and gid of the current process.)


可以看到 ext2/3 的确没有 uid/gid 方面的设置。楼上不烦用 ls -ld /mnt/e 看 /mnt/e 的 ownership 是什么?

论坛徽章:
0
2 [报告]
发表于 2007-03-12 22:18 |显示全部楼层
怎么 quote 后的效果这么恶新的?

论坛徽章:
0
3 [报告]
发表于 2007-03-12 22:35 |显示全部楼层

论坛徽章:
0
4 [报告]
发表于 2007-03-12 22:51 |显示全部楼层
我的是 rh9 ,测试结果和lz一样,不可以。

论坛徽章:
0
5 [报告]
发表于 2007-03-14 00:03 |显示全部楼层
刚刚在 turbo enterprise linux 10 上试过也不行,hiwoody 能否把 mount 后 ls -ld /mnt/e 的结果贴出来呢?

论坛徽章:
0
6 [报告]
发表于 2007-03-14 10:08 |显示全部楼层
现在不是讨论有魅于 uid/gid 选项,而是 ext3 分区上能用 uid/gid 选项吗?

btw :上面也只是针对 affs 而已
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP