Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jul 2001 22:20:43 -0400
From:      Brian T.Schellenberger <bts@babbleon.org>
To:        "Michael J. Turner" <Daiimon@hotmail.com>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Login problem.
Message-ID:  <01073122204308.00583@i8k.babbleon.org>
In-Reply-To: <OE18JhKPc99ir3wSimD000009a4@hotmail.com>
References:  <OE18JhKPc99ir3wSimD000009a4@hotmail.com>

index | next in thread | previous in thread | raw e-mail

On Tuesday 31 July 2001 21:29, Michael J. Turner wrote:
> Hi, Im having a probelm trying to login.
> I dont really understand what happened i lost
> power so my server got rebooted. When I try
> to login as any user it says.
>
> /bin/login: No such File or Directory
>
> Does anyone know how to resolve this problem i would be most greatful.
> Thank you.

This definately falls in the catagory of Things That are Not Good.
I have some disjointed and rambling suggestions below.

Hey, it's worth what you paid for it.


Obviously, some part of your file system got wiped out and, unless you use a 
very quirky partitioning scheme, it was the root file system that got 
corrupted.  The good news of course is that if it can get far enough to issue 
that message it must be mostly intact.

So you'll need to reboot in single-user mode (boot 1 as I recall, but it's in 
the handbook; luckily this isn't something I have to do very often) and try 
to fix it.  And fsck should have been done automatically upon reboot, but you 
could choose to force one.  (Though that can be a little tricky on the root 
file system.)

Once you are in single-user mode, you can see how extensive the damage is.  
You might be able to snarf a good copy of that one file from someplace; if 
you don't have another computer, it's in a package on your install media, but 
bundled with a bunch of other stuff; if you do a pkg_add it'll blap over 
multiple things, but you can do a direct tar command to just extract the 
files and once you find /bin/login you can restore it.

Or maybe it means that /etc/passwd or something is missing . . . hope not 
since that files's customized for every site . . .

And easier approach might be use the install disks to go into rescue mode . . 
. or just to use the install disks to install, if you haven't customized it 
too much and you have recent backups . . . an install won't wipe your other 
partitions if you don't want it to.  The likely damage an install/upgrade 
will do depends on your partitions, too . . . anyway hopefully you don't have 
to go there.



----------------------------------------
Content-Type: text/html; charset="iso-8859-1"; name="Attachment: 1"
Content-Transfer-Encoding: quoted-printable
Content-Description: 
----------------------------------------

-- 
Brian T. Schellenberger . . . . . . .   bts@wnt.sas.com (work)
Brian, the man from Babble-On . . . .   bts@babbleon.org (personal)

--------------------> Free Dmitry Sklyarov! <-------------------------

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



help

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