Beranda » » Cara Backup dan Restore Firmware OpenWrt

Cara Backup dan Restore Firmware OpenWrt

Oleh Admin A pada Monday, November 4, 2013 | 5:21 PM

Ketika kita melakukan setting, ada kalanya terjadi gagal setting dan router tidak bisa diakses lagi. Maka kita harus melakukan flash ulang router lagi atau menggunakan command "firsboot" dari Putty dengan mode Telnet. Cara lain untuk menyelamatkan firmware OpenWrt yang telah terinstall berbagai paket yang dibutuhkan, seperti paket USB storage, LuCi web interface, dan lain-lain adalah dengan melakukan backup firmware OpenWrt dari router aktif.

Tapi bagaimana cara melakukannya??

Cek dimana firmware OpenWrt berada dengan menggunakan command "cat /proc/mtd" menggunakan Putty.

root@openwrt:~$ cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00020000 00020000 "CFE"
mtd1: 000dff00 00020000 "kernel"
mtd2: 00ee0000 00020000 "rootfs"
mtd3: 00a20000 00020000 "rootfs_data"
mtd4: 00020000 00020000 "nvram"
mtd5: 00fc0000 00020000 "firmware"

Terlihat bahwa firmware berada di mtd5 (tidak semua router pada mtd5, silahkan sesuaikan dengan tampilan dari router yang dimiliki). Sedangkan mtd5 berada di direktori "/dev/" pada sistem OpenWrt.
Maka untuk melakukan backup firmware OpenWrt dengan menggunakan command "cat /dev/mtd5 > /tmp/factory.bin"


root@openwrt:~$ cat /dev/mtd5 > /tmp/backup_openwrt.bin

Langkah di atas adalah untuk membuat backup full firmware ke file "backup_openwrt.bin" dan disimpan ke folder "/tmp" dan simpanlah file backup firmware tersebut baik-baik di PC.

Lalu, untuk restore (flash ulang) apa yang harus dilakukan?

Restore atau flash ulang firmware OpenWrt ke router bisa dilakukan melalui web interface atau menggunakan winscp untuk copy firmware ke "/tmp" dan menggunakan perintah berikut dengan Putty :

root@openwrt:~$ cd /tmp && mtd -e firmware -r write backup_openwrt.bin firmware

2 comments:

  1. Saya setelah ganti pasword dan sukses tp setelah itu tiap kali buka menu selalu minta login.
    Tolong di bantu ya gan ?

    ReplyDelete
  2. Do you realize there is a 12 word sentence you can say to your partner... that will trigger deep feelings of love and impulsive attraction for you deep within his heart?

    Because deep inside these 12 words is a "secret signal" that triggers a man's instinct to love, adore and care for you with all his heart...

    12 Words Will Trigger A Man's Love Instinct

    This instinct is so built-in to a man's mind that it will make him work better than ever before to love and admire you.

    In fact, triggering this mighty instinct is absolutely binding to getting the best possible relationship with your man that the instance you send your man one of the "Secret Signals"...

    ...You will instantly find him expose his soul and mind for you in such a way he haven't experienced before and he will distinguish you as the one and only woman in the galaxy who has ever truly tempted him.

    ReplyDelete