Site Tools


backups

This is an old revision of the document!


Why backups are so important ?

Thanks to protected area of onboard Flash Memory (MMC) and to nvflash protocol, it's virtually impossible to brick your AC100. Whatever you do, you would be able to restore it to its initial state providing that:

  • you know how to do it
  • you have backups of your working AC100 partitions under your hand

If you don't know how to do it, it's not that killer, you could always find someone who knows lurking around on the #ac100 IRC channel.

If you don't have backups, there is little we can help to restore a dead AC100. Well, people have their own backups, but:

  • There are several ac100 models in the field and backups contents are not all identical
  • It's not clear how legal it would be to distribute backup images. This is why you won't find any official site to offer ac100 partition images on the web.

How to backup your AC100

First install nvflash on your PC.

The manual way

Your AC100 MMC contains several partitions. The basic commands to backup them are:

# power up your AC100 in recovery mode (CTRL+ESC)
$ nvflash --bl /usr/lib/nvflash/fastboot.bin --sync
$ nvflash -r --getpartitiontable partitiontable.txt
$ nvflash -r --read 2 part02.img
$ nvflash -r --read 3 part03.img
$ 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

Create the BCT file from your part2 image:

dd if=part2.img of=ac100.bct bs=4080 count=1

You will need later in case you need to do a full restore of your AC100.

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:

$ dos2unix partitiontable.txt
$ ./parttable_to_cfg partitiontable.txt > ac100.cfg

The automated way

TODO

How to restore your AC100

TODO

backups.1312981894.txt.gz · Last modified: 2011/08/10 15:11 by ggrandou