Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with /etc/rc.conf

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi to you all

I have a problem with my Freebsd 4.5 box
Ok I installed the system and every thing was ok
Then I configured the box to work as a gateway
Compile a new kernel and made all the changes that it needed
In my /etc/rc.conf file the firewall_type=”open” no rules only for NAT use
After all the changes and kernel compile every thing was ok the only problem was that the NAT was not working so I did some changes in my /etc/rc.conf file and after the boot it would not start.
The strange thing that when the kernel boots up I have an error and it goes like that

“/etc/rc.conf : 81 : syntax error : Unterminated quoted string
Enter full pathname of shell of RETURN for /bin/sh:
#”

And now I can’t do anything I tried to load the old kernel but that error is coming back again.

Please any help

Thanks for advanced
 
have a good look at line 81 (mid-fourth screen) and terminate quotes :)
 
Thanks for your help

The problem is that from that screen i can't do eny thing
do you know how can i edit the /etc/rc.conf ?
 
I had exactly the same problem. A little searching around and I found the answer here.


Boot in single user mode]

As the operating system is starting, it will display the following message:

Hit [Enter] to boot immediately, or any other key for command prompt.

Booting [kernel] in 10 seconds...

You should now press the space bar, and you will see the following message:

Type '?' for a list of commands, or 'help' for more detailed help.

ok

Now type boot -s and press the enter key to start FreeBSD in single user mode. After the system boots, you should see the statement:

Enter full pathname of shell or RETURN for /bin/sh:

Press the enter key and you will have a # prompt.

[Mount the filesystems]

At the command prompt, issue the mount command. This command will mount all the filesystems listed in your /etc/fstab file.

# mount -t ufs -a

This gives you readwrite access to the filesystem and you can now vi rc.conf and correct the error.

Hope thats of some help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top