billw2 / rpi-clone

A shell script to clone a booted disk.
BSD 3-Clause "New" or "Revised" License
2.56k stars 333 forks source link

Problem cloning Pi2 with external HD #18

Open scargill opened 9 years ago

scargill commented 9 years ago

So I have a Pi2 with external usb hd - all working perfectly - I decided to give this a try to back it up as the hard drive really is overkill.

I put a usb SD 16gig in - and it reported as sdb1. I ran the script

sudo rpi-clone -f sdb1

and it noted the formatting wasn't right and offered to fix that by initialising the drive- I agreed. It then complained it could not stat /dev/sdb12 - no such file or directory. Not sure what sdb12 is supposed to be.

it said the device apparently does not exist - did I specify it correctly?

Anyway, it THEN went on to say that /dev/sdb1 is initialised and resized - and gave the right size....

But then i got an attempt to read a block form the filesystem resulting in short read while trying to open /dev/mmcblk0p2 - could not find valid filesystem (the hard disk is EXT4 if that helps)....

It then asked me for a label..... and I gave it "Backup1" without the quotes.

At that point it said no such file or directory while trying ot open /dev/sdb12

It asked me if I wanted to proceed with the clone - I said yes, and... mount: special device /dev/sdb12 does not exist... and it bombed out.

Any thoughts other than cutting my wrists?

bshure commented 9 years ago

I run without the "1" on sdb1

Here's my cron entry: umount /dev/sdb1;umount /dev/sdb2;printf 'yes\n\n' | /home/pi/bin/rpi-clone sdb >> /home/pi/logs/backup.log 2>&1