* Help! Can't recover!
@ 1999-01-12 16:56 Adam C. Powell, IV
1999-01-12 17:06 ` warp
1999-01-12 18:04 ` Michal Jaegermann
0 siblings, 2 replies; 24+ messages in thread
From: Adam C. Powell, IV @ 1999-01-12 16:56 UTC (permalink / raw)
To: Cool Cats
Hello,
Just crashed my machine (doing something stupid), so I hit reset, and
did something bad to my /usr partition. When coming up, it got to
"/dev/hda4 contains errors, check forced" and then something like
"UNEXPECTED ERROR in /dev/hda4.\nEnter root password for maintenance or
hid Ctrl-D to continue startup".
I tried the root password about five times, and each time not only did
it not work, it shut down and rebooted.
So, I tried ^D, which shut down and rebooted- twice.
The third time, I accidentally hit ^C instead, which dumped my to the
login screen. Cool. But I could not log in as root- it would quickly
flash a bunch of lines starting with "do_ypcall" to the effect that the
network was unreachable, and then dump back to the login screen. And
all of the users are via NIS, so of course it didn't recognize any
usernames/passwords. Uncool.
So, I shut down and rebooted from the RedHat 5.1 emergency disk and
ramdisk, which brings me into the installer. Unfortunately, unlike the
Intel version (or LinuxPPC for that matter) which I've used more
recently, there is no shell console, so I have no way to run e2fsck!
So I am stuck. Is there anything I can do aside from a total
reinstall? Is there anyway to break the installer so it dumps me to a
shell?
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 | \||_> |
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Help! Can't recover!
1999-01-12 16:56 Help! Can't recover! Adam C. Powell, IV
@ 1999-01-12 17:06 ` warp
1999-01-12 17:13 ` warp
1999-01-12 17:43 ` Adam C. Powell, IV
1999-01-12 18:04 ` Michal Jaegermann
1 sibling, 2 replies; 24+ messages in thread
From: warp @ 1999-01-12 17:06 UTC (permalink / raw)
To: axp-list
Adam C. Powell, IV wrote:
> So I am stuck. Is there anything I can do aside from a total
> reinstall? Is there anyway to break the installer so it dumps me to a
> shell?
In your ARC, AlphaBIOS or SRM add -s, -S or -SINGLE
after "vmlinux.gz" then boot.
This should get you in init 1 with root access and
without a password prompt...
Regards,
Antoine
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Help! Can't recover!
1999-01-12 17:06 ` warp
@ 1999-01-12 17:13 ` warp
1999-01-12 17:43 ` Adam C. Powell, IV
1 sibling, 0 replies; 24+ messages in thread
From: warp @ 1999-01-12 17:13 UTC (permalink / raw)
To: axp-list
warp@xs4all.nl wrote:
>
> Adam C. Powell, IV wrote:
>
> > So I am stuck. Is there anything I can do aside from a total
> > reinstall? Is there anyway to break the installer so it dumps me to a
> > shell?
>
> In your ARC, AlphaBIOS or SRM add -s, -S or -SINGLE
> after "vmlinux.gz" then boot.
To be a bit more specific:
"boot sda2:vmlinux.gz -S root=/dev/sda2 bla"
Regards,
Antoine
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Help! Can't recover!
1999-01-12 17:06 ` warp
1999-01-12 17:13 ` warp
@ 1999-01-12 17:43 ` Adam C. Powell, IV
1999-01-12 17:49 ` Greg Lindahl
` (3 more replies)
1 sibling, 4 replies; 24+ messages in thread
From: Adam C. Powell, IV @ 1999-01-12 17:43 UTC (permalink / raw)
To: Cool Cats
"warp@xs4all.nl" wrote:
> In your ARC, AlphaBIOS or SRM add -s, -S or -SINGLE
> after "vmlinux.gz" then boot.
>
> This should get you in init 1 with root access and
> without a password prompt...
Cool! I'm using MILO, but tried it anyway. But the behavior
continues: even with -S, when I get to "Enter root password for maintenance
or hit Ctrl-D to continue startup", if I hit ^D it just plain shuts down
and reboots (strating from "Unmounting file systems"); if I type the root
password it gives:
-tcsh: error in loading shared libraries
libcurses.so.4: cannot open shared object file: No such file or
directory
Unmounting file systems
etc.
[Yes, root uses tcsh- it makes things easier. Is this a Bad Idea?] If
I if I hit ^C it still dumps me to the login scren- even with -S...
Here's some new info: I type root at the username prompt, and it gives
back:
pam[88]: unable to dlopen(/lib/security/pam_cracklib.so)
pam[88]: [dlerror: libcrack.so.2: cannot open shared object
file: No such file or directory]
pam[88]: adding faulty module: /lib/security/pam_cracklib.so
Password:
And then after the password, the flash of "do_ypcall" errors and back to
the login screen.
In other words, -S doesn't seem to change anything. :-( Is this expected
for MILO? I don't think I have ARC or SRM on this 164LX. How do I start
single-user from AlphaBIOS?
Thanks very much!
-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 | \||_> |
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Help! Can't recover!
1999-01-12 17:43 ` Adam C. Powell, IV
@ 1999-01-12 17:49 ` Greg Lindahl
1999-01-12 18:15 ` B. James Phillippe
1999-01-12 18:32 ` Adam C. Powell, IV
1999-01-12 18:02 ` B. James Phillippe
` (2 subsequent siblings)
3 siblings, 2 replies; 24+ messages in thread
From: Greg Lindahl @ 1999-01-12 17:49 UTC (permalink / raw)
To: axp-list
> [Yes, root uses tcsh- it makes things easier. Is this a Bad Idea?]
That's novice sysadmin mistake #1 -- it's wrong. Create a different
uid=0 user if you want tcsh for root and are too lazy to type tcsh
after you log in.
In this case the problem is that your tcsh is linked against
/usr/lib/libcurses, which obviously can't be found. A shell usable by
root should only be linked against stuff that is always there at any
point in the boot process. On my 5.2 system, bash is only linked
against stuff in /lib, ditto for tcsh -- it uses termcap, which is in
/lib.
Even if you meet this standard, there are other gotchas for having an
unusual root shell.
-- g
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Help! Can't recover!
1999-01-12 17:43 ` Adam C. Powell, IV
1999-01-12 17:49 ` Greg Lindahl
@ 1999-01-12 18:02 ` B. James Phillippe
1999-01-12 18:29 ` Michal Jaegermann
1999-01-12 19:04 ` Bob Taylor
3 siblings, 0 replies; 24+ messages in thread
From: B. James Phillippe @ 1999-01-12 18:02 UTC (permalink / raw)
To: Cool Cats
On Tue, 12 Jan 1999, Adam C. Powell, IV wrote:
> "warp@xs4all.nl" wrote:
>
> > In your ARC, AlphaBIOS or SRM add -s, -S or -SINGLE
> > after "vmlinux.gz" then boot.
> >
> > This should get you in init 1 with root access and
> > without a password prompt...
>
> Cool! I'm using MILO, but tried it anyway. But the behavior
Then you should be booting from ARC, right? Unless you burned MILO into
your flash(?)
> continues: even with -S, when I get to "Enter root password for maintenance
> or hit Ctrl-D to continue startup", if I hit ^D it just plain shuts down
> and reboots (strating from "Unmounting file systems"); if I type the root
> password it gives:
>
> -tcsh: error in loading shared libraries
> libcurses.so.4: cannot open shared object file: No such file or
> directory
Ouch... your filesystem is really tanked. Your libraries sound corrupted,
which means you probably will not be able to boot from this partition at
all. :(
> [Yes, root uses tcsh- it makes things easier. Is this a Bad Idea?] If
No, it should be fine.
> Here's some new info: I type root at the username prompt, and it gives
> back:
>
> pam[88]: unable to dlopen(/lib/security/pam_cracklib.so)
> pam[88]: [dlerror: libcrack.so.2: cannot open shared object
> file: No such file or directory]
> pam[88]: adding faulty module: /lib/security/pam_cracklib.so
> Password:
This is really bad news. Your shared libraries provide vital functionality
to nearly all your applications and programs. There are only a few
programs on the disk that are statically linked (don't use the libraries)
for emergency usage. Your C library (the main library) must be intact for
anything to work. But you have several other libraries which appear
broken.
> And then after the password, the flash of "do_ypcall" errors and back to
> the login screen.
So you are using NIS on your system? That is what the do_ypcall comes
from.
> In other words, -S doesn't seem to change anything. :-( Is this expected
> for MILO? I don't think I have ARC or SRM on this 164LX. How do I start
> single-user from AlphaBIOS?
If you can add the single letter "S" to your boot flags, it will get you
into single user mode. For me (I use SRM) it looks like this:
-flags "root-/dev/sda2 S"
BUT... I don't think that's going to help you. If your shell is missing a
library, you won't be able to log in anyway. What you need to do is boot a
rescue floppy disk (the ones from the RedHat disk should work) and then
mount your toasted partition read-only. Then you can e2fsck it and
hopefully recover to a usable state. When you get back on your feet enough
to log in, use the rpm -Va option to check for packages that are still
corrupted.
Good luck,
-bp
--
B. James Phillippe . bryan@terran.org
Linux Engineer/Admin . http://www.terran.org/~bryan
Member since 1.1.59 . finger:bryan@earth.terran.org
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Help! Can't recover!
1999-01-12 16:56 Help! Can't recover! Adam C. Powell, IV
1999-01-12 17:06 ` warp
@ 1999-01-12 18:04 ` Michal Jaegermann
1999-01-12 18:48 ` Adam C. Powell, IV
1 sibling, 1 reply; 24+ messages in thread
From: Michal Jaegermann @ 1999-01-12 18:04 UTC (permalink / raw)
To: axp-list
Adam C. Powell, IV wrote:
>
[ a description of various trials and tribulations skipped ... ]
>
> So, I shut down and rebooted from the RedHat 5.1 emergency disk and
> ramdisk, which brings me into the installer. Unfortunately, unlike the
> Intel version (or LinuxPPC for that matter) which I've used more
> recently, there is no shell console, so I have no way to run e2fsck!
Well, yes, actually there is shell although maybe not an "official"
one. :-)
Start installer from a ram disk, as usual. Tell it that you have
things to install on a hard drive and that you want to upgrade
(do not worry if these answers are truthful or not :-). After
that hit 'Alt-F2' and you will be at shell prompt (ash) with some
minimal set of tools. e2fsck is among those.
In what we, i.e. Hard Data, distribute with our machines we provide
tools which allow at this moment to start a full blown Linux - small
part on a ram disk, most of it on CD - which is a bit more convenient
and gives extra options, but even with a minimum you can go a long way.
Besides, if everything else failed and you have some other Linux
machines around (do not have to be Alphas) you can take a screwdriver
and mount your sick disk for repair jobs there. There are still
numerous options before full reinstall. :-)
Michal
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Help! Can't recover!
1999-01-12 17:49 ` Greg Lindahl
@ 1999-01-12 18:15 ` B. James Phillippe
1999-01-12 18:31 ` Greg Lindahl
1999-01-12 18:32 ` Adam C. Powell, IV
1 sibling, 1 reply; 24+ messages in thread
From: B. James Phillippe @ 1999-01-12 18:15 UTC (permalink / raw)
To: axp-list
On Tue, 12 Jan 1999, Greg Lindahl wrote:
> > [Yes, root uses tcsh- it makes things easier. Is this a Bad Idea?]
>
> That's novice sysadmin mistake #1 -- it's wrong. Create a different
> uid=0 user if you want tcsh for root and are too lazy to type tcsh
> after you log in.
I wouldn't go so far as to say it's _wrong_. Maybe non-standard, but
certainly okay, if you know what you are doing.
What I do is have bash for root and tcsh for my normal user. I never log
in as root. But as my normal user, if I need temporary root privs I will
"su -m" and then keep my tcsh shell. I'd recommend that over making the
root shell tcsh, but it's certainly legal.
> In this case the problem is that your tcsh is linked against
> /usr/lib/libcurses, which obviously can't be found. A shell usable by
My tcsh has never been linked against anything in /usr, even as far back as
RedHat 4.2:
% ldd /bin/sh # is just a symlink to bash, as it should be for Linux
libtermcap.so.2 => /lib/libtermcap.so.2 (0x40009000)
libc.so.5 => /lib/libc.so.5 (0x4000c000)
% ldd /bin/tcsh
libtermcap.so.2 => /lib/libtermcap.so.2 (0x40009000)
libc.so.5 => /lib/libc.so.5 (0x4000c000)
% ldd /bin/bash
libtermcap.so.2 => /lib/libtermcap.so.2 (0x40009000)
libc.so.5 => /lib/libc.so.5 (0x4000c000)
%
It's possible it is trying to dlopen() something in /usr/lib, and in that
case, yes, it would be wrong to use it. But I'm not sure that it is.
Hmmm... I just checked my RedHat-5x box, and although tcsh is still only
linked to things in /lib, it *is* linked to more libs than bash is.
Perhaps it has become increasingly unwise to use tcsh for root shells as
time progresses. In that case, I am convinced: only use bash for root
unless you really know what you are getting into.
> root should only be linked against stuff that is always there at any
> point in the boot process. On my 5.2 system, bash is only linked
> against stuff in /lib, ditto for tcsh -- it uses termcap, which is in
> /lib.
This is correct. tcsh should be as viable as bash at boot time. I don't
know why his isn't, but it wouldn't matter for single user; in single user
mode, init will dump you to /bin/sh regardless of what your shell is.
-bp
--
B. James Phillippe . bryan@terran.org
Linux Engineer/Admin . http://www.terran.org/~bryan
Member since 1.1.59 . finger:bryan@earth.terran.org
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Help! Can't recover!
1999-01-12 17:43 ` Adam C. Powell, IV
1999-01-12 17:49 ` Greg Lindahl
1999-01-12 18:02 ` B. James Phillippe
@ 1999-01-12 18:29 ` Michal Jaegermann
1999-01-12 20:11 ` Adam C. Powell, IV
1999-01-12 19:04 ` Bob Taylor
3 siblings, 1 reply; 24+ messages in thread
From: Michal Jaegermann @ 1999-01-12 18:29 UTC (permalink / raw)
To: axp-list
Adam C. Powell, IV wrote:
>
> if I type the root
> password it gives:
>
> -tcsh: error in loading shared libraries
People who switch root shell to tcsh get exactly what they deserve!
Next we will learn that you write shell scripts in csh? Other
perversions? Big sigh!
Add on your boot line 'init=/bin/bash' and be done with it.
Michal
p.s. What exactly tcsh gains you over bash? I know what an answer
will be for a comparison with an "original Bourne" but this is not
that one.
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Help! Can't recover!
1999-01-12 18:15 ` B. James Phillippe
@ 1999-01-12 18:31 ` Greg Lindahl
0 siblings, 0 replies; 24+ messages in thread
From: Greg Lindahl @ 1999-01-12 18:31 UTC (permalink / raw)
To: axp-list
> > In this case the problem is that your tcsh is linked against
> > /usr/lib/libcurses, which obviously can't be found. A shell usable by
>
> My tcsh has never been linked against anything in /usr, even as far back as
> RedHat 4.2:
Uh, I only said that because the error message clearly says that it
couldn't find libcurses, and on my RH 5.1 system, libcurses is in
/usr/lib. It could be a different binary than bash which is generating
the error message; I'm not all-seeing... I agree that *my* tcsh isn't
linked against libcurses, but who knows about *his*...
-- g
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Help! Can't recover!
1999-01-12 17:49 ` Greg Lindahl
1999-01-12 18:15 ` B. James Phillippe
@ 1999-01-12 18:32 ` Adam C. Powell, IV
1 sibling, 0 replies; 24+ messages in thread
From: Adam C. Powell, IV @ 1999-01-12 18:32 UTC (permalink / raw)
To: axp-list
Greg Lindahl wrote:
> > [Yes, root uses tcsh- it makes things easier. Is this a Bad Idea?]
>
> That's novice sysadmin mistake #1 -- it's wrong. Create a different
> uid=0 user if you want tcsh for root and are too lazy to type tcsh
> after you log in.
You're right- bash would have worked. Thanks, I've learned my lesson, I
will go back to bash. And I promise to learn to use vi- someday- soon,
really. :-)
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 | \||_> |
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Help! Can't recover!
1999-01-12 18:04 ` Michal Jaegermann
@ 1999-01-12 18:48 ` Adam C. Powell, IV
1999-01-12 20:33 ` Michal Jaegermann
0 siblings, 1 reply; 24+ messages in thread
From: Adam C. Powell, IV @ 1999-01-12 18:48 UTC (permalink / raw)
To: axp-list
Michal Jaegermann wrote:
> Adam C. Powell, IV wrote:
> >
> [ a description of various trials and tribulations skipped ... ]
> >
> > So, I shut down and rebooted from the RedHat 5.1 emergency disk and
> > ramdisk, which brings me into the installer. Unfortunately, unlike the
> > Intel version (or LinuxPPC for that matter) which I've used more
> > recently, there is no shell console, so I have no way to run e2fsck!
>
> Well, yes, actually there is shell although maybe not an "official"
> one. :-)
>
> Start installer from a ram disk, as usual. Tell it that you have
> things to install on a hard drive and that you want to upgrade
> (do not worry if these answers are truthful or not :-). After
> that hit 'Alt-F2' and you will be at shell prompt (ash) with some
> minimal set of tools. e2fsck is among those.
Cool, it worked. But now I can't seem to mount read-only.
I try "e2fsck /tmp/hda4" or "e2fsck hda4" or "e2sfck /dev/hda4" or "e2fsck
/mnt/usr" with hda4 mounted or unmounted, and it always gives me "No such
file or directory while trying to open ..." (or for /mnt/usr, "Is a
directory while trying to open /mnt/usr").
So I try "mount -o ro hda4 /mnt/usr" but the mount on the installer seems to
only recognize the -t option.
I tried /mnt/bin/mount, but it says "special device /dev/hda4 does not
exist" and I don't know how to make a new device.
So I am stuck. How can I e2fsck the disk from the installer shell?
Thanks very much for your help so far!
-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 | \||_> |
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Help! Can't recover!
1999-01-12 17:43 ` Adam C. Powell, IV
` (2 preceding siblings ...)
1999-01-12 18:29 ` Michal Jaegermann
@ 1999-01-12 19:04 ` Bob Taylor
3 siblings, 0 replies; 24+ messages in thread
From: Bob Taylor @ 1999-01-12 19:04 UTC (permalink / raw)
To: axp-list
In message <369B89C0.E92B31DC@nist.gov>, "Adam C. Powell, IV" writes:
> "warp@xs4all.nl" wrote:
>
> > In your ARC, AlphaBIOS or SRM add -s, -S or -SINGLE
> > after "vmlinux.gz" then boot.
> >
> > This should get you in init 1 with root access and
> > without a password prompt...
>
> Cool! I'm using MILO, but tried it anyway. But the behavior
> continues: even with -S, when I get to "Enter root password for maintenance
> or hit Ctrl-D to continue startup", if I hit ^D it just plain shuts down
> and reboots (strating from "Unmounting file systems"); if I type the root
> password it gives:
Your /usr partition is hosed as you have previously indicated. Attempting
to boot is failing. IMHO you have 2 choices. Use a rescue floppy or try
adding init=/bin/bash to your boot command. I just did this upon rebooting
after upgrading to 5.2 on my LX164.
Too bad I didn't know about the -S as all I really wanted was init=1 which
didn't work. BTW, for any editing you must do with init=/bin/bash I had
to exec sync to get the modified file back to disk and I wound up with
some minor corruption that fsck dropped me into bash to fix. Bummer!
Bob
--
+---------------------------------------------------------------+
| Bob Taylor Email: brtaylor@inreach.com |
|---------------------------------------------------------------|
| Like the ad says, at 300 dpi you can tell she's wearing a |
| swimsuit. At 600 dpi you can tell it's wet. At 1200 dpi you |
| can tell it's painted on. I suppose at 2400 dpi you can tell |
| if the paint is giving her a rash. (So says Joshua R. Poulson)|
+---------------------------------------------------------------+
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Help! Can't recover!
1999-01-12 18:29 ` Michal Jaegermann
@ 1999-01-12 20:11 ` Adam C. Powell, IV
1999-01-12 20:50 ` Paul Tomblin
1999-01-12 20:52 ` Michal Jaegermann
0 siblings, 2 replies; 24+ messages in thread
From: Adam C. Powell, IV @ 1999-01-12 20:11 UTC (permalink / raw)
To: axp-list
Michal Jaegermann wrote:
> Adam C. Powell, IV wrote:
> >
> > if I type the root
> > password it gives:
> >
> > -tcsh: error in loading shared libraries
>
> People who switch root shell to tcsh get exactly what they deserve!
I know, I know, mea culpa, I'll never do it again. (And for the record,
I can use vi, not very well, but well enough to do what I need to. :-)
> Next we will learn that you write shell scripts in csh? Other
> perversions? Big sigh!
D'oh! But only in user space (not for the system).
> Add on your boot line 'init=/bin/bash' and be done with it.
A curious thing: THIS DOES NOT WORK with kernel 2.1.125 (hangs
irrevocably after "Freeing unused kernel memory: 48K freed"), but does
with the old 2.0.34 that was still sitting around. Is this a MILO issue
with development kernels in general, or just a temporary thing that has
since gone away? I'll see if it works with 2.2-pre6 (or 7) as soon as I
can...
> p.s. What exactly tcsh gains you over bash? I know what an answer
> will be for a comparison with an "original Bourne" but this is not
> that one.
Dumb little things like ^D to list possible completions and intelligent
completion with extensions. Definitely not worth this hardship.
Thanks, everyone, for the emergency help! You are all wonderful
people. LINUX SUPPORT RULES!!
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 | \||_> |
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Help! Can't recover!
1999-01-12 18:48 ` Adam C. Powell, IV
@ 1999-01-12 20:33 ` Michal Jaegermann
1999-01-14 5:40 ` Jonathan Vafai
0 siblings, 1 reply; 24+ messages in thread
From: Michal Jaegermann @ 1999-01-12 20:33 UTC (permalink / raw)
To: axp-list
Adam C. Powell, IV wrote:
>
> Michal Jaegermann wrote:
>
> > Start installer from a ram disk, as usual. Tell it that you have
> > things to install on a hard drive and that you want to upgrade
> > (do not worry if these answers are truthful or not :-). After
> > that hit 'Alt-F2' and you will be at shell prompt (ash) with some
> > minimal set of tools. e2fsck is among those.
>
> Cool, it worked. But now I can't seem to mount read-only.
You do not need to mount anything to run e2fsck. Actually it
is better to run with an umounted device.
> I try "e2fsck /tmp/hda4" or "e2fsck hda4" or "e2sfck /dev/hda4" or "e2fsck
> /mnt/usr" with hda4 mounted or unmounted, and it always gives me "No such
> file or directory while trying to open ..."
Well, you need to have /tmp/hda4 or /dev/hda4 or whatever.
> So I try "mount -o ro hda4 /mnt/usr" but the mount on the installer seems to
> only recognize the -t option.
Correct. So do not use anything else. :-) This is not the same 'mount'
as on your hard drive.
Try "mount -t ext2 hd4 /mnt ; umount /mnt". This action will **create**
/tmp/hda4 node and that is all what you need.
Using this "installer environment" is an exercise in a "parallel
thinking". :-)
Michal
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Help! Can't recover!
1999-01-12 20:11 ` Adam C. Powell, IV
@ 1999-01-12 20:50 ` Paul Tomblin
1999-01-13 9:03 ` Martin Ostermann
1999-01-12 20:52 ` Michal Jaegermann
1 sibling, 1 reply; 24+ messages in thread
From: Paul Tomblin @ 1999-01-12 20:50 UTC (permalink / raw)
To: axp-list
Quoting Adam C. Powell, IV (adam.powell@nist.gov):
> > p.s. What exactly tcsh gains you over bash? I know what an answer
> > will be for a comparison with an "original Bourne" but this is not
> > that one.
>
> Dumb little things like ^D to list possible completions and intelligent
> completion with extensions. Definitely not worth this hardship.
In bash, you get that by hitting tab twice. Not exactly a hardship.
--
Paul Tomblin, not speaking for anybody.
"But I heard him exclaim, as he climbed in the night
Merry Christmas to all, I have traffic in sight" - Phyllis Moses
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Help! Can't recover!
1999-01-12 20:11 ` Adam C. Powell, IV
1999-01-12 20:50 ` Paul Tomblin
@ 1999-01-12 20:52 ` Michal Jaegermann
1999-01-12 21:53 ` Adam C. Powell, IV
1 sibling, 1 reply; 24+ messages in thread
From: Michal Jaegermann @ 1999-01-12 20:52 UTC (permalink / raw)
To: axp-list
Adam C. Powell, IV wrote:
>
> > p.s. What exactly tcsh gains you over bash? I know what an answer
> > will be for a comparison with an "original Bourne" but this is not
> > that one.
>
> Dumb little things like ^D to list possible completions and intelligent
> completion with extensions.
Ah, that. Did you try Tab key in bash, by any chance; or Esc-Esc?
--mj
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Help! Can't recover!
1999-01-12 20:52 ` Michal Jaegermann
@ 1999-01-12 21:53 ` Adam C. Powell, IV
1999-01-12 22:49 ` Michal Jaegermann
0 siblings, 1 reply; 24+ messages in thread
From: Adam C. Powell, IV @ 1999-01-12 21:53 UTC (permalink / raw)
To: axp-list
Michal Jaegermann wrote:
> Ah, that. Did you try Tab key in bash, by any chance; or Esc-Esc?
Yes, tried tab, but not twice. (It's not _that_ obvious, is it? :-)
Thanks again!! Everything works beautifully now.
However, the kernel startup option "init=/bin/bash" still does not work. It
dies at:
Freeing unused kernel memory: 48k freed
: Can't open
Maybe a new MILO is needed for recent kernels?
Thanks again everyone, as I said, LINUX SUPPORT RULES!
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 | \||_> |
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Help! Can't recover!
1999-01-12 21:53 ` Adam C. Powell, IV
@ 1999-01-12 22:49 ` Michal Jaegermann
0 siblings, 0 replies; 24+ messages in thread
From: Michal Jaegermann @ 1999-01-12 22:49 UTC (permalink / raw)
To: axp-list
Adam C. Powell, IV wrote:
>
> However, the kernel startup option "init=/bin/bash" still does not work. It
> dies at:
> Freeing unused kernel memory: 48k freed
Hm. I do not remember seeing that. This sounds like freeing of
memory used only in initalizaton of kernel is going south.
What about 'init=/bin/ash' on your machine? (Probably it should
not make a difference, but who knows?)
Michal
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Help! Can't recover!
1999-01-12 20:50 ` Paul Tomblin
@ 1999-01-13 9:03 ` Martin Ostermann
0 siblings, 0 replies; 24+ messages in thread
From: Martin Ostermann @ 1999-01-13 9:03 UTC (permalink / raw)
To: Paul Tomblin; +Cc: axp-list
On Tue, 12 Jan 1999 15:50:53 -0500, Paul Tomblin <ptomblin@xcski.com> said:
> Quoting Adam C. Powell, IV (adam.powell@nist.gov):
>> > p.s. What exactly tcsh gains you over bash? I know what an answer
>> > will be for a comparison with an "original Bourne" but this is not
>> > that one.
>>
>> Dumb little things like ^D to list possible completions and intelligent
>> completion with extensions. Definitely not worth this hardship.
> In bash, you get that by hitting tab twice. Not exactly a hardship.
Well, why I don't use tcsh myself, but from what I heard the command
line completion options are much more powerfull: E.g. it's can be
aware about the options certain commands take. It's also capable to
distingush by itself whether a file or a host name is needed for
completion.
Martin
--
Martin Ostermann | mailto:ost+sig0@comnets.rwth-aachen.de
Communication Networks | http://www.comnets.rwth-aachen.de/~ost
Aachen University of Technology | phone: ++49/241/807917
Germany | fax: ++49/241/8890378
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Help! Can't recover!
1999-01-12 20:33 ` Michal Jaegermann
@ 1999-01-14 5:40 ` Jonathan Vafai
1999-01-16 20:58 ` geerten kuiper
0 siblings, 1 reply; 24+ messages in thread
From: Jonathan Vafai @ 1999-01-14 5:40 UTC (permalink / raw)
To: axp-list
Is someone adding this to the FAQ?
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Help! Can't recover!
1999-01-14 5:40 ` Jonathan Vafai
@ 1999-01-16 20:58 ` geerten kuiper
1999-01-19 15:53 ` Adam C. Powell, IV
0 siblings, 1 reply; 24+ messages in thread
From: geerten kuiper @ 1999-01-16 20:58 UTC (permalink / raw)
To: axp-list
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.
Groeten,
Geerten.
Geerten Kuiper | "It is customary to append a signature or
Corn. Houtmanstraat 113 | .sig to a mail message, usually containing
2593 RG Den Haag | information on the author, along with a
Nederland | joke or a motto."
| Olaf Kirch
| LINUX Network Administrators Guide
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Help! Can't recover!
1999-01-16 20:58 ` geerten kuiper
@ 1999-01-19 15:53 ` Adam C. Powell, IV
1999-01-19 17:29 ` Michal Jaegermann
0 siblings, 1 reply; 24+ messages in thread
From: Adam C. Powell, IV @ 1999-01-19 15:53 UTC (permalink / raw)
To: axp-list
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 | \||_> |
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Help! Can't recover!
1999-01-19 15:53 ` Adam C. Powell, IV
@ 1999-01-19 17:29 ` Michal Jaegermann
0 siblings, 0 replies; 24+ messages in thread
From: Michal Jaegermann @ 1999-01-19 17:29 UTC (permalink / raw)
To: axp-list
Adam C. Powell, IV wrote:
>
....
>
> 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?
An ommision actually. Add a half sentence above that explains that you
need 'umount' because you really do not want to run e2fsck on a mounted
file system - in particular when it is not healthy; and that you can
repeat this 'mount ... ; umount' stuff for all partitions which need
a check.
As an aside - if you cannot avoid a run of fsck on a mounted partition at
least remount it as "read only". On Red Hat systems you can always force
fsck during a **normal startup** by adding a file /fsckoptions with any
options for fsck you care to add there. See file /etc/rc.d/rs.sysinit
for details (and you can always add such mechanism if not present on
your system).
For the last week, or so, on tsx-11.mit.edu you can find version
1.14 of e2fsprogs (you likely have now 1.12 or earlier). Source rpm
which is there recompiles on Alpha without any fuss. The new version,
in particular, has an improved interaction with 'badblocks' program;
important if your disk is acting funny on a media level.
Last, but not least, starting X automatically in startup files of
any account, but 'root' in particular, may land you in a hot water.
Using different run level and initab is really a better idea (root can
boot in any run level s/he wants). Red Hat supplied /etc/inittab even
has an entry for xdm on run level 5 so a simple action of changing '3'
to '5' (a default run level in /etc/inittab) and rebooting will start
X windows for you; this will also provide a remote X-login window from
machines running 'chooser'. Before you change defaults make sure
that X is correctly configured for your card/monitor combo.
Michal
^ permalink raw reply [flat|nested] 24+ messages in thread
end of thread, other threads:[~1999-01-19 17:54 UTC | newest]
Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-12 16:56 Help! Can't recover! Adam C. Powell, IV
1999-01-12 17:06 ` warp
1999-01-12 17:13 ` warp
1999-01-12 17:43 ` Adam C. Powell, IV
1999-01-12 17:49 ` Greg Lindahl
1999-01-12 18:15 ` B. James Phillippe
1999-01-12 18:31 ` Greg Lindahl
1999-01-12 18:32 ` Adam C. Powell, IV
1999-01-12 18:02 ` B. James Phillippe
1999-01-12 18:29 ` Michal Jaegermann
1999-01-12 20:11 ` Adam C. Powell, IV
1999-01-12 20:50 ` Paul Tomblin
1999-01-13 9:03 ` Martin Ostermann
1999-01-12 20:52 ` Michal Jaegermann
1999-01-12 21:53 ` Adam C. Powell, IV
1999-01-12 22:49 ` Michal Jaegermann
1999-01-12 19:04 ` Bob Taylor
1999-01-12 18:04 ` Michal Jaegermann
1999-01-12 18:48 ` Adam C. Powell, IV
1999-01-12 20:33 ` Michal Jaegermann
1999-01-14 5:40 ` Jonathan Vafai
1999-01-16 20:58 ` geerten kuiper
1999-01-19 15:53 ` Adam C. Powell, IV
1999-01-19 17:29 ` Michal Jaegermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox