public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: cal <cal@mail.meme.technology>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] is "scp" reliable?
Date: Sat, 29 May 2021 18:09:52 -0700	[thread overview]
Message-ID: <8b72cb4a-b2ce-ae7f-bd5c-c4ff7038d30f@mail.meme.technology> (raw)
In-Reply-To: <8e8edccb-5266-0d8f-4a67-0e77859c34a7@sys-concept.com>

On 5/29/21 5:42 PM, thelma@sys-concept.com wrote:
>>> Another mystery.
>>> I copied the file to USB 1TB sandisk.  
>>> md5sum check OK same as my computer 
>>>
>>>
>>> md5sum /run/media/joseph/SSD-1TB/business/backup/VDI/windows-7_pro_May-23-21.ova 
>>> 6f3348f1fb915af9c45806d947558a37  /run/media/joseph/SSD-1TB/business/backup/VDI/windows-7_pro_May-23-21.ova
>>>
>>> I mount the same USB 1TB sandisk on another computer and running md5sum on same file gives me different number,  why???
>>>
>>> md5sum /run/media/fd/SSD-1TB/business/backup/VDI/windows-7_pro_May-23-21.ova 
>>> c478cb48e2f7961cb0e3eb452df6e642  /run/media/fd/SSD-1TB/business/backup/VDI/windows-7_pro_May-23-21.ova
>>>
>> Did you sync and unmount the partition before ejecting the drive from
>> the first computer?  With a file this large being copied, it is likely
>> that a large amount of data remains buffered/cached and will not be
>> fully written to the flash memory even after the copy command completes.
>>
>> On the first machine, you would still see the correct md5sum because the
>> kernel abstracts this fact away from you.  But if you rip out the drive
>> and take it somewhere else without flushing those caches, you're going
>> to get an incomplete file.
>>
>> Check if the file on the drive still md5sums the same if you plug it
>> back into the first machine.  Check what size it is, and whether there
>> are a lot of 0s at the end indicating an unfinished write.
>>
>> cal
> 
> Yes, I unmounted the USB device every time. 
> And yes, I plug the USB device back to original machine and md5sum is correct, same as the original. 
> 
> I copied the large file over network to another box and md5sum of:  windows-7_pro_May-23-21.ova is correct same as on the original box.
> 
> I run this:   "rsync -avh [source] [destination] && rsync -avhc [source] [destination]"
> 
> above code rsync files folder on first run and if complete without issue, will run rsync again immediately while performing same file name comparison by using hash of entire file.
> 
> This i what I got:
> 
> rsync -avh windows-7_pro_May-29-21.ova fd@10.0.0.138:/home/fd/business/VDI/ && rsync -avhc windows-7_pro_May-29-21.ova fd@10.0.0.138:/home/fd/business/VDI/
> sending incremental file list
> windows-7_pro_May-29-21.ova
> 
> sent 30.29G bytes  received 35 bytes  115.81M bytes/sec
> total size is 30.28G  speedup is 1.00
> sending incremental file list
> windows-7_pro_May-29-21.ova
> WARNING: windows-7_pro_May-29-21.ova failed verification -- update discarded (will try again).
> windows-7_pro_May-29-21.ova
> ERROR: windows-7_pro_May-29-21.ova failed verification -- update discarded.
> 
> sent 33.44M bytes  received 6.47M bytes  123.38K bytes/sec
> total size is 30.28G  speedup is 758.62
> rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1330) [sender=3.2.3]
> 
>  
> 
rsync is emitting errors indicating the file was not transferred
correctly.  At this point I would call into question whether your second
machine is the problem rather than any of the tools you're using.  If
you have a third machine that is easy to test.  Otherwise I would run
memtest86+ and smartctl.

cal


  reply	other threads:[~2021-05-30  1:09 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-29 19:53 [gentoo-user] is "scp" reliable? thelma
2021-05-29 19:58 ` thelma
2021-05-29 20:00 ` Mark Knecht
2021-05-29 20:32   ` thelma
2021-05-29 21:04     ` Mark Knecht
2021-05-29 21:32       ` Mark Knecht
2021-05-30  0:26         ` thelma
2021-06-01  4:42       ` J. Roeleveld
2021-06-01 12:06         ` Adam Carter
2021-06-01 16:21         ` n952162
2021-06-03  9:26           ` J. Roeleveld
2021-06-01 15:57       ` [gentoo-user] " Grant Edwards
2021-06-01 16:22         ` thelma
2021-05-29 21:58     ` [gentoo-user] " cal
2021-05-30  0:42       ` thelma
2021-05-30  1:09         ` cal [this message]
2021-05-30  4:06           ` [SOLVED] " thelma
2021-05-30 13:04             ` [gentoo-user] Re: [SOLVED] " Grant Edwards

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8b72cb4a-b2ce-ae7f-bd5c-c4ff7038d30f@mail.meme.technology \
    --to=cal@mail.meme.technology \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox