rpi-clone
rpi-clone copied to clipboard
clone - first attempt failed.
First go - assuming root user which a typical pi user would never be....
pi@pi3b:~:23:07[1]> rpi-clone sda rpi-clone needs to be run as root.
Then I ran as sudo - several questions asked - did I miss the YES overrides? I did everything as requested but the whole thing was over in a minute - no way it has cloned my rpi installation...
pi@pi3b:~:23:11[1]> sudo rpi-clone sda
Destination disk partition /dev/sda2 is mounted on /media/pi/rootfs. The clone cannot proceed unless it is unmounted. Do you want to unmount /media/pi/rootfs? (yes/no): yes
Destination disk partition /dev/sda1 is mounted on /media/pi/boot. The clone cannot proceed unless it is unmounted. Do you want to unmount /media/pi/boot? (yes/no): yes
Booted disk: mmcblk0 16.0GB Destination disk: sda 15.9GB
Part Size FS Label Part Size FS Label 1 /boot 45.1MB fat16 -- 1 45.1MB fat16 -- 2 root 16.0GB ext4 rootfs 2 15.9GB ext4 rootfs
== SYNC mmcblk0 file systems to sda == /boot (23.0MB used) : SYNC to sda1 (45.1MB size) / (5.0GB used) : SYNC to sda2 (15.9GB size)
Run setup script : no Verbose mode : no -----------------------:
Ok to proceed with the clone? (yes/no): yes
Syncing file systems (can take a long time) Syncing mounted partitions: Mounting /dev/sda2 on /mnt/clone => rsync // /mnt/clone with-root-excludes ... Mounting /dev/sda1 on /mnt/clone/boot => rsync /boot/ /mnt/clone/boot ...
Editing /mnt/clone/boot/cmdline.txt PARTUUID to use 310a7696 Editing /mnt/clone/etc/fstab PARTUUID to use 310a7696
Done with clone to /dev/sda Start - 23:12:32 End - 23:13:49 Elapsed Time - 1:17
Cloned partitions are mounted on /mnt/clone for inspection or customizing.
Hit Enter when ready to unmount the /dev/sda partitions ... unmounting /mnt/clone/boot unmounting /mnt/clone
pi@pi3b:~:23:14[0]> pi@pi3b:~:23:14[0]> pi@pi3b:~:23:15[0]> It came back within a minute, Bill I have high hoppes for this - can you help? RPI3 B+ using sd and another sd for backup.
Pete
Are you able to clarify, Bill, it would be very much appreciated. After the initial sudo request I was asked questions. For simplicity can these default to yes and as the whole thing took a couple of minutes or less, did the update work because I used an SD with very recent SD BACKUP on it, or is there likely a problem?
Answered my own question. -U unattended assuming a repeat backup works, also -f if the first time. All works but would be better if the warning about how "the cloning cannot proceed unless /dev/sda1 and 2 are unmounted" was followed by a note to say they are unmounted. It does say that at the end after all is finished but presumably they aer unmounted earlier on?