Friday, November 22, 2013

Cara Exroot dengan Flashdisk di Open Wrt

CARA EXROOT FLASH UNTUK OPENWRT

alternative router with openwrt

 pada langkah ini saya anggap                      # in this step i mean your task with mr3420
anda telah berhasil mengupgrade router        # have been upgrade your router
mr 3420 dengan open wrt jika belum           # with open wrt, if not yet
silahkan baca :                                            # please read this step :

cara upgrade tplink ke openwrt

setelah berhasil mengganti                           # until you success change
firmware TP Link dengan open wrt             # original firmware with openwrt
maka langkah selanjutnya adalah                 # than next step is
membuat exroot di openwrt                        # made exroot for your openwrt
exroot dimaksudkan untuk                         # exroot usualy for
memberikan ruang yang luas pada              # upgradable space for the put file
media penyimpanan openwrt                      # in media drive of openwrt
jika anda tak membuat exroot                     # if you don't create the exroot
maka space rom dan ram                            # than internal space rom and ram
di internal TP LINK open wrt                     # in internal TP LINK
tidak akan cukup untuk                               # not have space
menambahkan aplikasi lainnya.                    # for save and add file
maka caranya adalah anda                          # than your solution
menambahkan flashdisk untuk                     # you must add with flash disk
dijadikan exroot. berhubung                        # for create the exroot, because
port usb di router hanya memiliki                 # your router only have
satu port maka anda memerlukan                # one usb port, than you need
usb hub untuk menambah port usb             #usb hub for extended your usb port
saya sarankan yang memiliki minimal          # I recomended you for used minimal
8 port usb karena nantinya anda akan        # with 8 port usb hub, because in next step
memerlukan port port usb ini untuk :          # maybe you need for upgradable your router
usb modem, usb cam, usb audio,               # and used with Usb Modem, Usb Cam, Usb Audio
arduino, usb bluetooth dan banyak            # Usb arduino, Usb Bluetooth and much more
lagi usb interface yang suport dengan         # some interface if suport
openwrt.                                                  # with openwrt
                                                              

pilihan usb hub yang suport open wrt        # you can choice usb hub like this for your open wrt :
dapat anda beli disini :

dan usb flash disk yang bagus dan
suport open wrt dapat anda beli di sini      # you can choice UFD  like this for your open wrt :

setelah anda miliki ke 2 benda                       # if you have 2 accesories like that
tersebut marilah kita mulai membuat exroot    # than, we start begin for create the exroot
partisi UFD menjadi 3 bagian                         # made your partition for your UFD
ntfs, ext2, swaf dengan menggunakan aplikasi # ntfs, ext2, swaf with app name is
mini tools partition wizard downlod di sini :      # mini tools partition wizard, you can download here :

http://download.cnet.com/MiniTool-Partition-Wizard-Home-Edition/3000-2094_4-10962200.html
caranya :                                                                 # use
install aplikasi mini tools partition wizard                   # intall mini tools partition wizard in win os 
pasang UFD di pc anda                                           # put your UFD in usb port in your PC
buka aplikasi mini tools partition wizard                    # open up aplication minitool partition wizard
klik disk 2 (UFD)                                                    # select disk 2 your (UFD)
pilih create, pilih primary dan ntfs                              # select create,select primary and ntfs
tentukan kapasitas = 14 gb (+- 75% dari kapasitas) # colocation capacity = 14 gb (+- 75 % of your UFD)
pilih create lagi, pilih primary dan ext2                      # than create again, select primary and ext2
tentukan kapasitas = 1,5 gb (untuk sistem)               #colocation capacity = 1,5 gb (used for system opwrt)
pilih create lagi, pilih primary dan swaf                     # than create again, select primary and swaf
tentukan kapasitas=512 mb (atau habiskan sisa UFD)# colocation = 512 mb (or used all unalocated)
digunakan untuk swaf sistem linux                             # for swaf system linux

setelah dibuat 3 partisi : ntfs, ext2, swaf                     # after you made 3 partition like : ntfs, ext2, swaf
selanjutnya klik apply untuk melakukan proses partisi # you continued with apply for executed partitioned
tunggu hingga selesai, maka partisi siap digunakan      # wait and see until your progress 100 %, if finish
                                                                                 # you can use your ufd in opwrt

masukan UFD ke port no 8 USB hub                        # put your UFD in usb port no 8 in usb hub
masukan usb hub ke port router                                 # put your usb hub conection in usb port in router
boot up router                                                           # boot up the router
login ke open wrt melalui web browser                      # login in to open wrt in web browser
http://192.168.1.1                                                     # http://192.168.1.1
login..                                                                       # login
buka putty                                                                # open putty application
masukan user name :                                                 # input user name :
masukan password                                                   # input password
pada bagian root@OpenWrt:~#                                # in part of  root@OpenWrt:~#
ketik :                                                                      # typing :

