homepage Welcome to WebmasterWorld Guest from 54.166.65.9
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
netbsd boot problem
rc.conf corrupt, halts on boot
hughes




msg:3171898
 12:08 pm on Nov 29, 2006 (gmt 0)

Hi, I have a webserver setup on netbsd and am experiencing a problem where rc.conf keeps getting an end of file error. What I need to be able to do is load up some kind of boot utility so I can edit the rc.conf file directly or overwrite it. I have tried a knoppix boot CD, but the filesystem FFS is not supported. I have also tried booting up with the install CD but I cannot mount the hard drive at /dev/hda.

Any help is much appreciated.

 

MattyMoose




msg:3172395
 6:05 pm on Nov 29, 2006 (gmt 0)

You can try booting into single user mode. from the init man page:

1. Single user shell. init may be passed -s from the boot program to
prevent the system from going multi-user and to instead execute a
single user shell without starting the normal daemons. The system
is then quiescent for maintenance work and may later be made to go
to state 2 (multi-user) by exiting the single-user shell (with ^D).

so when you see the boot prompt, pass it the "-s" switch. then edit your rc.conf, and see what's wrong with it.

The alternative is to download the FreeBSD recovery CD, and boot from it, mount the HDD, and edit the offending file. I'm surprised NetBSD doesn't have a recovery shell of some kind on the install CD. (Haven't used NetBSD in years).

HTH!
Matt

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved