LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-03-2019, 06:00 AM   #1
netaccs
Member
 
Registered: Mar 2018
Posts: 42

Rep: Reputation: Disabled
Zyxel326 lost settings after reboot and other


Hello,

NAS Zyxel 326, don't know what version of linux is installed:
Linux storage 3.10.39 armv7l GNU/Linux

I have ssh access and after logon I see this message:
BusyBox v1.19.4 built-in shell (ash)

First I notice that, when I made some changes - crontab, edit config file, after nas reboots, changes are lost.
Is there any way to prevent this or somehow to put my settings at system startup?

For example I would like to use daily reports for my hdd smart status.
I make script to receive report and put in to crontab
Quote:
11 18 * * * /path/hddreport.sh && /bin/cat /path/`date +\%Y-\%m-\%d`-hdd.txt | /usr/sbin/msmtp -a mailjet my@email
I make registration in maiiljet for this purpose. Everything works fine.

From other side, when nas is rebooted it's remember settings - disk volumes, ip's, users and etc...
I found this file, where there is a lot of options setting up, during reboot, but it is Read-only file system.

Have you got any idea, where I can make changes, so after reboot, they will be kept and worked?

Thanks in advance !
 
Old 12-05-2019, 03:12 AM   #2
netaccs
Member
 
Registered: Mar 2018
Posts: 42

Original Poster
Rep: Reputation: Disabled
Anyone, some advice or clue what to search for?
 
Old 12-05-2019, 05:15 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,679

Rep: Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893
Typically embedded systems like your NAS are not the same as a regular distribution. They are live systems that load from flash memory on the board and not from the hard drive. For that reason finding information is more difficult. You might ask the Zyxel on their forum or send an email to their support department.
 
Old 12-05-2019, 07:58 AM   #4
netaccs
Member
 
Registered: Mar 2018
Posts: 42

Original Poster
Rep: Reputation: Disabled
Yes, I know that is not typical linux. I submit same question in zyxel forum, with no success.
I am trying to grep my ip from all files (~1TB information) and see in which file it will appear, but for now (2-3days) nothing.
 
Old 12-05-2019, 10:41 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,679

Rep: Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893
The ifconfig or ip a commands will show the IP address. If using DHCP the client typically stores the lease in a file located at /var/lib/dhcp. There are a few ways to the parse the information from /proc/net if you want to go through the effort.

I would not expect any system information to be stored on the NAS hard drive(s).
 
Old 12-06-2019, 02:15 AM   #6
netaccs
Member
 
Registered: Mar 2018
Posts: 42

Original Poster
Rep: Reputation: Disabled
In /var/lib/ I have only "samba". I know how to check and view my settings in console.
I am trying to do something else, will try to explain again.
May be when system is loading (startup, reboot) it reads configuration files from some rom, probably this "/ram_bin"
and I know that can't mount it and write it.

Anyway I made several settings on nas using web gui,which are remembered likes - ip addr, user account, information for raid, setting of service and etc etc.
So I am trying to find some system file, script, that reads this settings or during boot, make them active. If I found something similar I will put "my settings" there
and they will be loaded even after reboot.

Quote:
df -h
Filesystem Size Used Available Use% Mounted on
ubi6:ubi_rootfs2 88.1M 48.2M 35.4M 58% /firmware/mnt/nand
/dev/md0 1.8G 145.9M 1.6G 8% /firmware/mnt/sysdisk
/dev/loop0 138.5M 121.8M 16.7M 88% /ram_bin
/dev/loop0 138.5M 121.8M 16.7M 88% /usr
/dev/loop0 138.5M 121.8M 16.7M 88% /lib/security
/dev/loop0 138.5M 121.8M 16.7M 88% /lib/modules
/dev/loop0 138.5M 121.8M 16.7M 88% /lib/locale
/dev/ram0 5.0M 4.0K 5.0M 0% /tmp/tmpfs
/dev/ram0 5.0M 4.0K 5.0M 0% /usr/local/etc
ubi2:ubi_config 2.2M 92.0K 2.0M 4% /etc/zyxel
/dev/md2 1.8T 987.9G 841.8G 54% /i-data/040781d8
/dev/md2 1.8T 987.9G 841.8G 54% /usr/local/apache/htdocs/desktop,/pkg
/dev/md2 1.8T 987.9G 841.8G 54% /usr/local/mysql
Thanks again !
 
Old 12-09-2019, 03:14 AM   #7
netaccs
Member
 
Registered: Mar 2018
Posts: 42

Original Poster
Rep: Reputation: Disabled
I found a solution.
Installing 3rd party apps -> Metarepository
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Network settings lost on reboot freevian Red Hat 15 03-11-2024 04:44 PM
gpointing-device-settings settings will not stay after reboot texasone Linux - Hardware 5 09-06-2013 06:00 PM
Lost mouse after reboot+lost modem BACTRATE Mandriva 3 04-07-2005 06:45 AM
Lost settings for wlan0 after reboot Dark Nova Linux - Wireless Networking 1 03-18-2005 02:20 PM
keeping rwin & other settings after reboot lmix Linux - Newbie 1 10-22-2003 06:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration