Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
project:single_boards [2016/03/20 11:36] over23 |
project:single_boards [2016/05/25 23:14] over23 [example how to copy finished backup to Labka Shell] |
||
---|---|---|---|
Line 27: | Line 27: | ||
SemioTex:Desktop pavouk$ sudo dd bs=1m if=~/Desktop/Raspbian_For_BPI_M1_V4.0.img of=/dev/disk3 | SemioTex:Desktop pavouk$ sudo dd bs=1m if=~/Desktop/Raspbian_For_BPI_M1_V4.0.img of=/dev/disk3 | ||
- | </code> | ||
- | |||
* u can check progress with CTRL+T [SIGINFO] | * u can check progress with CTRL+T [SIGINFO] | ||
==== Configure Mac to be able to directly conenct to Picka over ETH through trunderbolt ==== | ==== Configure Mac to be able to directly conenct to Picka over ETH through trunderbolt ==== | ||
Line 68: | Line 66: | ||
</code> | </code> | ||
+ | ===== MacOSX Backup & restore Banana PI SD card ===== | ||
+ | * https://smittytone.wordpress.com/2013/09/06/back-up-a-raspberry-pi-sd-card-using-a-mac/ | ||
+ | |||
+ | ====== Backup ====== | ||
+ | |||
+ | <code> | ||
+ | # to list partitions | ||
+ | |||
+ | diskutil list | ||
+ | |||
+ | #/dev/disk4 (internal, physical): | ||
+ | # #: TYPE NAME SIZE IDENTIFIER | ||
+ | # 0: FDisk_partition_scheme *7.9 GB disk4 | ||
+ | # 1: Windows_FAT_32 boot 58.7 MB disk4s1 | ||
+ | # 2: Linux 7.9 GB disk4s2 | ||
+ | |||
+ | #in our case it was /dev/disk4 | ||
+ | #CTRL+T as SIGINFO could be used to check progress | ||
+ | |||
+ | sudo dd if=/dev/disk4 bs=1m | gzip > ~/1_Labka/banana_picka_25.5.2016.img.gz | ||
+ | </code> | ||
+ | ====== example how to copy backup by scp ====== | ||
+ | ======= copy to remote host ======= | ||
+ | |||
+ | <code>scp ~/1_Labka/banana_picka_25.5.2016.img.gz user@remotehost:/home/share/Picky_Backup/</code> | ||
+ | |||
+ | ======= copy to localhost ======= | ||
+ | <code>scp your_username@remotehost:/home/share/Picky_Backup/banana_picka_25.5.2016.img.gz /some/local/directory</code> | ||
+ | |||
+ | |||
+ | |||
+ | ====== Restore ====== | ||
+ | * **remember, SD card should be unmounted** | ||
+ | <code> | ||
+ | # first check where SD card is visible, but not mounted by | ||
+ | diskutil list | ||
+ | # let it be again /dev/disk4 | ||
+ | gzip -dc ~/1_Labka/banana_picka_25.5.2016.img.gz | sudo dd of=/dev/disk4 bs=1m | ||
+ | </code> | ||
+ | |||
+ | |||
+ | |||
+ | ===== remove password to ssh ===== | ||
https://wiki.archlinux.org/index.php/Banana_Pi#Network | https://wiki.archlinux.org/index.php/Banana_Pi#Network | ||
* ssh root@IP | * ssh root@IP | ||
* password is bananapi | * password is bananapi | ||
- | ===== remove password to ssh ===== | + | |
mkdir ~/.ssh | mkdir ~/.ssh | ||
chmod 700 ~/.ssh | chmod 700 ~/.ssh |