Skip to contentSkip to conversation

Stale file handle with cat -- AVM Fritzbox

DISCUSSION Jörg Sommer 1 participant 2 messages Jul 27, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

I'm trying to access a USB disk attached to a Fritzbox from AVM. The Fritzbox is a router, but can also export USB disks as NAS. With smbfs I can't access any files, but smbclient works.

  # mount //192.168.178.1/fritzi /mnt/fritzi -o user=public,password=…
  # cat /mnt/fritzi/WD_blau/Public/Jörg-Backup/Archiv/keys/63b0d55eb795822facba850363d5148ce657db559552ef3a5cdf6623d110bb98 >/dev/null
  cat: /mnt/fritzi/WD_blau/Public/Jörg-Backup/Archiv/keys/63b0d55eb795822facba850363d5148ce657db559552ef3a5cdf6623d110bb98: Stale file handle

But smbclient works:

  # smbclient -U public%… //192.168.178.1/fritzi -c 'get WD_blau\Public\Jörg-Backup\Archiv\keys\63b0d55eb795822facba850363d5148ce657db559552ef3a5cdf6623d110bb98'
  # file WD_blau\\Public\\Jörg-Backup\\Archiv\\keys\\63b0d55eb795822facba850363d5148ce657db559552ef3a5cdf6623d110bb98 
  WD_blau\Public\Jörg-Backup\Archiv\keys\63b0d55eb795822facba850363d5148ce657db559552ef3a5cdf6623d110bb98: JSON data

So, what does the Kernel do different? How can I debug this?

Kind regards, Jörg

Signature · 2 lines
Auch wenn man etwas oft wiederholt, wird es dadurch nicht richtig,
aber es setzt sich fest.
#1 lore raw

Jörg Sommer schrieb am Wed 27. Jul, 08:53 (+0200):

Quoted 10 lines

Hi,

I'm trying to access a USB disk attached to a Fritzbox from AVM. The Fritzbox is a router, but can also export USB disks as NAS. With smbfs I can't access any files, but smbclient works.

  # mount //192.168.178.1/fritzi /mnt/fritzi -o user=public,password=…
  # cat /mnt/fritzi/WD_blau/Public/Jörg-Backup/Archiv/keys/63b0d55eb795822facba850363d5148ce657db559552ef3a5cdf6623d110bb98 >/dev/null
  cat: /mnt/fritzi/WD_blau/Public/Jörg-Backup/Archiv/keys/63b0d55eb795822facba850363d5148ce657db559552ef3a5cdf6623d110bb98: Stale file handle
Quoted 7 lines

But smbclient works:

  # smbclient -U public%… //192.168.178.1/fritzi -c 'get WD_blau\Public\Jörg-Backup\Archiv\keys\63b0d55eb795822facba850363d5148ce657db559552ef3a5cdf6623d110bb98'
  # file WD_blau\\Public\\Jörg-Backup\\Archiv\\keys\\63b0d55eb795822facba850363d5148ce657db559552ef3a5cdf6623d110bb98 
  WD_blau\Public\Jörg-Backup\Archiv\keys\63b0d55eb795822facba850363d5148ce657db559552ef3a5cdf6623d110bb98: JSON data

So, what does the Kernel do different? How can I debug this?

Oh, sorry. I missed the versions:

% uname -r
5.19.0-rc6-amd64

The kernel is from Debian. https://packages.debian.org/experimental/linux-image-5.19.0-rc6-amd64

% smbclient --version
Version 4.16.3-Debian

Signature · 2 lines
Viele Leute glauben, dass sie denken, wenn sie lediglich
ihre Vorurteile neu ordnen.