Sorry to be a pain but does this mean that samba is now working fully and correctly? I read the github entry and cannot understand it (no surprise there) and tried googling to understand dcerpc and srvsvc - good way to waste time
Posts by LybsterKodi
-
-
petediscrete
Thanks for the suggestion. I'm skilled with Windows not with Linux (4 Windows PCs to 1 Linux one) so I would have no idea what I'd be looking for apart from the disk becoming corrupt again and spending another 12 hours copying all the files back. The 6TB HDD was connected to a USB3 port on the RPi4 (and is currently plugged into a RPi3 USB2 port), only for population was if connected to the Windows PC.
If you can expand on your suggestion I'm willing to give it a go.
-
The story so far for the 6TB HDD:
1. copy 4TB of files of backup
2. run Windows app (homebrew written in Delphi) to modify 6TB HDD file names and .nfo to reflect name changes
3. set up the RPi3s (LE 9.2.8, Kodi 18.9), removed sources and cleaned database
4. plugged 6TB HDD in
5. set up new sources and loaded database
6. no last played information
7. Exported database just in case nfo format was different
8. was told I'd forgotten about advanced settings.xml
9. use Windows via SAMBA to a) delete nfo files (c 7200 of them)
10. use Windwos via SAMBA to copy nfos from backup to 6TB HDD
11. removed sources, cleared databases, reset sources loaded database
12. everything fine
That pretty much confirms to me that the HDD is OK. I'm wondering if the incomplete implementation of SAMBA on the RPi4 could be responsible for the disk corruption. I can see no reason why Kodi should be writing to the sources unless I export the database and any file manipulation I do is via SAMBA so it will be writing to the disk.
Any thoughts?
-
I tried to connect it to the RPi4 again - not recognised. This time when I connected to my Windows PC it asked to scan and fix - FUBAR. I have for now given up on the RPi4. I do not know where the problem is but I suspect LibreElec. It may be the Pi but lack ability to test it. I'm going to swop the new 6TB HDD onto the old RPi3 system and see if it gives problems. If it does I'll apologise to LibreElec.
Any suggestions on how to test the Pi welcome.
-
System is setup on 128GB SSD.
Chkdsk and other disk testing utilities run on Windows PC and no problems identified.
The Seagate is set to spin down after 15 minutes same as the other Seagate 6TB HDD I had on the RPi3 setup which has run since 2018 with no problems.
-
A little more information - I took the HDD back to the Pi and its refusing to recognise it. Tried a different cable - still not recognised, tried one of the USB2 ports - still no joy.
-
Configuration:
LibreElec 20/08/2022 nightly, Amber skin loaded but not used, Shadertoy visualisation loaded, TVheadend server & client installed and running
RPi4B 4GB, 128GB SSD (for boot etc), 6TB Seagate Backup Hub NTFS formatted (films etc) with Haupage tuner & wifi keyboard dongle plugged in, ethernet,
I have posted about HDD corruption before but now I've lost a complete folder. I have three top level folders on the 6TB HDD - Films, MVids, Records. In Films I have folders A to Z with sub folders if there's a series (eg 'Allo 'Allo). This morning checking something I found I've lost the entire contents of Films/A. The folder is still there but there's nothing in it. Fortunately I do have backup but its more than a little disturbing.
The RPi4 has been running since 20/8 but has been rebooted via the menu on occasions. I have pulled the HDD from the Pi and checked it out on Windows since I have better diagnostic tools there and can find nothing wrong apart from the fact that stuff has gone missing.
Does anyone have a suggestion (or an explanation) that does not involve reformatting to Ext4 since that is not a viable option.
-
Joe
"a FS gets corrupt when a disk gets unplugged or a power cut, while the FS/disk is in use.
and "being mounted" translates to being "in use", here."
WOW! To my Windows centric eyes that seems like a major design flaw.
Hias
"Or just use the "remove media" option from the context menu in the video files view."
I knew it was there but assumed that I'd need to recreate the source and re-scan to the database. I've obviously misinterpreted as I did with EXPORT for videos.
-
This reply because its the only way I know to mark the thread as resolved
-
Thanks - I'll go and zap some files.
-
Hias
Thanks for that. The 6TB HDD did have an extra partition on it (can't remember how it was formatted) but it was rapidly removed with Mini Tool Partition Manager and the whole thing formatted to NTFS.
Your's and Joe's comments pretty much destroy my theory. I'll just have to hope it doesn't recur.
-
"your thought/theory are unlikely"
Agreed, but it is the best fit I have to the facts I know
"against the "boot theory" and for the "dear Pi don't boot my external drive":
usually LE is configured where to boot from during LE installation.
with the UUID's form the disk what is attached during installation."
OK, but all I could find while searching was you can toggle between SD card & USB device as the first one to look at. What I have no idea about and why I thought disabling boot from specified disks is what happens if LibreElec starts its boot from SSD and then tries to spin up the HDD and fails? I know the Pi will close down but I have no idea what else its doing.
"mostly a filesystem gets corrupt when the drive is disconnected while being in use/mounted (e.g. hard power cut)."
We do get the occasional power cut or voltage fluctuation in the Highlands (not as many as I expected when we moved up here though).
The RPi4 is connected to a 128GB SSD for boot and a 6TB HDD for source (videos, records). The 6TB HDD should not be written to unless I carry out a media export and I do not recall ever seeing a disk / memory stick corrupted simply by unplugging unless it had been written to and items not flushed to disk.
OK my experience is primarily Windows based so Linux / LibreElec may be different.
-
Running 20/08/2022 nightly on RPi4, using Local information only with .nfo and .jpg files for each video
I've turned off Download actors thumbnails & Extract thumbnails from video files.
However, when I backed up and copied the tar over to my Windows PC I have c160MB of thumbnails.
1. Is this a LibreElec or a Kodi question
2. How do I stop the thumbnails being produced
3. Am I safe to just delete storage\.kodi\userdata\Thumbnails\
-
I'm still trying to understand why my 6TB USB HDD became corrupted twice. I think the first time was because I hadn't powered up the drive before turning the Pi on. I have a theory that the second time could have been caused by the Pi trying to boot from the 6TB HDD rather than the 128GB SSD even though the 6TB drive was powered up.
I don't think its going to be possible (tried googling but haven't found anything to support the idea) but I'd like to be able to say to the Pi - "you can boot from the SSD but not the HDD" by USB port, disk name or anything. Is there a way?
-
okay, next time please mention in your questions that your're not really interesting in answers, safes some time here ...
The question was
"What does anyone here think? Likely or not?".
If you are interested in answering that I'm interested.
If you are looking for cross platform compatibility, use NTFS. Both NTFS and exFAT are not native filesystems for Linux and NTFS implementation is older and more mature.
Turn off hibernation in disk settings. If disks shutdowns on its own while being mounted, it can only cause mess. Disk should be stopped by OS and not other way. If your storage thinks that it is smarter than OS, you have to use synchronous file system without journal on it.
Thanks.
"Filesystem performance is less critical than device performance."
fully agree with that
I'm convinced the "somebody" doesn't "attack original poster", but "attacks" the OPs wrong attitude what prevents to find the answer for his question(s) himself.
please learn to read the differences in the sentences !
Interesting. I hadn't realised that asking questions here was forbidden. After all if I'm to find out the answer for myself I shouldn't be asking anyone. I was also unaware that you were watching and discounted my efforts googling for information and trying physical tests to see if I could recreate the problem.
As a matter of interest. Did you look at the Wikipedia article, and if so how would it have helped answer my question? I ask because I'm always interested in learning - even at 70.
The expense is worth it
I would have agreed with you totally whilst I was still working and running a small IT Department. As a pensioner who had a large percentage of his savings disintegrated by the Credit Crunch my attitude has changed a bit <G>
-
there exists a comparison of filesystems in wikipedia, search for it
I did a lot of web searching before I posted here. The vast majority do a bit of a pro & con list with zero evidence to support anything. Wikipedia have a very detailed entry if I was interested in technical specs. I'm not.
-
I can now confirm the problem was the cable - new Cat6 cable and no packet loss.
"1) Update the RPi4 bootloader (there where quit a few things USB related in the changelogs)"
LibreElec tells me bootloader & t'other one (can't remember the name) are both up to date and I believe it
"2) Disable Wifi and Bluetooth if you are not using them"
Does never enabling them count <G> - never enable Bluetooth and always disable WiFi
"3) If the Seagate is FAT32 or NTFS that might cause the corruption because those filesystem aren't playing nice with Linux.You might consider switching to EXT4 (at least to test if corruption occur with that too)."
I've posted separately about this. Ext4 isn't really a possibility - simply from a viewpoint of backing up and copying / moving files using Windows (I'll see what the speed is like over the network now with the Cat6 cable). I've been running NTFS since 2018 on the Pi3s and that Seagate is OK. My current theory is the first time I had a duff socket in the extension lead which meant LibreElec/Pi4 tried to power the 6TB HDD, ignored the SSD with LibreElec on it and went to try and reformat the HDD but couldn't power it. The second time is baffling me but might have been flipping the power switches in the wrong order.
Pretty much all the stuff I can find on the web says use ExFat not NTFS for USB drives but no evidence to support the opinion.
-
Thanks - to answer your comments / questions
"Windows does not hibernate external drives."
True, however, Seagate provide a utility so you can tell the HDD to go to sleep after inactivity - I've set it to 15 minutes so having left it to copy 4TB overnight it was sleeping when I came back, turned the PC off and disconnected.
"Unplugging the drive during write operations."
Windows always tell it to eject or close PC down. RPi4 power off machine, but it shouldn't really be writing to the disk anyway - just reading videos.
"Insufficient power for write operations."
I'm pretty sure this was the first cause - power block with duff socket.That was fixed but I suppose its possible that the Pi was overloaded, couldn't read the OS from SSD and tried to create a new install on the HDD.
"Vibration"
Being a brit a tumbler is a glass (one of those things you drink out of) so might have trouble balancing the HDD on it
"Disk failure"
I'm about 23% through a full scann (HDDScan) right now - no bad sectors yet.
"Does it corrupt after being remove from Windows, from libreelec,
or during operation on one of the systems?"
Good question - I only found it (both times) when I plugged back into my Windows PC - massive index corruption both times.
"How does corruption show up in the kernel log? (dmesg)"
No idea - the SSD where I presume it would be stored has been flashed several times since it happened.
"PS: Why does the forum censor the word "
Wish I knew - it also censors f00d
My PS: any views on ExFAT vs NTFS?