Re: fsck on sco 5.0.5 open server. where is it?

From: Bela Lubkin (belal_at_sco.com)
Date: 07/02/03


Date: Wed, 2 Jul 2003 07:50:39 GMT
To: scomsc@xenitec.ca

Rommel P. Pastrana wrote:

> I've tried your suggestion as follows:
>
> OPTION 1:
>
> Boot and answered no to "root filesstem is dirty, OK to check it?".
> There was no shell prompt to write the next command; fsck -o full
> /dev/root; on so instead i just went ahead and type the command on the
> blank line.

Normally, after answering "no" to that question, you would get a prompt
asking you to type the root password to go into single-user mode, or ^D
to go multi-user. You would have entered the root password, gotten a
shell prompt, then run the fsck.

I suppose it is _possible_ that you did actually get to a shell prompt
that wasn't displaying (for some strange reason). One thing you can do
to see if you're at a shell prompt is type "echo ^G" (control-G). It
may beep when you hit ^G; it may beep when you hit return and it acts on
the command. If it beeps when you hit return, you are definitely at
some sort of shell prompt. If it doesn't beep, the test is inconclusive
(the bell character might have disappeared for the same reason the rest
of the shell output is invisible).

> I dont know if it was just coincidence or i did it right, the hard
> disk's LED flickered continuously but no activities appearing on
> the monitor.
>
> 20minutes after, the LED activity seemed to be not right as it just
> flickered on and on and in constant interval as if a microsoft windows
> scans a hd bad sector.
>
> Is this normal? how long normally an fsck lasts witha 40GB hd.

That actually sounds like a reasonable description of disk light
activity during an `fsck -o full`. fsck has various phases it goes
through, which look different. Of course the whole thing should end
eventually. Total time depends on a bunch of factors -- speed of the
hard disk (mostly seek speed), number of files, amount of space that's
in use, etc. A full 40GB drive would probably take a long time, 20
minutes does not sound out of range.

You didn't say how this ended -- did you hit RESET after deciding it
must be hung? Maybe try it again, but let it run longer -- go to
lunch...

> OPTION 3:
>
> Using the floppy, i was able to do the mknod /dev/hd0root b 1 42, mount
> -r /dev/hd0root /mnt but failed with the chroot /mnt /bin/sh with an
> error of bad address.

Please give exact output when you report an error message. In fact,
it's best if you show the command and result as accurately as possible,
something like:

  The chroot failed like this:

    # chroot /mnt /bin/sh
    Bad address

> I did, cd /mnt/bin, echo * and showed STTY]...chmode, chroot cp...
>
> I tried the rest of the commands such as the cp, fdisk, vi, cat by
> calling them as is or by entering /mnt/bin/chroot but also resulted with
> the same error message.

I'm not sure what to make of that message, don't have enough context.

In your first message you wrote:

> > > The bad thing is, i bought the server second hand without installer
> > > disks, boot/root floppies and manual to look up to so im just
> > > relying on the internet in finding cure to this problem.

It begins to seem like the system you bought was sick in the first
place, somehow improperly installed. I can't think of what would cause
the symptoms you describe. It is probably repairable, but repair will
be very difficult when every step has to be discussed over several days
on USENET.

>Bela<



Relevant Pages

  • Re: md5sum
    ... > a shell prompt the same as a command prompt in Windows? ... Fedora GNU/Linux Core 2 kernel 2.6.8-1.521smp ...
    (Fedora)
  • Re: MSDOS Autoexec.bat
    ... When I remote login to Linux, The shell prompt is jus a "$" I like ... Is there any Linux command to show the same ting? ...
    (comp.os.linux.misc)
  • rsh shell command hangs and does not return
    ... exit $ret; ... The normal behavior of this executable is to list some information but ... it never returns you to a prompt. ... get the shell prompt back. ...
    (perl.beginners)
  • Re: xterm title bar and icons problem
    ... > I don't want the latter and it still does not put xterm name ... If you just want to set the shell prompt, don't have the \033 stuff in the prompt. ...
    (comp.os.linux.misc)
  • RE: Resolution of 0x80072EE2 error in Update ver 5
    ... im an XP Pro use and I am receiving this error message, ... panal as advsd but cannot see the>services>messenger prompt, ... differ for XP Pro users? ... > Yesterday I logged into Windows Update, was prompted to download a new ...
    (microsoft.public.windowsupdate)