SmallNetBuilder Forums
Go Back   SmallNetBuilder Forums > Wireless Networking > ASUS Wireless > Asuswrt-Merlin

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-21-2013, 05:19 AM
Fab30 Fab30 is offline
Member
 
Join Date: Jul 2012
Posts: 51
Thanks: 5
Thanked 0 Times in 0 Posts
Fab30 is just starting out
Default Swap,fstab

Hi, please, how can i configure autostart swap file on SD card?
is on /dev/sdb1. THX
Reply With Quote
  #2  
Old 01-21-2013, 09:00 AM
joegreat's Avatar
joegreat joegreat is offline
Very Senior Member
 
Join Date: Jan 2013
Location: Vienna, Austria
Posts: 458
Thanks: 572
Thanked 123 Times in 101 Posts
joegreat is just starting out
Exclamation How to setup a swap partition?

Quote:
Originally Posted by Fab30 View Post
Hi, please, how can i configure autostart swap file on SD card?
is on /dev/sdb1. THX
Hi,

First: SDcard for swap is not a good idea - search the forum why this is so!

Secound: As your router has a kind of Linux installed you can use the standard Linux commands for the job!
You need to partition your USB device with fdisk command to have a swap partition, then you can use swapon command to enable the swap.

With Merlin's firmware you can enable it automatically via user-script (e.g. pre-mount wloud be a good place).

So: Some searching in the forum and Google will give you all you need!
And: You will learn real(!) Linux.

With kind regards
Joe
Reply With Quote
  #3  
Old 07-12-2014, 01:39 AM
brusyev brusyev is offline
New Member
 
Join Date: Jul 2013
Posts: 24
Thanks: 1
Thanked 0 Times in 0 Posts
brusyev is just starting out
Default

I am in the same boat where my router constantly runs out of resources when I sync files to my drive attached to RTN66U. I also have a class 10 sd card installed inside the router. I searched the forum and did not find any posts to why it is bad to use it as swap...I tried to implement pre-mount scipt and was not able to get it to work....I do have my SD card formated as ext2...

Last edited by brusyev; 07-12-2014 at 01:42 AM.
Reply With Quote
  #4  
Old 07-16-2014, 02:58 PM
lwizard lwizard is offline
Member
 
Join Date: Jan 2014
Posts: 70
Thanks: 2
Thanked 2 Times in 2 Posts
lwizard is just starting out
Default

Generally it's a bed idea because flash memories have a limited RW life. So a SWAP partition on them makes their life much shorter.
But if the memory is cheap I think you could consider giving a try (but I don't know whether a read failure on SWAP could bring a crash in linux or not).

Also if you set a swap partition in linux you must avoid formatting it. Another option is to format it and use a swap file.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -4. The time now is 05:42 PM.


Top 10 Stats
Top Posters* Top Thanked
RMerlin  331
sm00thpapa  226
stevech  190
azazel1024  148
KGB7  133
htismaqe  89
philmiami  81
jim769  76
AcostaJA  68
ColinTaylor  58
RMerlin  5077
stevech  315
ryzhov_al  249
TeHashX  209
RogerSC  187
L&LD  186
joegreat  123
jlake  121
sinshiva  111
sfx2000  111
Most Viewed Threads* Hottest Threads*
Old ASUS RT-N66U...  23445
Old NETGEAR...  12896
Old 3.0.0.4.376.1...  6700
Old Switched...  6574
Old NEW RT-AC68R...  6325
Old ASUS...  5763
Old ASUS RTAC68U...  3447
Old Netgear...  3218
Old N66U daily...  2824
Old ASUS...  2608
Old ASUS RT-N66U...  169
Old NETGEAR...  161
Old NEW RT-AC68R...  56
Old Switched...  54
Old ASUS...  51
Old N66U daily...  47
Old ASUS RTAC68U...  41
Old Which router...  41
Old Netgear...  41
Old TP-Link...  38


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2006-2014 Pudai LLC All Rights Reserved.