0% found this document useful (0 votes)
336 views9 pages

USB & Swap With ExtRoot

The document provides instructions for configuring a USB hard drive to add swap space and extend the root filesystem on a TL-MR3420 router running OpenWRT. It details installing required packages, partitioning the hard drive, editing configuration files, mounting the partitions, and enabling hard drive idle spin-down.

Uploaded by

Basuki Ariawan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
336 views9 pages

USB & Swap With ExtRoot

The document provides instructions for configuring a USB hard drive to add swap space and extend the root filesystem on a TL-MR3420 router running OpenWRT. It details installing required packages, partitioning the hard drive, editing configuration files, mounting the partitions, and enabling hard drive idle spin-down.

Uploaded by

Basuki Ariawan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

USB & Swap with ExtRoot

1 of 9

MAIN MENU
Home
News -MUST Read!!

http://www.klseet.com/index.php/tl-mr3420-ver12/usb-swap-extroot

USB & Swap with ExtRoot


Friday, 16 March 2012 00:57

TL-MR3420 Ver1.2 [ USB & Swap support with ExtRoot ]

Travel & Entertainment

Reference, thanks & credits go to the following

TM-UNIFI RELATED

http://wiki.openwrt.org/doc/howto/extroot
https://forum.openwrt.org/viewtopic.php?pid=123070#p123070

About TM-UniFi
Replacement Option Summary
My Setup

[Optional] Setup as Standalone Device

MikroTik
TP-Link
ASUS

I setup the device as standalone unit as follows, with main gateway pointing to my TL-WR1043ND [192.168.1.1], which is also running
OpenWRT

DD-WRT for UniFi

ISP & TELCO


SingTel Fibre

OPENWRT RELATED
About OpenWrt
TL-WR1043ND Ver1.8 [UniFi Ready!]
TL-WR941ND Ver3.2 [UniFi Ready!]
TL-MR3420 Ver1.2 [UniFi -Vlan.500]
USB, Swap, ExtRoot
Samba, FTP, Transmission
MiniDLNA
UniFi Setup
Network Printer via USB

TL-WR740N Ver4.2 [UniFi -Vlan.500]


RT-N13U-B1 [UniFi Ready!]
RT-N10+ C1 [UniFi Ready!]
WHR-G300N-V1 [UniFi Ready!]
DIR-615-G1 [UniFi Ready!]
TL-WDR4300-V1.3 [UniFi Ready!]

DD-WRT RELATED
About DD-WRT
Setup Walk Through
TP-Link
Buffalo
ASUS

TOMATO RELATED
About Tomato
Buffalo WHR-HP-G54

Disconnect PC from the device, connect and attach the device to existing LAN switch, open browser and type the device's new IP

GADGETS
BeatBox BlueTooth Mini Speaker
ASUS WL-330N3G
CANSONIC-CDV600

I disabled some of the following services

MeLE A100
In-Car DVR (Dual Camera)
TP-Link Portable Routers
Mobile Phone

06/05/2013 21:16

USB & Swap with ExtRoot

2 of 9

http://www.klseet.com/index.php/tl-mr3420-ver12/usb-swap-extroot

D-Link DNS-320 [NAS]


HDMI Switch
HDMI Splitter
HDMI Extender
Universal Remote Control - Learn &
Store Permanently
OpenBox S9 HD
DreamBox DM500-S
Laptop Universal Charger (90W)

GPS
Garmin
China Made GPS

INFORMATION
SoPhone Vs iPhone4 [HK eZone
20Jan2011]
TP-Link PA-211 HomePlug AV (3rd
Generation) [by HK eZone 20Jan2011]
HomePlug - 9 Products Comparison
(Chinese)

Also named the device

P1 => PUI-1 ?!
P1 Fiber - What a tough journey .....
P1 D-Link DVG-N5412SP-A1
P1 Router Replacement
P1 Fiber - Terminate!

Reboot the device after the above setup

Prepare USB2 External 2.5" HDD

I use Minitool Home Free to create 2 partition as follows on an USB2 external 2.5" SATA HDD

06/05/2013 21:16

USB & Swap with ExtRoot

3 of 9

http://www.klseet.com/index.php/tl-mr3420-ver12/usb-swap-extroot

Partition 1 : about 1GB for Linux Swap


Partition 2 : all remaining size for data on ext3 filesystem
(Note: Refer HERE for more information on HDD partitioning)

Setup USB, Swap and ExtRoot

To install package, go to " System --> Software tab "


Click Update lists

Once the list updated, type " kmod-usb-storage ", click Find package
Click on Available tab, click Install the following package

Continue to finish install the following packages

06/05/2013 21:16

USB & Swap with ExtRoot

4 of 9

http://www.klseet.com/index.php/tl-mr3420-ver12/usb-swap-extroot

Plug-in the USB2 HDD now


Go to " System --> Reboot tab "
Click Perform reboot

After reboot, launch PuTTY, type the following command lines, then reboot the device again

After reboot, launch WinSCP, go to " /etc/config " folder


Locate & edit the file fstab

06/05/2013 21:16

USB & Swap with ExtRoot

5 of 9

http://www.klseet.com/index.php/tl-mr3420-ver12/usb-swap-extroot

Change to the following, take note the partition numbering:


/dev/sda1 = Partition 1 (LinuxSwap)
/dev/sda2 = Partition 2 (ext3 for data)

Back to LuCI, reboot the device

After re-boot, go to the following section, notice the free space now, YEAH !

06/05/2013 21:16

USB & Swap with ExtRoot

6 of 9

http://www.klseet.com/index.php/tl-mr3420-ver12/usb-swap-extroot

Go to check the Mount Points, the ext3 is mounted correctly to /overlay, however in my case, the swap seem not working, not sure why
....
So I click Edit it

Enable the swap as follows

Go to Startup, ensure the fstab is Enabled

06/05/2013 21:16

USB & Swap with ExtRoot

7 of 9

http://www.klseet.com/index.php/tl-mr3420-ver12/usb-swap-extroot

Reboot the device, again ....

Wah-la, all mounted nicely !

06/05/2013 21:16

USB & Swap with ExtRoot

8 of 9

http://www.klseet.com/index.php/tl-mr3420-ver12/usb-swap-extroot

Launch PuTTY to re-confirm again

To spin down the HDD after some time of idling


Install the luci-app-hd-idle

Noticed there is a new tab under Services, setup the HDD idling accordingly.

Finally, USB HDD + SWAP + ExtRoot all done

06/05/2013 21:16

USB & Swap with ExtRoot

9 of 9

http://www.klseet.com/index.php/tl-mr3420-ver12/usb-swap-extroot

06/05/2013 21:16

You might also like