Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* rescuing a system with a trashed /bin/bash
@ 1998-11-04 15:20 Robin Stephenson
  1998-11-04 15:29 ` Rich Martin
  0 siblings, 1 reply; 5+ messages in thread
From: Robin Stephenson @ 1998-11-04 15:20 UTC (permalink / raw)
  To: axp-list

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1998-11-05  9:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-04 15:20 rescuing a system with a trashed /bin/bash Robin Stephenson
1998-11-04 15:29 ` Rich Martin
1998-11-04 17:12   ` Robin Stephenson
1998-11-04 23:17     ` Bodo Bellut
1998-11-05  9:05       ` SOLVED: " Robin Stephenson

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