wikiroute

networking recipes

User Tools

Site Tools


mr3020_with_openwrt

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
Last revisionBoth sides next revision
mr3020_with_openwrt [2013/02/15 00:41] samermr3020_with_openwrt [2013/09/11 22:55] samer
Line 70: Line 70:
 </code>  </code> 
  
-On a linux machine, plug a usb external drive or a memory stick. Start by wiping existing partition table from USB memory stick. In order to identify the name of the corresponding device, take a look at ''/var/log/syslog''. Type''dd if=/dev/zero of=/dev/sda bs=64k count=1'' +On a linux machine, plug a usb external drive or a memory stick. Start by wiping existing partition table from USB memory stick. In order to identify the name of the corresponding device, take a look at ''/var/log/syslog''. Type ''dd if=/dev/zero of=/dev/sda bs=64k count=1'' 
  
 Partition USB memory stick with 64M swap, 256M root and rest as third partition Partition USB memory stick with 64M swap, 256M root and rest as third partition
Line 85: Line 85:
 p p
 2 2
 +
 +256M +256M
 n n
 p p
 3 3
 +
  
 w w
Line 112: Line 114:
  
 Create swap and filesystems, also set unique label in addition to automatically generated uuid Create swap and filesystems, also set unique label in addition to automatically generated uuid
 +
 <code> <code>
-mkswap /dev/sda1 -L ow_swap_`dd if=/dev/urandom bs=1k count=1|tr -dc "a-f0-9"|cut -c1-6` 
 mkfs.ext3 /dev/sda2 -L ow_root_`dd if=/dev/urandom bs=1k count=1|tr -dc "a-f0-9"|cut -c1-6` mkfs.ext3 /dev/sda2 -L ow_root_`dd if=/dev/urandom bs=1k count=1|tr -dc "a-f0-9"|cut -c1-6`
 mkfs.ext3 /dev/sda3 -L ow_data_`dd if=/dev/urandom bs=1k count=1|tr -dc "a-f0-9"|cut -c1-6` mkfs.ext3 /dev/sda3 -L ow_data_`dd if=/dev/urandom bs=1k count=1|tr -dc "a-f0-9"|cut -c1-6`
 +</code>
 +
 +Get back to your router and activate swap:
 +<code>
 +root@OpenWrt:~# mkswap /dev/sda1 -L ow_swap_`dd if=/dev/urandom bs=1k count=1|tr -dc "a-f0-9"|cut -c1-6`
 </code> </code>
  
mr3020_with_openwrt.txt · Last modified: 2014/01/11 05:28 by 127.0.0.1