Site Tools


Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
backups

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
backups [2011/07/29 01:44] ggrandoubackups [2013/02/03 15:14] (current) – [How to backup your AC100] psl
Line 18: Line 18:
 === The manual way === === The manual way ===
  
-Your AC100 MMC contains several [[AC100_std_partitions|partitions]]. The basic commands to backup them are: +Your AC100 MMC contains several [[AC100_std_partitions|partitions]]. The manual way to backup them are: 
- +  - Connect a USB-cable between your ac100 (mini-usb) to your PC. 
-<code> +  - Enter the recovery mode by keep pressing CTRL+ESC and power-up the AC100. The AC100 will turn on (check LEDbut the display will remain dark. 
-# power up your AC100 in recovery mode (CTRL+ESC)+  - Start nvflash and load the bootloader to get access to the AC100. This has to be done only once, but everytime, after you (re)enter the recovery mode. <code>
 $ nvflash --bl /usr/lib/nvflash/fastboot.bin --sync $ nvflash --bl /usr/lib/nvflash/fastboot.bin --sync
-$ nvflash -r --getpartitiontable partitiontable.txt +</code> **Note:** fastboot.bin might be in a different location depending on your local installation of nvflash 
-nvflash -r --read 2 part02.img +  Download the present partition table of the internal flash-memory <code> 
-$ nvflash ---read 3 part03.img +$ nvflash -r --getpartitiontable partitiontable.txt 
-$ nvflash -r --read 4 part04.img +
-$ nvflash -r --read 5 part05.img +
-$ nvflash -r --read 6 part06.img +
-$ nvflash -r --read 7 part07.img +
-$ nvflash -r --read 8 part08.img +
-$ nvflash -r --read 9 part09.img +
-$ nvflash -r --read 10 part10.img +
-$ nvflash -r --read 11 part11.img +
-$ nvflash -r --read 12 part12.img +
-$ nvflash -r --read 13 part13.img+
 </code> </code>
- +  - Your number of partitions might be different to the below example (e.g., because you modified the partition table before already). Check the content of partitiontable.txt to get the number of partitions on your device. <code> 
-Create the BCT file from your part2 image: +more partitiontable.txt 
-<code> +
-dd if=part2.img of=ac100.bct bs=4080 count=1+
 </code> </code>
-You will need later in case you need to do a full restore of your AC100.+  - Backup the partitions according to your partition table. For the standard configuration this would be:<code> 
 +$ for i in $(seq -w 2 14); do nvflash -r --read $i part$i.img; done
  
-Create the cfg file. This file is derived from the partitiontable.txt file. +</code> **Note:** There is no partition 1 and the backups have the full size of the real partitions (make sure you have enough disk space). 
-You can download this little script http://share.grandou.net/ac100/linux-on-ac100/parttable_to_cfg to do the conversion automatically: +  - Create the BCT file from your part02 image: <code> 
- +dd if=part02.img of=ac100.bct bs=4080 count=1 
-<code>+</code> You will need this later in case you need to do a full restore of your AC100. 
 +  - Optional: tar and gzip the image files, **deleting the original image files**<code>$ for i in $(seq -w 2 14); do tar cfvz part$i.tar.gz part$i.img; rm part$i.img; done</code> 
 +  - Create the cfg file. This file is derived from the partitiontable.txt file. You can download this little script http://share.grandou.net/ac100/linux-on-ac100/parttable_to_cfg to do the conversion automatically: <code>
 $ dos2unix partitiontable.txt $ dos2unix partitiontable.txt
 $ ./parttable_to_cfg partitiontable.txt > ac100.cfg $ ./parttable_to_cfg partitiontable.txt > ac100.cfg
 </code> </code>
  
 +**Troubleshooting:** If it seems like the nvflash program does not response anymore, or a nvflash error messages appear, you might have to reconnect. Simply turn of the AC100 (long-press power button). You should again receive a prompt from the console. Repeat step 2 and 3 and continue.  
 === The automated way === === The automated way ===
 +TODO
  
  
 ====== How to restore your AC100 ====== ====== How to restore your AC100 ======
 +
 +<code>
 +nvflash --bl /usr/lib/nvflash/fastboot.bin --sync
 +</code>
 +
 +<code>
 +nvflash -r --download <num> part<num>.img 
 +</code>
 +
 +The [[partitionlayout|Partition Layout]] might also be interesting to look at.
backups.1311896676.txt.gz · Last modified: 2011/07/29 01:44 by ggrandou