*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
i'm running a NETBSD 1.6.2 system with i386 hardware, I by misstake made a overwrite of the file /etc/rc.conf so I lost all the information in it. Is there any way to replace the corrupt rc.conf file with a new one. Can I get the system to create a new one or is there a backup file somewhere that I can use???
Not sure but you could always grab one of the net and put back in it the settings you had before. Or just create one from scratch.....thats just my two pennies though.
Here is the file from one of my machines. It should give you what you need. Note, everything under the "add local overrides" line is for my personal system and may or may not apply to your needs. Customize it as you had originally done.
But the stuff above that is probably what you're most concerned about.
Code:
# $NetBSD: rc.conf,v 1.96 2000/10/14 17:01:29 wiz Exp $
#
# see rc.conf(5) for more information.
#
# Use program=YES to enable program, NO to disable it. program_flags are
# passed to the program on the command line.
#
# Load the defaults in from /etc/defaults/rc.conf (if it's readable).
# These can be overridden below.
#
if [ -r /etc/defaults/rc.conf ]; then
. /etc/defaults/rc.conf
fi
# If this is not set to YES, the system will drop into single-user mode.
#
rc_configured=YES
# Add local overrides below
#
wscons=YES
inetd=NO
sshd=YES
ifwatchd=YES
dhcpd=YES
dhcpd_flags="-q ex0"
named=YES
named_flags="-g nogroup -u nobody"
ipfilter=YES
ipnat=YES
Thanks alot i have sushi that restored the file but still got problems like $wdogctl not set.
But I have lots more settings in my rc.conf then you do. My first time with netbsd and forum
Quote:
Originally posted by frob23 Here is the file from one of my machines. It should give you what you need. Note, everything under the "add local overrides" line is for my personal system and may or may not apply to your needs. Customize it as you had originally done.
But the stuff above that is probably what you're most concerned about.
Code:
# $NetBSD: rc.conf,v 1.96 2000/10/14 17:01:29 wiz Exp $
#
# see rc.conf(5) for more information.
#
# Use program=YES to enable program, NO to disable it. program_flags are
# passed to the program on the command line.
#
# Load the defaults in from /etc/defaults/rc.conf (if it's readable).
# These can be overridden below.
#
if [ -r /etc/defaults/rc.conf ]; then
. /etc/defaults/rc.conf
fi
# If this is not set to YES, the system will drop into single-user mode.
#
rc_configured=YES
# Add local overrides below
#
wscons=YES
inetd=NO
sshd=YES
ifwatchd=YES
dhcpd=YES
dhcpd_flags="-q ex0"
named=YES
named_flags="-g nogroup -u nobody"
ipfilter=YES
ipnat=YES
Originally posted by fraggelfraggel Thanks alot i have sushi that restored the file but still got problems like $wdogctl not set.
But I have lots more settings in my rc.conf then you do. My first time with netbsd and forum
Welcome to netbsd and the forums. Hopefully you find a system that's perfect for your needs.
Hmm, as to that error... try adding
Code:
wdogctl_flags="-u -p 30"
Or whatever is appropriate for your system. See the man page if you have doubts (man wdogctl). It looks like you're getting an error because the flags aren't set.
I am sure you have lots more settings than I do. That file is from my router. It's a box which just deals with the basic network services for my house. So it's kept minimal and only what I absolutely need running is on it. Don't think it's unusual that you have more.
I disabled it, dont know what it is for anyway. After some hours of hard work i finally got it up and running again.
Thanks again for all the help once again. Why can't you delete your own posts for do you know?
/fraggelfraggel
Quote:
Originally posted by frob23 Welcome to netbsd and the forums. Hopefully you find a system that's perfect for your needs.
Hmm, as to that error... try adding
Code:
wdogctl_flags="-u -p 30"
Or whatever is appropriate for your system. See the man page if you have doubts (man wdogctl). It looks like you're getting an error because the flags aren't set.
I am sure you have lots more settings than I do. That file is from my router. It's a box which just deals with the basic network services for my house. So it's kept minimal and only what I absolutely need running is on it. Don't think it's unusual that you have more.
You can't delete posts because they are left to help others who may come after you. In this example, maybe someone will need a copy of the rc.conf file and can find it here without asking all over again.
More trouble when you think it is all over I noticed that all my mails on the machine have gone missing. Might there be that there is some kind of link that I have forgot to type into rc.conf or program that i need to start that gets my PINE mail program to find where the mails are. I seriusly doubt that they have all vanished from my computer because I deleted rc.conf.
If you have any ideas or solutions to the problem I would be happy.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.