root@OpenWrt:~# cd /dev
root@OpenWrt:~# dev/ ls

jika anda melihat ada file :                                   # if you see
sda
sda1
sda2
sda3

maka router anda berhasil mendeteksi flashdisk    # than your router succes detect UFD
lakukan sbb :                                                       # next step :

root@OpenWrt:~# dev/ vi /etc/config/fstab

anda akan melihat baris teks seperti ini :              # you can see

config global 'automount'
option from_fstab '1'
option anon_mount '1'


config global 'autoswap'
option from_fstab '1'
option 'anon_swap' '0'


config 'mount'
option fstype 'ext4'
option options 'rw,sync'
option enabled '0'
option device '/dev/sdb2'
option target '/mnt/sdb2'


config 'swap'
option device '/dev/sdb1'
option enabled '0'


maka anda harus mengedit file tersebut                        # you must edit that file
caranya : tekan tombol insert di keyboard pc               # push insert buton in your keypad
gunakan tombol navigasi keyboard panah kiri               # use navigation buton,
kanan, atas bawah untuk mengarahkan                          # up down left right
gunakan tombol del dan backspace untuk menghapus    # use del and backspace for deleted character

edit file menjadi :                                                          # edited this file like  this

config global 'automount'
option from_fstab '1'
option anon_mount '1'


config global 'autoswap'
option from_fstab '1'
option 'anon_swap' '0'


config 'mount'
option fstype 'ext2'
option options 'rw,sync'
option enabled '1'
option device '/dev/sda2'
option target '/mnt/sda2'


config 'swap'
option device '/dev/sda3'
option enabled '1'


tekan tombol ctrl + c
lalu lanjut tombol shift + :
:wq            (write quit)
 untuk menyimpan
lanjut


root@OpenWrt:~#

jalankan fstab                                                 # runing fsatab

root@OpenWrt:~# /etc/init.d/fstab enable
root@OpenWrt:~# /etc/init.d/fstab start

copy sistem dari router ke flashdisk                   # copying your router system to your UFD
                
copy paste perintah di bawah ini ke root@OpenWrt:~#              # copy paste this scrift

tar -C /overlay -cvf - . | tar -C /mnt/sda2 -xf -
mkdir -p /tmp/cproot
mount --bind / /tmp/cproot
tar -C /tmp/cproot -cvf - . | tar -C /mnt/sda2 -xf -
umount /tmp/cproot




jika berhasil maka ada proses pengkopian sistem ke flashdisk         # if succes

 root@OpenWrt:~#

lanjut menambahkan perintah ini di fstab                                        # continus with editing  fstab     again

 root@OpenWrt:~# vi /etc/config/fstab

config global 'automount'
option from_fstab '1'
option anon_mount '1'


config global 'autoswap'
option from_fstab '1'
option 'anon_swap' '0'


config 'mount'
option fstype 'ext2'
option options 'rw,sync'
option enabled '1'
option device '/dev/sda2'
option target '/mnt/sda2'

option is_rootfs '1'

config 'swap'
option device '/dev/sda3'
option enabled '1'




tekan tombol ctrl + c                              # push buton ctrl + c
lalu lanjut tombol shift + :                        # push shift buton + :
:wq            (write quit)                           # :wq  
 
root@OpenWrt:~#
nyalakan ulang router
root@OpenWrt:~# reboot

buka router di web http://192.168.1.1            # open your router in web http://192.168.1.1
buka system mount point menu                       # open menu in system mount point
jika pada bagian overlay kapasitasnya menjadi 1,5 gb# if you see in part of overlay add with 1,5 capacity
maka exroot berhasil                                                  # your exroot is succesfull
jika belum, bukalah menu mount point                         # if not yet, open menu mount point in opwrt
pilih pada sda2 kemudian edit                                     # select in sda2 option
pilih pada bagian advanced beri tanda check               # select and check part of advanced
pada is root fs, simpan                                                # in teks: is root fs, checked, than save your change
reboot ulang router                                                     # reboot up your router
jika berhasil maka anda bisa melihat                             # if succes you can see your menu router
pada bagian overlays menjadi bertambah                      # in part of mount point overlays capacity added
disini menjadi 1,5 gb                                                     # with 1,5 gb
selesai                                                                          # done, your router ready to be add aplication

selanjutnya:                                                                  # wait for next page
menambah aplikasi di router klik disini:                          # add aplication for openwrt router