Smb shares on french livebox, unreadable files

Hello new and dummy i have difficulties with my french router=Livebox by Orange.Until a recent update no problem but now…I have 8 machines at home .All of them using Linux.4 fedora spins and 4 ubuntu derivatives.All that in a local network with a usb key on the Livebox with smb shares.Now for 10 days some files like jpg,pdf appear as folders but not all of them 50/60%.I thought that number of pages for pdf could explain but NO.It doesn’t appear on Usb key directly on Pc,changing the usb key on Livebox not a solution.With the Mycloud Hdd on local network no problem.Only Fedora spins are concerned.Ubuntu/Mint no problem.A filesystem matter for me ,what’s wrong?

Is the files appear as folders in Gnome Files? what about the terminal? What file says?

# console command
file jpg.pdf

I tried different files managers but no difference.

Typing as is in home directory “file jpg.pdf” answers no such file or directory
but typing “file 2736428c.pdf” for instance answers PDF document version 1.5
but in terminal after entering smb share typing “file contrat_853445_2811220.pdf” answers :directory
and in smb share again typing “file jpg.pdf” as suggested answers:no such file or directory writable,executable,no read permission

fsck this USB?
Possibly the Ubuntu machines have some sort of “cache” for the files from this USB?

so i tried but i couldn’t.I enter the smb share by cd run/user/1000/gvfs then appears the smb share which has to be mounted first by the file manager or will stay hidden.
Then i enter :‘smb-share:server=livebox,share=usb_disk’
Once here if i try fsck i’m warned that i will damage file system so i try to unmount by umount smb-share:server=livebox,share=usb_disk
i’m then warned that block peripherals are not allowed on this filesystem=end.
So?Me?Machine?

Maybe fsck was a bad idea. I don’t know how to solve this.

But easier way to fsck is insert this USB to one of the computers. Don’t mount this USB, but find it in /dev/disk/by-label (if it has Label) and run fsck on it.

# Example (find the drive)
ls -lh /dev/disk/by-label
  lrwxrwxrwx 1 root root 10 Feb 14 23:03 Vits0_Boot1 -> ../../sda3
  lrwxrwxrwx 1 root root 10 Feb 14 23:03 Vits0_Boot2 -> ../../sda4
  lrwxrwxrwx 1 root root 10 Feb 14 23:03 Vits0_ComHome -> ../../sda7
  lrwxrwxrwx 1 root root 10 Feb 14 23:03 Vits0_EFI -> ../../sda2
  lrwxrwxrwx 1 root root 10 Feb 14 23:03 Vits0_Linux1 -> ../../sda5
  lrwxrwxrwx 1 root root 10 Feb 14 23:03 Vits0_Linux2 -> ../../sda6

# the same (sda6 is labeled Vits0_Linux2)
fsck /dev/disk/by-label/Vits0_Linux2
fsck /dev/sda6

With the USB inserted in Livebox. If this works in Ubuntu, run mount (without arguments) on one of the Ubuntu machines and see the options for this USB. Do the same on Fedora machine, and compare the mount options.

# if filesystem from USB has the label
# LABEL is a placeholder
mount -l | grep LABEL

# if you know which node
# X is device (sda, sdb, sdc ... etc)
# Y is partition number (sda1, sdb7, edc3 ... etc)
mount | grep /dev/sdXY

If your really an dummy, better use the Ubuntu: it’s already works for your case. It’ll be hard for you, with those 8 machines, to test anything every time when something breaks on one of them (or for all of them). Dedicate one machine for Fedora, not more.

PS: Success stories of other users is irrelevant if they don’t help TS to solve this annoying issue. Share should work, out-of-the-box, for a person of any skills, period.

Ok thanks this is what i get with usb on Livebox:mount command after entering the smb share.
Ubuntu side:

sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=3512304k,nr_inodes=878076,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=709072k,mode=755)
/dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=45,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=13837)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
tracefs on /sys/kernel/debug/tracing type tracefs (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/sda5 on /home type ext4 (rw,relatime,data=ordered)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=709068k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/sdb on /media/vibox/D83F-F026 type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)

Fedora side:

sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,seclabel,size=2763416k,nr_inodes=690854,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,seclabel)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,seclabel,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,seclabel,mode=755)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,seclabel,nsdelegate)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime,seclabel)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
/dev/mapper/fedora-root on / type ext4 (rw,relatime,seclabel)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=19745)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime,seclabel)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime,seclabel)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,seclabel,pagesize=2M)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,seclabel)
/dev/mapper/fedora-home on /home type ext4 (rw,relatime,seclabel)
/dev/sda1 on /boot type ext4 (rw,relatime,seclabel)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,seclabel,size=556616k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/sdb1 on /run/media/marcbrussol/E483-4A8E type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)

I can see differences on several parameters.I can add that accessing smb share needed to modify a bit smb.conf at start.For instance from F30 to F31 smb share disappeared until i read to add the line:min protocol=NT1 to smb.conf
So the question after a recent update is it matter of patience?I keep waiting for samba update or do i have to modify anything?

# Fedora, some files appear as folders
/dev/sdb1 on /run/media/marcbrussol/E483-4A8E type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)

# Ubuntu, works
/dev/sdb on /media/vibox/D83F-F026 type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
  1. if in Ubuntu it is relly a /dev/sdb without the number (like sdb1, sdb2, ... etc)?

  2. Is the numbers E4831-4A8E (Fedora) and D83F-F026 (Ubuntu) are randomly generated upon mounting the drive under `/run/media`, or it is really different devices (Is this UUID, in other words ;) )?

  3. if you do not sure you need the access time stamps: consider to change the relatime to noatime for this USB (i've no idea how to do this for samba). It, probably, is just a redundant writes. Maybe samba uses them, though.

  4. The iocharset= option, see: VFAT, copy error (file with Chinese characters) -- in the accepted answer "ascii" argument for this option is called "suboptimal". Try to set this in Fedora as it is in Ubuntu (somehow ;) ).

I’d found no other differences. See the The “Samba Client” stuff (Arch Wiki). This should help you to set up the configs.


Try to add the following under [global] in /etc/samba/smb.conf:

unix charset = UTF-8

ok so i found a clue on an old french Ubuntu topic from 2014:
https://forum.ubuntu-fr.org/viewtopic.php?id=1508761
One solution offered is to rename files from Linux and it works.YES but once only and not for all files.It’s a matter of extension .pdf,.jpg,.txt ,etc… not recognized.So it happened on ubuntu too.tu too… Difficulty is now how to fix it correcftly.I keep searching.At the end of post last writer proposes a buffer too short for long titles.I’m not sure ,i have difficulties with all lengths.Another one thinks it’s a matter of path…

Did you tried to add unix charset = UTF-8?
(under [global] category of /etc/samba/smb.conf)

yes on 2 machines,no effect but manipulating files allows to get back to readable files.

hello again,this morning finally an update of smbclient and samba common.Everything back in order.Fedora 32 is coming ,not coincidental.But why waiting that long for a few mb files?