Mount share and see ?'s in the filename
I'm trying to mount a windows share (that mac users mostly use) using:
mount -t cifs //x.x.x.x/Graphics /mnt/graphics -o username=x,password=x This mounts ok for the most part, but then certain characters in the filenames are replace with question marks when I execute ll -l. I then use: mount -t cifs //x.x.x.x/Graphics /mnt/graphics -o username=x,password=x,iocharset=utf8 This time I don't get the question marks in the filenames, but I do get strange characters there instead. For example, the mac users love to lead their filenames with bullet characters, but iocharset=utf8 translates these to accent a and the cent character (or βΆ). No charset translates the bullet character to a question mark. Any ideas? Is there a magic charset I need to specify? This is causing me a lot of grief... Is there a more appropriate forum I should be posting this question to? |
Are you certain that the filesystem isn't corrupt? I've seen this when I had a corrupt sdcard.
|
utf8 should be the way to go when you want interoperability (that or set the three OSes to use the same charset), but I have no idea about Macs. You might need to configure Windows and Mac to use utf8 by default as well, then look for a procedure to convert all the existing file names to utf8.
|
To jschiwal, the file system definitely is not corrupt. The bullet characters appear perfectly on windows and macs (as well as other trouble characters).
To i92guboj, is there an easy way to detect which encoding windows is using (which is hosting the share) for the drive? Here is the weird thing and a possible solution... Mounting from Ubuntu's (10.04) "Connect to Server" > "Windows Share" works AND it correctly recognizes the oddball characters in the file names like the bullet (both in bash and in the gnome file browser). Anybody know how to get that (is it gvfs as opposed to cifs?) mounted automatically in fstab? |
Quote:
In linux I've used a tool called "convmv" to fix this. Quote:
Once the drive is mounted by gvfs you should be able to retrieve the info you need from the output of the "mount" command. The share should be listed there, along with the mount options. With a bit of luck you will be able to retrieve the right option from there and then just it's a matter of putting the same line in your fstab :) |
Thanks for your response.
I type mount -l, and all I get for the gvfs mounts are: gvfs-fuse-daemon on /home/administrator/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=administrator) So it looks like a thread is taking care of all mounts for gvfs so they don't show up with mount -l? nodev was new to me so I tried that and still no luck: mount -t cifs //x.x.x.x/Graphics /mnt/graphics -o username=x,password=x,nodev |
All times are GMT -5. The time now is 11:25 AM. |