Score:0

SMB mounted filesystem from old windows machine shows all files with identical names

ca flag

We successfully mounted on a linux server a folder shared by an old (XP) windows panel PC.

# mount.cifs //192.168.X.Y/folder /mnt/folder

Once we inspected the folder on client machine, we noticed that all files showed the same name

# ls /mnt/folder/

Conca_0C Conca_0C Conca_0C Conca_0C Conca_0C Conca_0C Conca_0C Conca_0C Conca_0C

As we know the real names of the folders, we tried to list the contents of one of the folders accessing it by its real name.

The problem persists also in subfolders.

# ls /mnt/folder/Conca_01/

22D012322D01 22D012322D01

We tried setting and unsetting some mount.cifs parameters:

  • iocharset
  • mapchars
  • mapposix
  • vers (SMB version)
  • posix
  • unix
  • linux
  • posixpaths

all without success.

The only way we found it to work is via gio mount (gvfs), but we need this filesystem to be mounted at boot via fstab, and we found no way to use gio mount in fstab.

Unfortunately we do not have another windows machine in the same network to test a mount between machines with the same OS.

Any ideas?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.