OpenWrt Forum Archive

Topic: Changes won't commit and get lost after a reboot

The content of this topic has been archived on 25 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I managed to compile the whole OpenWRT SV trunk and installed it on my LaFonera unit. First time login through a telnet session and changed the password. Then, I was able to login through an SSH session while a telnet session has been disabled. However, once I reboot my LaFonera device, the whole process starts all over again where I have to use telnet to establish a login session without a password. If I install any ipkg package, the package will get install; however, upon a reboot, the package is gone, too. Looks like the whole thing resides in the RAM that won't survice a reboot. Also, asterisk doesn't seem to be able to create a /var/run/asterisk.ctl file as shown below:

BusyBox v1.8.2 (2008-02-11 11:07:37 EST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (bleeding edge, r10141) -------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@OpenWrt:~# rasterisk
Asterisk 1.4.17, Copyright (C) 1999 - 2007 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)
root@OpenWrt:~#

Is there a way to fix these problems?

Maybe you rebooted before the filesystem was initialized completely. Check your process list...

Thank you for your quick response. I will give that a try to let the system stay for 30 minutes after making changes and before issuing a reboot. Meanwhile, is there a way to instruct the system to update its FS? Also, I used this approach to flash openwrt to my Fonera without a problem. What concerns me is the variable called %{FREEMEMLO} as shown below:

load -r -b %{FREEMEMLO} openwrt-atheros-2.6-root.squashfs

How does Redboot know the variable?

BTW, which process should I be looking? I have the out put from a ps as shown below:

root@OpenWrt:/etc# ps
  PID  Uid        VSZ Stat Command
    1 root       1664 S   init       
    2 root            SW< [kthreadd]
    3 root            SW< [ksoftirqd/0]
    4 root            SW< [events/0]
    5 root            SW< [khelper]
   20 root            SW< [kblockd/0]
   40 root            SW  [pdflush]
   41 root            SW  [pdflush]
   42 root            SW< [kswapd0]
   43 root            SW< [aio/0]
   56 root            SW< [mtdblockd]
  197 root       1664 S   logger -s -p 6 -t  
  198 root       1664 S   init       
  242 root       1676 S   syslogd -C16 
  244 root       1656 S   klogd 
  252 root        752 S   /sbin/hotplug2 --override --persistent --max-children
  494 root       1660 S   crond -c /etc/crontabs 
  504 root       1660 S   httpd -p 80 -h /www -r OpenWrt 
  508 root       1664 S   telnetd -l /bin/login 
  519 nobody      888 S   /usr/sbin/dnsmasq -K -D -y -Z -b -E -s lan -S /lan/ -
  535 root       1676 S   /bin/ash --login 
  555 root       1172 S   /usr/sbin/dropbear -p 22 
  571 root       2596 S   /usr/sbin/asterisk -C /etc/asterisk/asterisk.conf 
  572 root       2596 S   /usr/sbin/asterisk -C /etc/asterisk/asterisk.conf 
  573 root       2596 S   /usr/sbin/asterisk -C /etc/asterisk/asterisk.conf 
  581 root       1664 R   ps

Well, I waited for a long time and went to watch an old movie. I came back and my Fonera seemed to have automatically rebooted and I could login using telnet without a password. All previous changes had gone. So, it looks like something isn't right. sad

I re-flashed my Fonera with Kamikaze-7.09 and it too has the same problem where settings get lost after a reboot. I changed the root password, left the Fonera sit for 15 minutes before issuing a reboot command, and I could still establish a telnet session to login without any password once my Fonera rebooted. I don't think my Fonera nor Kamikaze is defective. My Fonera was running fine with a DDWRT v24RC5 before I used this method to flash it with Kamikaze compiled from SVN trunk as well as Kamikaze 7.09. Does anyone care to help?

Why are you using some unverified installation guide? You should read at least the notes at the bottom.
It cannot work because it does not reserve the space in the mtd partition for jffs2.

Use either the OpenWrt or the X-Wrt guide.

I just realized/fixed this problem and wanted to post a follow up to find out you already mentioned it here. Thanks.

The discussion might have continued from here.