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

Reply
 
Thread Tools Search this Thread Display Modes
  #11  
Old 10-02-2014, 07:29 AM
Brouno Brouno is offline
New Member
 
Join Date: May 2013
Posts: 25
Thanks: 3
Thanked 6 Times in 5 Posts
Brouno is just starting out
Default

Hello,

Just activated swap on my RT-N66U with your infos, thanks

I notice that I get error in the syslog ("e2fsck: Superblock invalid, trying backup blocks...") due to the filesystem check from pre-mount script on the swap partition at boot time :

To avoid that I change the pre-mount script by the following (compare the type of the current mounting partition against swap partitions on the system from "fdisk -l"), and log things accordingly in syslog

/jffs/scripts/pre-mount :
Code:
#!/bin/sh

if [ `fdisk -l | grep swap | awk '{print \$1}'` == $1 ]; then 
    # Swap partition detected, not running e2fsck
    logger -t $(basename $0) "started [$@], SWAP partition detected, not running e2fsck"
else
    # Swap partition not detected, running e2fsck
    logger -t $(basename $0) "started [$@], SWAP partition not detected, running e2fsck"
    grep -q $1 /proc/mounts || e2fsck -p $1 2>&1 | logger -t e2fsck
fi
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 12:07 PM.


Top 10 Stats
Top Posters* Top Thanked
RMerlin  430
azazel1024  129
john9527  97
L&LD  95
htismaqe  80
ColinTaylor  73
stevech  71
hggomes  58
sfx2000  55
Anzaia  49
RMerlin  6276
john9527  449
stevech  353
ryzhov_al  289
TeHashX  252
L&LD  242
RogerSC  202
sinshiva  146
sfx2000  136
joegreat  127
Most Viewed Threads* Hottest Threads*
Old Asuswrt-Merli...  50408
Old RT-AC68 -...  23099
Old Moderate Nat...  5041
Old ASUS RT-N66U...  4500
Old iOS 8.1...  4049
Old RT-AC87U -...  2533
Old WiFi...  2464
Old RT-AC68P QOS...  2044
Old AC68U,...  1848
Old Ruckus...  1738
Old Asuswrt-Merli...  226
Old RT-AC68 -...  137
Old Review: 24...  35
Old iOS 8.1...  33
Old Moderate Nat...  32
Old WiFi...  27
Old RT-AC87U -...  26
Old RT-AC68P QOS...  24
Old How to flash...  24
Old Linksys...  21


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