Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Robin Stephenson <robin.stephenson@blackwell.co.uk>
To: axp-list@redhat.com
Subject: rescuing a system with a trashed /bin/bash
Date: 04 Nov 1998 15:20:12 +0000	[thread overview]
Message-ID: <m3zpa78oyb.fsf_-_@fnord.blackwell.co.uk> (raw)
In-Reply-To: axp-list-request@redhat.com's message of "4 Nov 1998 14:50:57 -0000"

It's not strictly speaking an Alpha question, but it does involve
booting an Alpha system, so bear with me.

I recently decided to update the packages on a UDB running Red Hat
5.0 (it's not conected to a network, so I've been a bit lax in
tracking the updates).  I upgraded glibc with `rpm -Uvh glibc*', which
went smoothly.  Half-way through upgrading bash with `rpm -Uvh bash*'
(can you see this coming yet..?) I got a segv and *poof* my system
stopped working.

On booting, init tries to fork a shell when it starts up to run all of
the rc.d stuff, which fails dismally.  `Init respawning too fast'
appears on the console and booting screeches to a halt.

I've got a floppy that says `boot disk'.  It seems to be an SRM boot
disk, and the SRM console will indeed load a kernel off it.  The
machine loads the kernel and then switches back into SRM console mode.
Not very helpful.  I guess I might have to set boot_options, boot_file
and so on before typing `boot dva0'?  The root partition on the hard
disk is /dev/sda5, if that makes any difference.

I `normally' boot from ARC mode via a tiny FAT partition containing
linload.exe and MILO, but figured since the first few bytes of the
rescue disk said `SRM boot disk' (or something similar, I don't have
it with me) that SRM was worth a try.

How can I rescue this system?  I have a copy of bash from Debian slink
on another box, but it's dynamically linked.  Is there any way to
point the kernel at a different shell at boot time (/bin/ash, for
example)?  Can I make a rescue disk and use that to fix bash somehow?
Help!

-- 
 Robin Stephenson
 Heat Oven To 350°F

PS While I was fiddling about with SRM, I was chuffed to discover the
   diagnostics stuff, particularly `tgatest' and `audiotest -mclip'.
   Groovy.


             reply	other threads:[~1998-11-04 15:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-04 15:20 Robin Stephenson [this message]
1998-11-04 15:29 ` rescuing a system with a trashed /bin/bash Rich Martin
1998-11-04 17:12   ` Robin Stephenson
1998-11-04 23:17     ` Bodo Bellut
1998-11-05  9:05       ` SOLVED: " Robin Stephenson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox