libera/#devuan/ Monday, 2024-04-29

joergfirmware?00:20
plasma41archdummy: I've cloned both of those repositories to my local system. I'll take a look at them whenever I find time to set up snapper on my machine.00:34
integfredThunar file manager doesn't copy files using the GUI to external media properly. Copying by GUI results in file corruption. You can test this with cmp comman01:00
integfredUsing a different file manager (spacefm-gtk3) works for the time being01:00
integfredIt's important as I just ripped a computer apart trying to find the source of corruption01:01
integfredPretty severe01:01
ted-iousintegfred: What filesystem are you using?01:07
integfredext401:07
ted-iousOn both?01:07
integfredyes, I used a 6GB file to test01:08
integfredcopying by CLI was fine and copying using spacefm was fine01:08
integfredbut NOT Thunar01:08
ted-iousWhat kind of file?01:08
integfredI tried an ISO originally, then I dded some random stuff to a file to try that as well01:09
integfredIt only happens with external media01:09
ted-iousAnd you're testing for corruption with something like sha*sum?01:09
integfredcmp01:09
ted-iousOh right.01:09
integfredI'm testing one file against the other with cmp01:09
integfredbut shasum would work too01:10
ted-iousOk let's see if we can devise a test that will determine the nature of the corruption.01:10
integfredI also mentioned this on xfce IRC just now01:10
integfreddd if=/dev/urandom of=somefile bs=1M count=600001:11
integfredcopy the file via gui01:11
integfredthen01:11
integfredcmp somefile /path/to/externalmedia/somefile01:11
ted-iousDoes it corrupt with just one small file?01:11
integfredI haven't tried one small file01:12
integfredbut it's possible01:12
integfredI was getting corruptions because I wrote a script to check for silent corruption01:12
ted-iousI would try making a simple script to do larger and larger files until the cmp fails.01:12
ted-iousThat's good.01:12
integfredhttps://github.com/publicsite/consistencyChecker01:13
ted-iousI started using archive file formats for copying files around for the same reason.01:13
ted-iousOr else creating a md5sum file and comparing it on the other end.01:13
ted-ious7z and tarlz are really good for this.01:14
integfredi'm in the process of trying to make it use CRC-24 sum, converted to base64 (which is 4 bytes) and using a 4 byte CRC per 4KB01:14
ted-iousYou could just use tarlz and it will do all the checksums internally for you.01:15
integfredyeah, i don't want the compression01:15
ted-iousThat just needs a -0. :)01:15
ted-iousAlthough you can get minor compression for free with -3 since your cpu will be bored waiting for the usb and wants to do something more than twiddle its thumbs. :)01:16
integfredyeah ... I have slight paranoia haha01:18
ted-iousTrying to avoid any possible corruption?01:19
ted-iousI respect such paranoia. :)01:19
ted-iousYou should read about tarlz then.01:19
ted-iousI think it's the only foss archive format with compression that can both detect corrupt bits and recover from bad blocks.01:21
integfredactually i was part way through writing recovery too01:21
integfredbut this is not in the git yet01:21
ted-iousHave you looked at par2 yet?01:21
ted-iousThere's supposed to be a par3 in development but it will take years before everybody is satisfied and trusts it as much as par2.01:22
integfredI have never tried par2, I guess what I'm after is similar01:23
integfredbut part of the fun for me is to try and reinvent the wheel :)01:24
ted-iousDon't let me stop you then. :)01:24
ted-iousDoes your script do things that rsync -c doesn't?01:27
integfredi don't know what rsync -c does01:37
ted-iousIt forces rsync to compare every file instead of just looking at the date and time.01:54
integfredthe script I wrote in the git at the moment, as it stands, basically does that (compare every file in 2 different directories against each other). I am working on the other things I mentioned like CRC check and recovery to replace the cmp aspect to clarify. I am doing quite a bit of the work in C, but I haven't uploaded that bit yet.01:59
integfredIt's also worth noting that the bug in Thunar is distributed with devuan iso if you didn't already know this :)))02:47

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!