<p>I am trying to copy blocks from Debian 10 “buster” virtual machine to external SSD which I will boot from on a Raspberry Pi.</p>
<pre><code>rsync --archive --delete --human-readable --info=progress2 /home/bitcoin-admin/.bitcoin/ /mnt/usb/home/pi/.bitcoin
        135.53M   0%    9.10MB/s    0:00:14 (xfr#2, ir-chk=7777/8259)
rsync: read errors mapping &quot;/home/bitcoin-admin/.bitcoin/blocks/blk00464.dat&quot;: Input/output error (5)
</code></pre>
<p>Does <code>rsync</code> error mean <code>blk00464.dat</code> is corrupt? If so, how can I recover?</p>
<p><code>bitcoind</code> runs fine on virtual machine.</p>
<p>Thanks for helping out!</p>

CC BY-SA 4.0
2022-02-10T19:44:01.060Z
googled the `rsync: read errors mapping`, found this: https://bobcares.com/blog/rsync-input-output-error_5/
`2. Insufficient privileges` -> try `sudo rsync`
Antoni
CC BY-SA 4.0
2022-02-10T22:52:46.813Z
Thanks for helping out @Antoni. The error only occurred for certain blocks and I checked permissions… same for all blocks.
sunknudsen
CC BY-SA 4.0
2022-02-11T17:01:07.083Z
maybe some sectors on your drive are corrupt. does `dd if=/home/bitcoin-admin/.bitcoin/blocks/blk00464.dat of=/dev/null bs=4K` give any errors?
Antoni
<bitcoind><raspberry-pi>
How to fix corrupted blocks?
sunknudsen
# How to fix corrupted blocks?

(Asked by: username_0 on 2022-02-10)

I am trying to copy blocks from Debian 10 “buster” virtual machine to external SSD which I will boot from on a Raspberry Pi.
rsync --archive --delete --human-readable --info=progress2 /home/bitcoin-admin/.bitcoin/ /mnt/usb/home/pi/.bitcoin
        135.53M   0%    9.10MB/s    0:00:14 (xfr#2, ir-chk=7777/8259)
rsync: read errors mapping "/home/bitcoin-admin/.bitcoin/blocks/blk00464.dat": Input/output error (5)

Does rsync error mean blk00464.dat is corrupt? If so, how can I recover?
bitcoind runs fine on virtual machine.
Thanks for helping out!

**Tags:** bitcoind, raspberry-pi

> **Comments:**
> **username_1**: googled the `rsync: read errors mapping`, found this: https://bobcares.com/blog/rsync-input-output-error_5/ `2. Insufficient privileges` -> try `sudo rsync`  
> **username_0**: Thanks for helping out @username_1. The error only occurred for certain blocks and I checked permissions… same for all blocks.  
> **username_1**: maybe some sectors on your drive are corrupt. does `dd if=/home/bitcoin-admin/.bitcoin/blocks/blk00464.dat of=/dev/null bs=4K` give any errors?  

---

## 0 answers

