I’m running Jellyfin on a Debian-server in my home, and I have the associated media folders set up as samba shares so that I can transfer any new media from my laptop to the server through Dolphin (KDE file manager).

This has for the most part worked very well (except slow speeds), but I’ve had an issue recently where the files are not copied over properly. This resulted in glitches in for example music files that would stop playback. I checked the checksums of some of these files, and they were different from source. Seems like the glitchy files are missing some data, but at no point were I notified about this. It works fine after I removed the files and transferred again, and now the checksums match.

Is this a common issue with samba, or could it be a sign that my HDD is acting up?

4 points

Apart from copying the files again after comparing the checksums what else have you done to troubleshoot the issue? Have you looked at logs, run fsck or anything?

permalink
report
reply
1 point

I am unsure what logs to look at for this and have not done any filesystem check on the harddrive as I am unfamiliar with these tools. It’s an external Seagate HDD with an ext4 filesystem.

permalink
report
parent
reply
2 points

If you have time to not use the drive, you could use badblocks to test it. I usually use it with -svn as the options. s=Show progress, v=Verbose Mode, and n=Non destructive read/write mode,

permalink
report
parent
reply
2 points

Is the “Dolphin” that you’re using the same dolphin that KDE uses as a gui file manager?

permalink
report
reply
1 point

Yes, I should have specified that.

permalink
report
parent
reply
1 point

do you get the same problem with something like rsync?

permalink
report
parent
reply
4 points

It is not common at all no. Is your network between the 2 machines wired ethernet or wifi?

permalink
report
reply
2 points

Both machines are WiFi-connected.

permalink
report
parent
reply
3 points

rysnc might be a faster and more reliable option. It can compress the files for transfer and does checksums after the transfer is complete

I used something like this to transfer 12 TB from offsite to onsite with zero failures


rsync -arvzip --progress /path/to/host /path/to/destination

You can set up a screen and let this run in the background all the time

permalink
report
reply
2 points

Thanks! Glad to know rsync includes check after transfer, as I’ve just recently used it to backup everything on these drives to another hard drive that will not always be spinning. But I did not consider using it to transfer new media onto these hard drives.

I’ll try to use it to resync the files that were acting up.

permalink
report
parent
reply
1 point

Depending on your file structure, you could probably keep this running all the time so you don’t have to manually intervene in the future

permalink
report
parent
reply
1 point

How would I achieve that? With cron?

permalink
report
parent
reply
1 point

I tried to resync now, and had to pass the -c flag to make sure it checked the cheksums to see if they should be updated. Then it worked. Looks like that does not affect the after-transfer checksum check though, so that’s good (from documentation):

Note that rsync always verifies that each transferred file was correctly reconstructed on the receiving side by checking a whole-file checksum that is generated as the file is transferred, but that automatic after-the-transfer verification has nothing to do with this option's before-the-transfer lqDoes this file need to be updated?rq check. 
permalink
report
parent
reply
4 points

and since op is using kde, they can use a konsole with dolphin to drag and drop /path/to/host and /path/to/destination as well.

permalink
report
parent
reply
3 points

Thanks for sharing! I’m a pure headless Linux user, so I don’t know much about desktop environments

permalink
report
parent
reply
2 points

i’m headless for servers too; but i’m foolish enough to use the x server as my daily driver. lol

permalink
report
parent
reply
2 points

Oh, I didn’t know that. Neat!

permalink
report
parent
reply
5 points

I don’t know if samba has any error checking built in, so it may be even down to wonky network.

I would try doing a copy using rsync or ssh (sftp - you can use dolphin for that too), and see if that helps.

permalink
report
reply
1 point

rsync was written by one of the original Samba developers. I wonder if Tridge and co have any idea about how to shuffle data from A to B safely?

CIFS/SMB will only indicate received and not received and written. This is unlikely to be an issue.

I would start by proving that my network works properly, especially that dodgy cable with only wires 1,2,3,7 connected - because that’s all 100Mb/s needs, or the solid core cable that runs for 150m with plugs at each end instead of sockets and drop leads.

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 8.1K

    Monthly active users

  • 6.4K

    Posts

  • 175K

    Comments