Log in

Bekijk de volledige versie : can't save in /etc



strangermj
14-11-2008, 02:14
After upgraded WL500gp-1.9.2.7-10.trx, when I change password and reboot, the new password is not work.

When I check the passwd file, the date of this file is 1 Jan.....

How can I save /etc after reboot ??


[root@WL-001BFC104270 etc]$ ls
total 0
drwxr-xr-x 1 root root 0 Mar 30 2008 .
drwxr-xr-x 1 root root 0 Jan 1 2000 ..
-rw-r--r-- 1 root root 6 Jan 1 2000 TZ
-rw-r--r-- 1 root root 173 Jan 1 1970 dnsmasq.conf
-rw-r--r-- 1 root root 0 Jan 1 1970 ethers
-rw-r--r-- 1 root root 299 Nov 13 20:17 fstab
-rw-r--r-- 1 root root 27 Jan 1 2000 group
-rw-r--r-- 1 root root 91 Jan 1 1970 hosts
-rw-r--r-- 1 root root 125 Mar 30 2008 ipkg.conf
-rw-r--r-- 1 root root 1097 Mar 30 2008 ld.so.cache
-rw-r--r-- 1 root root 23 Mar 30 2008 ld.so.conf
-rw-r--r-- 1 root root 103 Jan 1 2000 passwd
-rw-r--r-- 1 root root 240 Mar 30 2008 profile
-rw-r--r-- 1 root root 5834 Mar 30 2008 protocols
lrwxrwxrwx 1 root root 16 Jan 1 2000 resolv.conf -> /tmp/resolv.conf
-rw-r--r-- 1 root root 1615 Mar 30 2008 rpc
-rw-r--r-- 1 root root 12042 Mar 30 2008 services
[root@WL-001BFC104270 etc]$

kaizen
14-11-2008, 12:19
How can I save /etc after reboot ??

/etc is in flash memory. To store changes


flashfs save && flashfs commit && flashfs enable && reboot


http://wl500g.info/showthread.php?t=5909

strangermj
14-11-2008, 20:59
/etc is in flash memory. To store changes


flashfs save && flashfs commit && flashfs enable && reboot


http://wl500g.info/showthread.php?t=5909

Yes, already did. However, /usr/local/sbin is working, e.g. postboot, but when I change root password, also done "flashfs save && flashfs commit && flashfs enable && reboot" but fail to get the new password on next boot, everything in /etc remain no change

KGy
15-11-2008, 00:12
The file name of save list:
/usr/local/.files
Add the file name to save list with editor or command echo:
echo "/etc/passwd" >>/usr/local/.files and save: flashfs save && flashfs commit && flashfs enable

My save list:


[admin@MYROUTER2 root]$ cat /usr/local/.files
/etc/group
/etc/passwd
/etc/smbpasswd
/etc/smb.conf
/etc/profile
/etc/ethers
/etc/hosts.allow
/etc/hosts.deny
/etc/exports
/etc/printcap
/etc/fstab
/etc/mtab
[admin@MYROUTER2 root]$


Bye,
George

strangermj
15-11-2008, 21:38
The file name of save list:
/usr/local/.files
Add the file name to save list with editor or command echo:
echo "/etc/passwd" >>/usr/local/.files and save: flashfs save && flashfs commit && flashfs enable

Bye,
George

It work !!! Thanks for your greate help :D:D:D