@@ -4,7 +4,7 @@ a running Raspberry Pi file system to a destination SD card 'sdN' plugged
4
4
into a Pi USB port (via a USB card reader).
5
5
I use it to maintain backups of several Pi SD cards I have and the destination
6
6
backup SD cards can be a different size (smaller or larger) than the booted
7
- SD card. rpi-clone works on Raspberry Pi disk which have a VFAT boot
7
+ SD card. rpi-clone works on Raspberry Pi disks which have a VFAT boot
8
8
partition 1 and a Linux root partition 2. Tested on Raspbian but should
9
9
work on other distributions which have this same two partition structure.
10
10
@@ -46,24 +46,17 @@ before unmounting the cloned to SD card. This is so you can go look at
46
46
the clone results or make any custom final adjustments if needed. For example,
47
47
I have a couple of Raspberry Pis and I use one as a master. When I clone for
48
48
the benefit of the second Pi, I do a "cd /mnt/clone/etc" and fix the files
49
- needed to customize for the second Pi. This can be as simple as loading
50
- new hosts and network interfaces file. Just keep all the files on the master:
49
+ needed to customize for the second Pi (well, actually I do that with a
50
+ script that takes my desired Pi hostname as an argument). Either way, you
51
+ typically might need to change at least these files:
51
52
52
- /etc/hostname # hostname is trivial, so don't really need the
53
- /etc/hostname.rpi0 # multiple copies - but I'll just list it here.
54
- /etc/hostname.rpi1
55
- /etc/hosts
56
- /etc/hosts.rpi0
57
- /etc/hosts.rpi1
58
- /etc/network/interfaces
59
- /etc/network/interfaces.rpi0
60
- /etc/network/interfaces.rpi1
53
+ /etc/hostname # I have one of rpi0, rpi0, ...
54
+ /etc/hosts # The localhost line should probably be changed
55
+ /etc/network/interfaces # If you need to set up a static IP or alias
61
56
62
- In my case, rpi0 is my master so I really don't need the .rpi0 copies, but
63
- I keep them just in case. Then when cloning to update for rpi1, I just
64
- copy the .rpi1 files over before letting rpi-clone umount everything.
65
- But don't forget to cd out of the /mnt/clone tree before telling rpi-clone
66
- to unmount.
57
+ If you cd into the /mnt/clone/tree to make some of these customizations
58
+ or just to look around, don't forget to cd out of the /mnt/clone tree
59
+ before telling rpi-clone to unmount.
67
60
68
61
rpi-clone is on github, to get it and install it to /usr/local/sbin:
69
62
Go to https://github.com/billw2/rpi-clone and download the zip file:
0 commit comments