0

I recently installed Debian 12 for Raspberry Pi and configured a Samba server. But now when I delete a file or a folder over the network I get an error, Samba object not found and then the file or folder gets deleted. Also if a folder contains multiple files, I have to delete all files one by one to delete that folder. This is only happening over the network. If I delete the same folder or file using a shell on the Raspberry Pi the files get deleted without any error.

This was not happening on my previous Debian 11 installation.

I have installed cifs-utils, smbclient also.

File permissions are all set to 0777 and (user and group) are for user server.

sudo chown -R server:server /media/Server
sudo chmod 0777 -R /media/Server

Below is the mounting string from /etc/fstab on the server

UUID=xxxxxxxxx /media/Server ntfs defaults,auto,users,uid=998,gid=992,rw,nofail 0 0

Below is the smb.conf:

[Server]
 path = /media/Server
 browseable = no
 read only = no
 valid users = server
 writeable = yes
 create mask=0777
 directory mask=0777

Kindly help me to fix the issue

6
  • Surpringly perhaps, running Samba to share a filesystem of type NTFS is not very efficient. Your Linux system has to translate NTFS into a native filesystem, and then Samba has to emulate NTFS characteristics on top of that. Can you reformat /mnt/Server to use a native filesystem? Commented Sep 26, 2023 at 7:26
  • Yes samba is running, I am able create a folder or file over the network without any issues. Only while deleting I am getting that error and then the file gets deleted. In debian 11 this error was not coming. It's a 4tb hdd can't format because I don't have any other media to take backup Commented Sep 26, 2023 at 7:33
  • Yes it's running on pi Commented Sep 26, 2023 at 8:31
  • Is that error message the exact text, or did you paraphrase it? Please ensure you provide the exact, complete, and full error message Commented Sep 26, 2023 at 8:39
  • Please provide the rest of the smb.conf file, not just the share definition Commented Sep 26, 2023 at 8:40

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.