From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 17259 invoked from network); 4 Nov 1998 15:33:56 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 4 Nov 1998 15:33:56 -0000 Received: from fnord.blackwell.co.uk (bisgw.blackwell.co.uk [195.70.69.190]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id KAA00316 for ; Wed, 4 Nov 1998 10:20:44 -0500 Received: from trss by fnord.blackwell.co.uk with local (Exim 1.92 #1) id 0zb4jF-00008P-00; Wed, 4 Nov 1998 15:20:13 +0000 To: axp-list@redhat.com Subject: rescuing a system with a trashed /bin/bash From: Robin Stephenson X-Attribution: Robin X-PGP-keyID: 0xA38351BD X-Copyright: Copyright =?ISO-8859-1?Q?=A9?= 1998 Robin Stephenson -- all rights reserved. Permission to reproduce attributed copies and extracts granted. X-rfc1876-address: 51 45.2 N 1 16.2 W 58m 0.5m 500m 2m Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 04 Nov 1998 15:20:12 +0000 In-Reply-To: axp-list-request@redhat.com's message of "4 Nov 1998 14:50:57 -0000" Message-ID: X-Mailer: Gnus v5.6.43/XEmacs 20.4 - "Emerald" Sender: "Robin Stephenson,,01865 792792 x3233,01865 782493" 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=B0F PS While I was fiddling about with SRM, I was chuffed to discover the diagnostics stuff, particularly `tgatest' and `audiotest -mclip'. Groovy.