Jump to content

machine resets the etc folder after reboot


ted_chou12

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites


# 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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.