免费注册 查看新帖 |

Chinaunix

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

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

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-03-12 20:25 |只看该作者 |倒序浏览
为什么我使用mount /dev/hda1 /d1 -o uid=redhat挂在失败,提示说用户选项错误.
ount: wrong fs type, bad option, bad superblock on /dev/hda1,
       or too many mounted file systems

我的分区已经格式化完好.
并且执行
mount /dev/hda1 /d1
是没有问题的.
求达人解答
莫非mount的用法变了?

[ 本帖最后由 fu_ch_un 于 2007-3-12 21:52 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2007-03-12 20:34 |只看该作者
原帖由 fu_ch_un 于 2007-3-12 20:25 发表于 1楼  
为什么我使用mount /dev/hda1 /d1 -o uid=redhat挂在失败,提示说用户选项错误.
ount: wrong fs type, bad option, bad superblock on /dev/hda1,
       or too many mounted file systems

我的分区已经格 ...


你的 hda1 是哪種文件系統類型?

ext2/ext3 這類沒有 uid 選項可以用,除非像是 fat 這類才支援該參數使用.

--

论坛徽章:
0
3 [报告]
发表于 2007-03-12 21:47 |只看该作者
老大明鉴,解决!
thx a lot
不过楼下的问题又桶篓子了.

[ 本帖最后由 fu_ch_un 于 2007-3-12 22:05 编辑 ]

论坛徽章:
0
4 [报告]
发表于 2007-03-12 22:03 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
5 [报告]
发表于 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
6 [报告]
发表于 2007-03-12 22:18 |只看该作者
怎么 quote 后的效果这么恶新的?

论坛徽章:
0
7 [报告]
发表于 2007-03-12 22:33 |只看该作者
恩,恶心异常,比较qq了....

论坛徽章:
0
8 [报告]
发表于 2007-03-12 22:35 |只看该作者

论坛徽章:
0
9 [报告]
发表于 2007-03-12 22:36 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
10 [报告]
发表于 2007-03-12 22:37 |只看该作者
我的系统环境是:centos 4.4
小woody的是:fc6
不知道版主的是???
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP