这个办法也许行,不过我想把它放在后面一点,实在没有办法再试, :lol: ext2 的 mount options 里面没有 iocharset
Mount options for ext2
The ‘ext2’ file system is the standard Linux file system.SinceLinux
2.5.46,formostmountoptionsthedefaultisdetermined by the
filesystem superblock. Set them with tune2fs(8).
acl / noacl
Support POSIX Access Control Lists (or not).
bsddf / minixdf
Set the behaviourforthestatfssystemcall.Theminixdf
behaviour is to return in the f_blocks field the total number of
blocks of the file system, while the bsddf behaviour(whichis
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-blocksUsed Available Capacity Mounted on
/dev/sda6 2630655 869542412169 3% /k
% mount /k -o bsddf; df /k; umount /k
Filesystem 1024-blocksUsed Available Capacity Mounted on
/dev/sda6 2543714 132412169 0% /k
(Note that this example shows that one can add command line optionsto
the options given in /etc/fstab.)
checkCheck filesystem (block and inode bitmaps) at mount time.
check=none / nocheck
Nochecking is done at mount time. This is the default. This is
fast.It is wise to invoke e2fsck(8) every now andthen,e.g.
at boot time.
debugPrint debugging info upon each (re)mount.
errors=continue / errors=remount-ro / errors=panic
Definethebehaviourwhenanerror is encountered.(Either
ignore errors and just mark the file system erroneousandcon‐
tinue,orremount the file system read-only, or panic and halt
the system.)The default is set in thefilesystemsuperblock,
and can be changed using tune2fs(8).
grpid or bsdgroups / nogrpid or sysvgroups
Theseoptionsdefinewhat group id a newly created file gets.
When grpid is set, it takes the group idofthedirectoryin
whichit is created; otherwise (the default) it takes the fsgid
of the current process, unless the directory has the setgidbit
set,inwhich 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. Thisisforinteroperability
with older kernels which only store and expect 16-bit values.
oldalloc or orlov
Useoldallocatoror Orlov allocator for new inodes. Orlov is
default.
resgid=n and resuid=n
The ext2 file system reserves a certain percentage of the avail‐
able space (by default 5%, see mke2fs(8) and tune2fs(8)).These
options determine who can use thereservedblocks. (Roughly:
whoeverhasthespecifieduid,orbelongs to the specified
group.)
sb=n Instead of block 1, use block n assuperblock.Thiscouldbe
usefulwhenthe filesystem has been damaged.(Earlier, copies
of the superblock would be made every 8192 blocks: inblock1,
8193,16385,...(andonegotthousands of copies on a big
filesystem).Sinceversion1.08,mke2fshasa-s(sparse
superblock)optionto reduce the number of backup superblocks,
and since version 1.15 this is the default. Note thatthismay
meanthat ext2 filesystems created by a recent mke2fs cannot be
mounted r/w under Linux 2.0.*.)The block number hereuses1k
units.Thus,ifyouwanttouselogicalblock 32768 on a
filesystem with 4k blocks, use "sb=131072".
user_xattr / nouser_xattr
Support "user." extended attributes (or not).
怎么改呢?我这块分区的文件系统是 ext2,和 vfat 一样吗?象这样?
/dev/hda1 /mnt/hda1 ext2 iocharset=cp936,umask=0,exec 0 0
/dev/hda1 /mnt/hda1 ext2 iocharset=utf8,umask=0,exec 0 0 utf8 Use UTF-8 for converting file names. ext2不支持iocharset,也不支持字符集转换吧。
好像常见的只有微软的文件系统才支持。 我觉得 woolzey 和 lanzinc 说得对,而且我也试过了 KDE 说的 fstab 修改办法,不行的。其实如果只是解决乱码,改local的办法是有效的,也就是修改 /etc/sysconfig/i18n (qdzhuang教的)。感谢各位的帮助,尤其是 lanzinc 贴出详细的代码 让我们长了知识。
呵呵,这样长知识印象比较深啊 ,我去看看convmv是怎么回事,
页:
1
[2]