From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 22381 invoked from network); 19 Jan 1999 16:18:24 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 19 Jan 1999 16:18:24 -0000 Received: from email.nist.gov (email.nist.gov [129.6.2.7]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id KAA17177 for ; Tue, 19 Jan 1999 10:53:15 -0500 Received: from lurch.nist.gov (lurch.nist.gov [129.6.153.40]) by email.nist.gov (8.9.1/8.9.1) with ESMTP id KAA10594 for <@relay.nist.gov:axp-list@redhat.com>; Tue, 19 Jan 1999 10:53:12 -0500 (EST) Received: from nist.gov (lurch.nist.gov [129.6.153.40]) by lurch.nist.gov (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id KAA46695 for ; Tue, 19 Jan 1999 10:53:08 -0500 (EST) Sender: powell@nist.gov Message-ID: <36A4AA63.3DC006EF@nist.gov> Date: Tue, 19 Jan 1999 10:53:07 -0500 From: "Adam C. Powell, IV" Organization: National Institute of Standards and Technology X-Mailer: Mozilla 4.5C-SGI [en] (X11; U; IRIX64 6.5 IP27) X-Accept-Language: en-US, en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Help! Can't recover! References: <199901122033.NAA07003@ellpspace.math.ualberta.ca> <369B98FC.C046730B@nist.gov> <199901122033.NAA07003@ellpspace.math.ualberta.ca> <3.0.1.32.19990116215824.0116a070@pop.bart.nl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit geerten kuiper wrote: > At 00:40 14/01/99 -0500, Jonathan Vafai wrote: > >Is someone adding this to the FAQ? > > > I would, but I'm not quite sure what to add regarding this thread. There's > a number of ways to boot a machine after a file system is broken. None of > them is specific to Alpha. To summarize this thread, I sent the following to xeno@clark.net: 1) My disk has crashed, and there are errors somewhere outside the root partition that are preventing me from logging in as superuser to service the disk. How can I just get a shell? Solution: boot from ARC/SRM/AlphaBIOS with the final option init=/bin/bash e.g. boot hda2:vmlinux.gz root=/dev/hda2 init=/bin/bash Real solution: Avoid this by keeping root login from depending on files outside the root partition! (E.g. don't use tcsh, don't start X in .login, etc.) However, see problem 2... 2) The boot variable init doesn't seem to work properly with recent 2.1 or 2.2-pre kernels. The kernel freezes after "Freeing unused kernel memory... 48k freed" Solution: Indeed, with development kernels, my MILO/kernel combination does not seem to work with this option. However, the 2.0 kernels still work, so if you still have one in your root directory, boot with that and with init=/bin/bash (or whatever). 3) My disk has crashed, and the root partition has damage. How can I do disk maintenance? Solution for RedHat users: start the installer from the boot disk and ramdisk. Proceed until it asks whether you want to install or upgrade, and answer upgrade. After that, hit 'Alt-F2' and you will be at the ash shell prompt. A few tools will be present, including mount and e2fsck, however mount only accepts the -t option. To use e2fsck, therefore, you have to do "mount -t ext2 hda2 /mnt ; umount /mnt". This action will create /tmp/hda2 which you use with e2fsck. Any errors? Zeen, -Adam `Cold Fusion' Powell, IV http://www.ctcms.nist.gov/~powell/ ____ USDoC, National Institute of Standards & Technology (NIST) |\ ||< | Center for Theoretical and Computational Materials Science | \||_> |