LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1664|回复: 9

windows分区里的大写文件名copy到linux成小写了?

[复制链接]
发表于 2007-8-9 10:05:10 | 显示全部楼层 |阅读模式
搜了一下
已经有人问这个问题了,但是都没有答案
mount 时 -o posix=true或false 都不行
-o iocharset=utf8|gb2312 也不行

有知道的朋友帮忙解决一下,谢谢!
 楼主| 发表于 2007-8-9 10:11:06 | 显示全部楼层
而且win分区是fat32格式的
是不是没有解决的办法呀?
回复 支持 反对

使用道具 举报

发表于 2007-8-9 11:48:08 | 显示全部楼层
那有可能它本来就是小写的。Windows是不区分大小写的。Windows分区的文件名在Linux下面查看是大写的吗?
回复 支持 反对

使用道具 举报

发表于 2007-8-9 12:46:13 | 显示全部楼层
winxp-sp2   rhel5+samba

\DAXIE\xiaoxie 目录

\DAXIE\DAXIE.TXT  文件
\DAXIE\xiaoxie\xiaoxie.txt

由win 复制到 linux 磁盘上去后, ls -l 正常,没发现你说的情况。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-9 16:33:08 | 显示全部楼层
Post by hohoxu_hao115
那有可能它本来就是小写的。Windows是不区分大小写的。Windows分区的文件名在Linux下面查看是大写的吗?


大写的copy过去就成了小写的了,比如:ABC目录就成了abc目录,ABC.h成了abc.h;
大小写混合的则保持不变;
小写的也还是小写的。

Post by aleng

winxp-sp2 rhel5+samba

\DAXIE\xiaoxie 目录

\DAXIE\DAXIE.TXT 文件
\DAXIE\xiaoxie\xiaoxie.txt

由win 复制到 linux 磁盘上去后, ls -l 正常,没发现你说的情况。


如果是NTFS的分区好象linux挂的时候默认就区分出大小写。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-9 16:35:23 | 显示全部楼层
现在我只好用rar打包后再传到linux
然后装个rar for linux解压
----
但是这个问题本身并没有解决,顶上去弄个明白
回复 支持 反对

使用道具 举报

发表于 2007-8-9 17:22:39 | 显示全部楼层
显示呢?


  1. Mount options for vfat

  2. ...

  3. shortname=[lower|win95|winnt|mixed]

  4.     Defines the behaviour for creation and display of filenames which fit into 8.3 characters. If a long name for a file exists, it will always be preferred display. There are four modes:
  5. lower
  6.     Force the short name to lower case upon display; store a long name when the short name is not all upper case.
  7. win95
  8.     Force the short name to upper case upon display; store a long name when the short name is not all upper case.
  9. winnt
  10.     Display the shortname as is; store a long name when the short name is not all lower case or all upper case.
  11. mixed
  12.     Display the short name as is; store a long name when the short name is not all upper case.

  13. The default is "lower".
复制代码
回复 支持 反对

使用道具 举报

发表于 2007-8-13 11:10:36 | 显示全部楼层
我有试验了1遍,用linux启动,mount磁盘上的fat32分区时是有你说的那种情况。即不能区分大小写,文件目录。
本来是一个大写的目录 DAXIE , 你 cd dAxiE 也能进去。
测试环境   红帽 server5

linux对fat32支持的很垃圾,我从前就遇到过 chmod改变权限后,当时管用,重新开机又恢复成默认的情况,可这类 “特色”, 教程里,手册里都木有。
回复 支持 反对

使用道具 举报

发表于 2007-8-13 12:02:51 | 显示全部楼层
fat32本身不支持posix permission mode
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-28 08:49:23 | 显示全部楼层
这个问题我仍然没解决呢。
是不是只剩打包,然后传到linux中再用rar for linux解开这个法子了啊?

----
这么久才回这帖,不好意思了啊两位
回复 支持 反对

使用道具 举报

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

本版积分规则

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