ASUS RT-N16 刷 tomato Shibby 後的nvram 快吃光光~~

高手大家好,
小弟入手ASUS RT-N16 刷 tomato Shibby 便用上順利,功能也超滿意。
只是在一定設定後,並沒有注意nvram 的空間
ASUS RT-N16 刷 tomato Shibby 後的nvram 快吃光光~~
儲存後(系統提醒會寫入nvram),但機器強制回覆成預設值...推測是超出容量造成。
經檢查,預設值的nvram佔的超高~~ 佔了21K!! 只剩下10K左右~~
設一下雙lan,雙wireless
ASUS RT-N16 刷 tomato Shibby 後的nvram 快吃光光~~

再設一下openvon client...
ASUS RT-N16 刷 tomato Shibby 後的nvram 快吃光光~~
快到零了,請問各位高手們,這樣是正常的嗎?
有什麼方法可以檢查預設值是用去那裡,有機會清一些掉嗎?
請高手們幫幫小弟,謝謝!!


----------------找到一篇文章(wiki)有提到-----
NVRAM near full?

This device currently has only 32K of NVRAM available due to limitations within the CFE coding, and some users have reported their routers rebooting and resetting themselves due to NVRAM becoming overfilled. Save the following as a startup script, it will remove initialized variables that are stored in NVRAM and currently have no value assigned to them (This cleared up nearly 5K of NVRAM in my experience).


#!/bin/bash
rm /opt/tmp/nvramshow
nvram show >> /opt/tmp/nvramshow
i=0
while read -r line; do
val=${line#*=}
var=${line%*=}
if [[ "$val" == "" ]]; then
nvram unset $var
fi
i=`expr $i + 1`
if [[ $i == 50 ]]; then
sleep 2
i=0
fi
done < /opt/tmp/nvramshow<br>exit 0

似乎可以清出近5K的容量...這又要請教高手們,要如何執行上列的動作,!!謝謝!!

2013-02-04 0:51 發佈
這是Shell Script,用在Linux系統上(Tomato就是基於Linux)
SSH登入路由器,用vi建立一個文件,把內容通通丟進去
然後執行此文件


.........如果看不懂我寫的話那就要去做點Linux系統指令的功課了
累積太多的Galgame玩不完啦~~~!
N16 的最大問題差不多就是 32KB NVRAM 的限制了, 特別是 Shibby AIO 功能又要包山包海....
樓主宜做個 NVRAM dump, 看看是被什麼吃掉了, 裝夠用的蕃茄版本就好, 刪掉示範用的設定, 再檢討有些設定是否真的需要.

小弟在沒使用 VLAN 版本下, 兩個 OpenVPN Server(那些 key 需要吃不少 NVRAM) 和 PPTP VPN Server 都全開了, 還有將近 10KB, 30% 的 NVRAM 可用空間.

我的RT-N16刷了Tomato RAF的1.28.9013,現在nvram只剩下3.xKB左右了,剛製成腳本試驗了一下(只把第一行的 #!/bin/bash 改成了 #!/bin/sh ),提示出錯,不知道該如何修改(原代碼適用於DD-WRT)


:/jffs # ./nvram.sh
rm: can't remove '/opt/tmp/nvramshow': No such file or directory
./nvram.sh: line 3: can't create /opt/tmp/nvramshow: nonexistent directory
./nvram.sh: line 16: can't open /opt/tmp/nvramshow: no such file
內文搜尋
X
評分
評分
複製連結
Mobile01提醒您
您目前瀏覽的是行動版網頁
是否切換到電腦版網頁呢?