ted_chou12 Posted August 21, 2010 Share Posted August 21, 2010 Hi, as my subject, machine resets the etc folder after reboot, so the changes that I made to httpd.conf,smb.conf is changed back to original, and the changes become useless, how would i go about forcing the changes to apply after system reboots? Thanks, Quote Link to comment Share on other sites More sharing options...
trq Posted August 22, 2010 Share Posted August 22, 2010 The question is why is it being reset in the first place, this isn't common behavior. What distro are you using? And what is the output of.... cat /etc/fstab Quote Link to comment Share on other sites More sharing options...
ted_chou12 Posted August 22, 2010 Author Share Posted August 22, 2010 I don't know what the distro means, but this is the code: # cat /etc/smb.conf #======================= Global Settings ===================================== [global] server string = nas smb passwd file = /etc/smbpasswd security = SHARE workgroup = WORKGROUP encrypt passwords = true short preserve case = yes preserve case = yes guest account = ftp guest ok = yes force user = root force group = root socket options = SO_KEEPALIVE TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384 character set = utf8 client code page = 950 #============================ Share Definitions ============================== [main] comment = main path = /usb/sda1 writeable = yes original charset is ISo----something and 850, im trying to change it to unicode and t chinese. Thanks, Ted Quote Link to comment Share on other sites More sharing options...
trq Posted August 22, 2010 Share Posted August 22, 2010 WTF? I asked for the output of.... cat /etc/fstab Nothing to do with your Samba config. As for what 'distro' means. Its what GNU/Linux 'type' youi are using. eg, Debian, Ubuntu, CentOS etc etc. I saw in another of your threads your using CentOS so, I assume this problem relates to the same machine? Your distro is CentOS then. Quote Link to comment Share on other sites More sharing options...
ted_chou12 Posted August 22, 2010 Author Share Posted August 22, 2010 # cat /etc/fstab /dev/ram0 / ext2 defaults 0 0 none /proc proc defaults 0 0 none /dev/pts devpts defaults 0 0 # system initialisation ::sysinit:/usr/share/snake/rc.sysinit # setup serial console ttyS0::askfirst:/bin/sh # stuff to do before rebooting ::ctrlaltdel:/usr/share/snake/rc.reboot ::shutdown:/usr/share/snake/rc.reboot Quote Link to comment Share on other sites More sharing options...
trq Posted August 22, 2010 Share Posted August 22, 2010 Is this system running from cd or some other unusual medium? You don't have any normal file systems mounted. Quote Link to comment Share on other sites More sharing options...
ted_chou12 Posted August 22, 2010 Author Share Posted August 22, 2010 this is an individual nas system, that has a usb hdd 320G mounted to it, but I think all of the system files are within the memory of the nas system (if you unplug the hdd, still can turn the machine on and off). so i don't think the hdd matters in this case. Thanks again Quote Link to comment Share on other sites More sharing options...
trq Posted August 22, 2010 Share Posted August 22, 2010 All of this information would have been help full when you first asked your question. so i don't think the hdd matters in this case. Indeed it does. If you want /etc/ to be persistent your going to need persistent storage. Generally though, the /etc directory needs to be on the root partition because the fstab file is read from there at boot time. You could try mounting /etc to a persistent drive late in the boot process maybe, I can see this getting pretty tricky. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.