Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jan 2014 12:24:04 +0100 (CET)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        eras mus <erasmu@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re:
Message-ID:  <alpine.BSF.2.00.1401071215460.24851@mail.fig.ol.no>
In-Reply-To: <CALeO_hO=NaErzsY3N0KuDmzE_WkMwms9pp-L14h=Hb0eheCKtQ@mail.gmail.com>
References:  <CALeO_hORJin5OOkA45fG%2BHFrai6XhPpOob4u-NhnJkLGyorvhA@mail.gmail.com> <20140106182826.28018a2f@X220.alogt.com> <CALeO_hMOhe_Cf0NQa6p0wrHC7LdA7r6SwkZCOUrqjYUO=sPUYA@mail.gmail.com> <alpine.BSF.2.00.1401061303340.24851@mail.fig.ol.no> <CALeO_hO=NaErzsY3N0KuDmzE_WkMwms9pp-L14h=Hb0eheCKtQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 7 Jan 2014 13:05+0530, eras mus wrote:

> On Mon, Jan 6, 2014 at 5:42 PM, Trond Endrestøl <
> Trond.Endrestol@fagskolen.gjovik.no> wrote:
> 
> > On Mon, 6 Jan 2014 17:23+0530, eras mus wrote:
> >
> > > On Mon, Jan 6, 2014 at 3:58 PM, Erich Dollansky <
> > erichsfreebsdlist@alogt.com
> > > > wrote:
> > >
> > > > Hi,
> > > >
> > > > On Mon, 6 Jan 2014 15:18:34 +0530
> > > > eras mus <erasmu@gmail.com> wrote:
> > > >
> > > > > Dear List,
> > > > >
> > > > > I am maintaining  a FreeBSD server Box, recently i am facing a issue
> > > > > that the server unable to  access via ssh, its not pinging. The
> > > > > Server after a forced restart is up for some time. Able to login from
> > > > > a remote machine as well as a physical console for sometime. After a
> > > > > few minutes the sever console be pinged or ssh. In server console
> > > > > also the machine hungs unable to enter root password in the prompt.
> > > > > If I do a power restart it is restarting up again and I can ssh also
> > > > > login from the console, but after few minutes it hungs no ssh and
> > > > > pinging from LAN machine not possible. How to trouble shoot, Please
> > > > > shed some light on it.
> > > >
> > > > sounds like a hardware problem to me.
> > > >
> > > > The server was running fine for some time before?
> > > >
> > > > Erich
> > >
> > > Dear List,
> > >
> > > This is the /var/log/messages output
> > > http://pastebin.com/Td2JetmK
> >
> > Judging from the log messages, your server lost its network
> > connection or maybe ipfw is to blame.
> >
> > Please post the contents of the /etc/rc.conf file.
> > Also, please give us the output of the ipconfig command.
> >
> > You may cross out (XXXX) any information you consider sensitive.
> 
> Dear List,
> 
> I tried editing /etc/rc.conf file in between server hanged . Now the
> rc.conf is incomplete. There is a line with incomplete quotes.
> So the machine in starting in single user mode  . No editor is working .
> when /usr is mounter ee editor is there. But The file could not be edited
> and saved since it is read only.
> 
> How to overcome this read only mode and edit the file.

when in single user mode type this:

1. swapon -a
2. fsck -p
3. mount -u /
4. mount -al
5. ee /etc/rc.conf # edit the file to your heart's content, save and exit by hitting esc, enter, enter
6. reboot

Remember, in single user mode the computer is using the American 
keyboard layout. ", = and other characters may be found on other keys 
than you're used to.

-- 
+-------------------------------+------------------------------------+
| Vennlig hilsen,               | Best regards,                      |
| Trond Endrestøl,              | Trond Endrestøl,                   |
| IT-ansvarlig,                 | System administrator,              |
| Fagskolen Innlandet,          | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
| sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
+-------------------------------+------------------------------------+



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1401071215460.24851>