Re: How can I repair wrong /etc/rc.conf ?

2010-03-09 Thread krad
On 9 March 2010 06:10, Lowell Gilbert 
freebsd-questions-lo...@be-well.ilk.org wrote:

 oscar Seo oscar...@gmail.com writes:

  I'm using FreeBSD 6.4 + windowmaker in IBM notebook.
  I edited /etc/rc.conf to use LAN other ip address is different from my
 home
  address in my school.
  I got error message from this
  [
  /etc/rc.conf: 131: Syntax error: Unterminated quoted string
  Enter full pathname of shell or RETURN for /bin/sh:
  ]
  so that I returned, I decided to edit /etc/rc.conf using vi.
  But freebsd didn't find vi, less any other application.
  I can't modify even if read /etc/rc.conf.
  fortunately I can use cat so I found my fault sting from /etc/rc.conf but
 I
  can't modify any files cause the system changed into read only file
 system.
  How can I repair /etc/rc.conf file with fault statements using any
 editor?
 
  Thanks in advanced.
  Oscar

 There is an entry in the FreeBSD FAQ titled I made a mistake in
 rc.conf, or another startup file, and now I cannot edit it because the
 file system is read-only. What should I do?

 It's exactly what you need.
 --
 Lowell Gilbert, embedded/networking software engineer, Boston area

 http://be-well.ilk.org/~lowell/http://be-well.ilk.org/%7Elowell/
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org


try doing a mount -uw /

then a mount -a
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How can I repair wrong /etc/rc.conf ?

2010-03-09 Thread Jerry McAllister
On Tue, Mar 09, 2010 at 02:45:22PM +0900, oscar Seo wrote:

 I'm using FreeBSD 6.4 + windowmaker in IBM notebook.
 I edited /etc/rc.conf to use LAN other ip address is different from my home
 address in my school.
 I got error message from this
 [
 /etc/rc.conf: 131: Syntax error: Unterminated quoted string
 Enter full pathname of shell or RETURN for /bin/sh:
 ]
 so that I returned, I decided to edit /etc/rc.conf using vi.
 But freebsd didn't find vi, less any other application.
 I can't modify even if read /etc/rc.conf.
 fortunately I can use cat so I found my fault sting from /etc/rc.conf but I
 can't modify any files cause the system changed into read only file system.
 How can I repair /etc/rc.conf file with fault statements using any editor?

It is because not all of your filesystems are mounted.
Probably you can gett away with just doing
  fsck -a
  mount -u
  mount -a 

From then you can edit.

If it will not run the fsck or the mount -a, then you will have
to reboot in to single user mode and do the above.

jerry

 
 Thanks in advanced.
 Oscar
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


How can I repair wrong /etc/rc.conf ?

2010-03-08 Thread oscar Seo
I'm using FreeBSD 6.4 + windowmaker in IBM notebook.
I edited /etc/rc.conf to use LAN other ip address is different from my home
address in my school.
I got error message from this
[
/etc/rc.conf: 131: Syntax error: Unterminated quoted string
Enter full pathname of shell or RETURN for /bin/sh:
]
so that I returned, I decided to edit /etc/rc.conf using vi.
But freebsd didn't find vi, less any other application.
I can't modify even if read /etc/rc.conf.
fortunately I can use cat so I found my fault sting from /etc/rc.conf but I
can't modify any files cause the system changed into read only file system.
How can I repair /etc/rc.conf file with fault statements using any editor?

Thanks in advanced.
Oscar
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How can I repair wrong /etc/rc.conf ?

2010-03-08 Thread Adam Vande More
On Mon, Mar 8, 2010 at 11:45 PM, oscar Seo oscar...@gmail.com wrote:

 I'm using FreeBSD 6.4 + windowmaker in IBM notebook.
 I edited /etc/rc.conf to use LAN other ip address is different from my home
 address in my school.
 I got error message from this
 [
 /etc/rc.conf: 131: Syntax error: Unterminated quoted string
 Enter full pathname of shell or RETURN for /bin/sh:
 ]
 so that I returned, I decided to edit /etc/rc.conf using vi.
 But freebsd didn't find vi, less any other application.
 I can't modify even if read /etc/rc.conf.
 fortunately I can use cat so I found my fault sting from /etc/rc.conf but I
 can't modify any files cause the system changed into read only file system.
 How can I repair /etc/rc.conf file with fault statements using any editor?

 Thanks in advanced.
 Oscar


The are multiple ways to do this, easiest is to type in at the sh prompt:

mount -a

You would then have access to /usr, vi is in /usr/bin/vi






-- 
Adam Vande More
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How can I repair wrong /etc/rc.conf ?

2010-03-08 Thread Lowell Gilbert
oscar Seo oscar...@gmail.com writes:

 I'm using FreeBSD 6.4 + windowmaker in IBM notebook.
 I edited /etc/rc.conf to use LAN other ip address is different from my home
 address in my school.
 I got error message from this
 [
 /etc/rc.conf: 131: Syntax error: Unterminated quoted string
 Enter full pathname of shell or RETURN for /bin/sh:
 ]
 so that I returned, I decided to edit /etc/rc.conf using vi.
 But freebsd didn't find vi, less any other application.
 I can't modify even if read /etc/rc.conf.
 fortunately I can use cat so I found my fault sting from /etc/rc.conf but I
 can't modify any files cause the system changed into read only file system.
 How can I repair /etc/rc.conf file with fault statements using any editor?

 Thanks in advanced.
 Oscar

There is an entry in the FreeBSD FAQ titled I made a mistake in
rc.conf, or another startup file, and now I cannot edit it because the
file system is read-only. What should I do?

It's exactly what you need.
-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org