**This problem is related to Samba and inodes are not necessary.**

---

I have a problem handling a certain file that has some special characters in it. If I search it by its `inode` it will list the file:

```
 $ find . -inum 90505400 -exec ls {} \;
./12 String Quartet No. 16 in F Major Op. 135: Der schwer gefa?te Entschlu?: Grave, ma non troppo tratto (Mu? es sein ?) - Allegro (Es mu? sein !).flac

```

However, if I then proceed to use `cp` or `rm` on the file it will throw a `file not found` error (in German 'Datei oder Verzeichnis nicht gefunden'):

```
 $ find . -inum 90505400 -exec cp {} ne.flac \;
cp: './12 String Quartet No. 16 in F Major Op. 135: Der schwer gefa?te Entschlu?: Grave, ma non troppo tratto (Mu? es sein ?) - Allegro (Es mu? sein !).flac' kann nicht zum Lesen geöffnet werden: Datei oder Verzeichnis nicht gefunden

```

I wonder, if I can copy the file with another command that uses the inode directly. I also had this problem for some time now. I can remove all files with `rm *`, but I would like to fix the broken filename.

---

It is an `ext4` filesystem which I mount on a Raspi from an external USB HDD with this line (changed obfuscated paths and IPs):

```
UUID=e3f9d42a-9703-4e47-9185-33be24b81c46   /mnt/test   ext4    rw,auto,defaults,nofail,x-systemd.device-timeout=15 0 2

```

I then share it with samba:

```
[mybook]
path=/mnt/test
public = yes
browseable = yes
writeable = yes
comment = test
printable = no
guest ok = no

```

And I mount this on a Lubuntu 16 with this:

```
//192.168.1.190/test         /home/ben/test               cifs auto,nofail,username=XXX,password=XXX,uid=1000,gid=1000

```

I connect to the Lubuntu 16 through `VNC` from a Macbook. Or I `SSH` directly into it. I am just telling this for full information.

I also mount the share on that Macbook (and others) in Finder. Finder does not display the filename correctly.

[![enter image description here](https://i.stack.imgur.com/V7YyV.png)](https://i.stack.imgur.com/V7YyV.png)

---

After a useful comment from a user, I realized I should try to manipulate the file on the host with the original filesystem instead of trying to do it over samba.
------------------------------------------------------------------------------------------------------------------------------------------------------------------

`SSH`ing into the host reveals this filename (look at the sign with `0xF022` after '135'):

```
'12 String Quartet No. 16 in F Major Op. 135 Der schwer gefa?te Entschlu? Grave, ma non troppo tratto (Mu? es sein ) - Allegro (Es mu? sein !).flac'

```

**I then was able to copy the file with `cp` on the host itself.**

(In case anybody wonders how I came to the filename: I split a summed up `flac` file with it's `cue` sheet into the separate files and they got named automatically.)