* 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
* Re: rescuing a system with a trashed /bin/bash
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
0 siblings, 1 reply; 5+ messages in thread
From: Rich Martin @ 1998-11-04 15:29 UTC (permalink / raw)
To: axp-list
Robin Stephenson wrote:
>
> 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.
>
<snip>
If all else fails, and if you have another linux box (even an intel
linux box will do), you can remove the harddrive and pop it into
the other linux machine, mount it, and start to repair it. If
you need an the alpha binary for /bin/bash, ill be glad to send it.
I did something similar to this on my UDB to get linux installed. My
udb didnt come with a floppy, so i mounted its harddrive on my as200
4/233 and installed linux from there, then just swapped out the kernel
image in my milo disk partition for the UDBs.
Hope you get everything going.
Rich
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rescuing a system with a trashed /bin/bash
1998-11-04 15:29 ` Rich Martin
@ 1998-11-04 17:12 ` Robin Stephenson
1998-11-04 23:17 ` Bodo Bellut
0 siblings, 1 reply; 5+ messages in thread
From: Robin Stephenson @ 1998-11-04 17:12 UTC (permalink / raw)
To: axp-list
>>>>> On Wed, 04 Nov 1998 09:29:58 -0600
>>>>> "Rich" == Rich Martin <martin@viper.net> wrote:
Rich> Robin Stephenson wrote:
>> [...] 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. [...]
Rich> [...] remove the harddrive and pop it into the other linux machine,
Rich> mount it, and start to repair it.
A good idea: thanks. I'll try this as a last resort.
Rich> If you need an the alpha binary for /bin/bash, ill be glad to
Rich> send it. [...]
Would I need a statically linked bash..? I can get an Alpha bash
binary from a Debian slink machine here, but it's dynamically linked,
presumably against newer libraries than the other machine. Do you by
any remote chance have a statically linked bash (or, alternatively, a
statically linked sufficiently-bash-compatible shell)?
--
Robin Stephenson
WARNING Small Children Can Choke On Nuts
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rescuing a system with a trashed /bin/bash
1998-11-04 17:12 ` Robin Stephenson
@ 1998-11-04 23:17 ` Bodo Bellut
1998-11-05 9:05 ` SOLVED: " Robin Stephenson
0 siblings, 1 reply; 5+ messages in thread
From: Bodo Bellut @ 1998-11-04 23:17 UTC (permalink / raw)
To: axp-list
> >>>>> On Wed, 04 Nov 1998 09:29:58 -0600
> >>>>> "Rich" == Rich Martin <martin@viper.net> wrote:
>
> Rich> Robin Stephenson wrote:
>
> >> [...] 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. [...]
>
> Rich> [...] remove the harddrive and pop it into the other linux machine,
> Rich> mount it, and start to repair it.
>
> A good idea: thanks. I'll try this as a last resort.
>
> Rich> If you need an the alpha binary for /bin/bash, ill be glad to
> Rich> send it. [...]
>
> Would I need a statically linked bash..? I can get an Alpha bash
> binary from a Debian slink machine here, but it's dynamically linked,
> presumably against newer libraries than the other machine. Do you by
> any remote chance have a statically linked bash (or, alternatively, a
> statically linked sufficiently-bash-compatible shell)?
>
You might try adding something like "init=/bin/csh" to your boot options (of
course this only works if the csh is installed) This will boot Linux but start
/bin/csh instead of init. This way you might repair your bash.
HTH, Bodo
--
Bodo Bellut bodo@garfield.ping.de | USE PGP! +-----------+
Klosterstr. 7 | (key via server |\ O---m /|
44135 Dortmund Fon: +49-231-5860337 | or on request) |/---------\|
PGP: 768/FA18A639 AE 5A 47 40 5A A0 D6 15 8E 54 44 AA 8D DD 6E BD+-----------+
^ permalink raw reply [flat|nested] 5+ messages in thread
* SOLVED: rescuing a system with a trashed /bin/bash
1998-11-04 23:17 ` Bodo Bellut
@ 1998-11-05 9:05 ` Robin Stephenson
0 siblings, 0 replies; 5+ messages in thread
From: Robin Stephenson @ 1998-11-05 9:05 UTC (permalink / raw)
To: axp-list
>>>>> On Thu, 05 Nov 1998 00:17:49 +0100
>>>>> "Bodo" == Bodo Bellut <bodo@garfield.ping.de> wrote:
>> Robin Stephenson wrote:
>> >> [...] 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. [...]
[...]
Bodo> You might try adding something like "init=/bin/csh" to your boot
Bodo> options [...]
Thanks for all offers of help & suggestions: I fixed this rather
embarassing problem as follows:
* booted with `init=/bin/ash.static' added to the usual boot options
* ran fsck on all of the disks (probably not necessary, but it made me
feel a bit better)
* remounted the root disk read-write with `mount -t ext2 /dev/sda / -o
remount,rw' -- this was a sticking point for a while until it
occurred to me to see how /etc/rc.d/rc.sysinit did it...
* with my heart in my throat ran `rpm -Uvh bash-whatever-version-it-was'
-- which worked smoothly this time
--
Robin Stephenson
Regional Office Use Only
^ 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