* rescue root floppy
@ 1998-05-08 4:01 Jack Wathey
0 siblings, 0 replies; 10+ messages in thread
From: Jack Wathey @ 1998-05-08 4:01 UTC (permalink / raw)
To: axp-list
Dear Alpha Linux folks,
I've been struggling in vain to make a set of rescue floppies for my
alpha linux machines, following the instructions in the
Bootdisk.HOWTO. Of course, that was written by someone running
Slackware on an Intel system, so I can't follow it to the letter. I'm
using SRM firmware and aboot. The boot floppy works fine, and the
compressed root floppy appears to load into the ramdisk and mount
successfully, up to the point where it gives me a login prompt. When I
type in the user name (root), however, it immediately dies, writing
"Login incorrect" for a barely visible instant at the bottom of the
screen, then something respawns and I get another login prompt, and the
same thing happens. It never asks for a password.
My best guess is that I've left out some critical executable or .so file,
or that I have something wrong in the scripts under rc.d.
My question is: do you know from this description what's wrong? If
not, does anyone have a working rescue root floppy image that I can use as a
starting point? Even an intel root floppy would help, if it's for a
redhat system. I looked on the CD's and the RedHat ftp site, but all I
could find were boot and install images. The install image appears
much too incomplete to support login and all the other things one needs
to do with a rescue disk.
TIA,
Jack Wathey
PS: Here's the info on my system:
OS: RedHat 4.2
CPU: DEC Alpha 21164 533 MHz LX motherboard
RAM: 128 Mb
SCSI controller: Intraserver ITI-3140U UltraWide
Hard drives: two Quantum Atlas UW SCSI drives, 2Gb each; 1 Seagate Hawk 4 Gb
CDROM: Toshiba 12X, SCSI-2
Ethernet card: D-Link DFE-500TX ProFAST 10/100 adapter
Video card: Matrox millenium II
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: rescue root floppy
@ 1998-05-08 8:29 Alan Wood
1998-05-08 11:11 ` Steven N. Hirsch
1998-05-08 14:30 ` Jeff Sturm
0 siblings, 2 replies; 10+ messages in thread
From: Alan Wood @ 1998-05-08 8:29 UTC (permalink / raw)
To: axp-list@redhat.com, 'Jack Wathey'
Jack Wrote :
>Dear Alpha Linux folks,
>
>I've been struggling in vain to make a set of rescue floppies for my
>alpha linux machines, following the instructions in the
>Bootdisk.HOWTO. Of course, that was written by someone running
>Slackware on an Intel system, so I can't follow it to the letter. I'm
>using SRM firmware and aboot. The boot floppy works fine, and the
>compressed root floppy appears to load into the ramdisk and mount
>successfully, up to the point where it gives me a login prompt. When I
>type in the user name (root), however, it immediately dies, writing
>"Login incorrect" for a barely visible instant at the bottom of the
>screen, then something respawns and I get another login prompt, and the
>same thing happens. It never asks for a password.
>
>My best guess is that I've left out some critical executable or .so file,
>or that I have something wrong in the scripts under rc.d.
>
[snip]
My reckoning is that you are missing /bin/login or one of it's .so files.
$ ldd /bin/login
libdl.so.2 => /lib/libdl.so.2 (0x0000015555558000)
libpam.so.0 => /lib/libpam.so.0.57 (0x000001555565c000)
libpam_misc.so.0 => /lib/libpam_misc.so.0.57 (0x0000015555764000)
libc.so.6 => /lib/libc.so.6 (0x0000015555868000)
/lib/ld.so.1 => /lib/ld.so.1 (0x0000000000000000)
As this uses PAM, it may need the /etc/pam.* files, and if these reference
any of the PAM modules, then these will need to be in /lib/security.
Alan Wood
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: rescue root floppy
1998-05-08 8:29 Alan Wood
@ 1998-05-08 11:11 ` Steven N. Hirsch
1998-05-08 16:27 ` Maciej W. Rozycki
1998-05-08 18:19 ` H. Peter Anvin
1998-05-08 14:30 ` Jeff Sturm
1 sibling, 2 replies; 10+ messages in thread
From: Steven N. Hirsch @ 1998-05-08 11:11 UTC (permalink / raw)
To: Alan Wood; +Cc: axp-list@redhat.com, 'Jack Wathey'
On Fri, 8 May 1998, Alan Wood wrote:
> Jack Wrote :
> >Dear Alpha Linux folks,
> >
> >I've been struggling in vain to make a set of rescue floppies for my
> >alpha linux machines, following the instructions in the
> [snip]
>
> My reckoning is that you are missing /bin/login or one of it's .so files.
>
> $ ldd /bin/login
> libdl.so.2 => /lib/libdl.so.2 (0x0000015555558000)
> libpam.so.0 => /lib/libpam.so.0.57 (0x000001555565c000)
> libpam_misc.so.0 => /lib/libpam_misc.so.0.57 (0x0000015555764000)
> libc.so.6 => /lib/libc.so.6 (0x0000015555868000)
> /lib/ld.so.1 => /lib/ld.so.1 (0x0000000000000000)
>
> As this uses PAM, it may need the /etc/pam.* files, and if these reference
> any of the PAM modules, then these will need to be in /lib/security.
Yes, and by that time you are out of room on a floppy. I've been through
this exact exercise...
In order to pull it off, you'd need to build a non-Pamified login (and
perhaps other things as well).
Steve
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: rescue root floppy
@ 1998-05-08 13:42 Alan Wood
0 siblings, 0 replies; 10+ messages in thread
From: Alan Wood @ 1998-05-08 13:42 UTC (permalink / raw)
To: axp-list@redhat.com
Steve Replied with:
>
>
>On Fri, 8 May 1998, Alan Wood wrote:
>
>> Jack Wrote :
>> >Dear Alpha Linux folks,
>> >
>> >I've been struggling in vain to make a set of rescue floppies for my
>> >alpha linux machines, following the instructions in the
>
[snipped again]
>>
>> As this uses PAM, it may need the /etc/pam.* files, and if these reference
>> any of the PAM modules, then these will need to be in /lib/security.
>
>Yes, and by that time you are out of room on a floppy. I've been through
>this exact exercise...
>
>In order to pull it off, you'd need to build a non-Pamified login (and
>perhaps other things as well).
>
>Steve
That is true, [so get a bigger floppy. I am sure I have a 5.25" one here
somewhere ;-)]
This would also mean that you will need to rebuilt anything else that you
have on the floppy that uses PAM. Probably worth checking with ldd on the
major items. The other option is, what would be the effect of a blank
/etc/pam.conf and empty /etc/pam.d/ directory? Would that remove the
need for /lib/security, or would it just stop PAM letting anything in?
Alan
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: rescue root floppy
1998-05-08 8:29 Alan Wood
1998-05-08 11:11 ` Steven N. Hirsch
@ 1998-05-08 14:30 ` Jeff Sturm
1998-05-08 17:36 ` Cornelius Creedon
1 sibling, 1 reply; 10+ messages in thread
From: Jeff Sturm @ 1998-05-08 14:30 UTC (permalink / raw)
To: axp-list
Why does a rescue floppy need /bin/login at all? Why not just start bash
from /sbin/init? Seems like it would be much more compact...
On Fri, 8 May 1998, Alan Wood wrote:
> Jack Wrote :
> >Dear Alpha Linux folks,
> >
> >I've been struggling in vain to make a set of rescue floppies for my
> >alpha linux machines, following the instructions in the
> >Bootdisk.HOWTO. Of course, that was written by someone running
> >Slackware on an Intel system, so I can't follow it to the letter. I'm
> >using SRM firmware and aboot. The boot floppy works fine, and the
> >compressed root floppy appears to load into the ramdisk and mount
> >successfully, up to the point where it gives me a login prompt. When I
> >type in the user name (root), however, it immediately dies, writing
> >"Login incorrect" for a barely visible instant at the bottom of the
> >screen, then something respawns and I get another login prompt, and the
> >same thing happens. It never asks for a password.
> >
> >My best guess is that I've left out some critical executable or .so file,
> >or that I have something wrong in the scripts under rc.d.
> >
> [snip]
>
> My reckoning is that you are missing /bin/login or one of it's .so files.
>
> $ ldd /bin/login
> libdl.so.2 => /lib/libdl.so.2 (0x0000015555558000)
> libpam.so.0 => /lib/libpam.so.0.57 (0x000001555565c000)
> libpam_misc.so.0 => /lib/libpam_misc.so.0.57 (0x0000015555764000)
> libc.so.6 => /lib/libc.so.6 (0x0000015555868000)
> /lib/ld.so.1 => /lib/ld.so.1 (0x0000000000000000)
>
> As this uses PAM, it may need the /etc/pam.* files, and if these reference
> any of the PAM modules, then these will need to be in /lib/security.
>
>
> Alan Wood
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: rescue root floppy
1998-05-08 11:11 ` Steven N. Hirsch
@ 1998-05-08 16:27 ` Maciej W. Rozycki
1998-05-08 18:19 ` H. Peter Anvin
1 sibling, 0 replies; 10+ messages in thread
From: Maciej W. Rozycki @ 1998-05-08 16:27 UTC (permalink / raw)
To: axp-list@redhat.com
On Fri, 8 May 1998, Steven N. Hirsch wrote:
> On Fri, 8 May 1998, Alan Wood wrote:
>
> > As this uses PAM, it may need the /etc/pam.* files, and if these reference
> > any of the PAM modules, then these will need to be in /lib/security.
>
> Yes, and by that time you are out of room on a floppy. I've been through
> this exact exercise...
>
> In order to pull it off, you'd need to build a non-Pamified login (and
> perhaps other things as well).
Why? All necessary binaries including PAM libraries fit perfectly on a
single floppy:
# ls -la root.img*
-r--r--r-- 1 root root 1285201 Mar 1 18:40 root.img.gz
-rw-r--r-- 1 root root 6291456 Mar 1 18:40 root.img
# mount -o loop root.img rd
# df rd
Filesystem 1024-blocks Used Available Capacity Mounted on
/root/alpha/root.img 5371 3739 1632 70% /root/alpha/rd
# cd rd
# chroot . bash
# ldd /bin/login
libcrypt.so.1.1 => /lib/libcrypt.so.1.1 (0x0000020000002000)
libpam.so.0 => /lib/libpam.so.0 (0x000002000013c000)
libdl.so.2.1 => /lib/libdl.so.2.1 (0x0000020000246000)
libpam_misc.so.0 => /lib/libpam_misc.so.0 (0x000002000034a000)
libc.so.6.1 => /lib/libc.so.6.1 (0x000002000044c000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0000020001000000)
# ls /lib/*
/lib/ld-2.0.6.so /lib/libnss_db.so.1.1
/lib/ld-linux.so.2 /lib/libnss_dns-2.0.6.so
/lib/libc-2.0.6.so /lib/libnss_dns.so.1.1
/lib/libc.so.6.1 /lib/libnss_files-2.0.6.so
/lib/libcom_err.so.2 /lib/libnss_files.so.1.1
/lib/libcom_err.so.2.0 /lib/libnss_nis-2.0.6.so
/lib/libcrypt-2.0.6.so /lib/libnss_nis.so.1.1
/lib/libcrypt.so.1.1 /lib/libpam.so.0
/lib/libdl-2.0.6.so /lib/libpam.so.0.59
/lib/libdl.so.2.1 /lib/libpam_misc.so.0
/lib/libe2p.so.2 /lib/libpam_misc.so.0.59
/lib/libe2p.so.2.3 /lib/libproc.so.1.2
/lib/libext2fs.so.2 /lib/libtermcap.so.2
/lib/libext2fs.so.2.3 /lib/libtermcap.so.2.0.8
/lib/libnsl-2.0.6.so /lib/libutil-2.0.6.so
/lib/libnsl.so.1.1 /lib/libutil.so.1.1
/lib/libnss_compat-2.0.6.so /lib/libuuid.so.1
/lib/libnss_compat.so.1.1 /lib/libuuid.so.1.1
/lib/libnss_db-2.0.6.so
/lib/security:
pam_pwdb.so
Seems that everthing necessary is in place and there is still some room
left -- the image is somewhat smaller than 1474560 bytes.
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: rescue root floppy
1998-05-08 14:30 ` Jeff Sturm
@ 1998-05-08 17:36 ` Cornelius Creedon
0 siblings, 0 replies; 10+ messages in thread
From: Cornelius Creedon @ 1998-05-08 17:36 UTC (permalink / raw)
To: axp-list
right.
i have also made a set where 'linuxrc' (is that the name?) simply points
to init, and init fails to find an initrunlevel, and prompts for a
runlevel, and just enter 'S' (man init?)
works for me...
-cc
On Fri, 8 May 1998, Jeff Sturm wrote:
>
> Why does a rescue floppy need /bin/login at all? Why not just start bash
> from /sbin/init? Seems like it would be much more compact...
>
> On Fri, 8 May 1998, Alan Wood wrote:
> > Jack Wrote :
> > >Dear Alpha Linux folks,
> > >
> > >I've been struggling in vain to make a set of rescue floppies for my
> > >alpha linux machines, following the instructions in the
[snip]
> > >My best guess is that I've left out some critical executable or .so file,
> > >or that I have something wrong in the scripts under rc.d.
> > >
> > [snip]
> >
> > My reckoning is that you are missing /bin/login or one of it's .so files.
> >
> > $ ldd /bin/login
> > libdl.so.2 => /lib/libdl.so.2 (0x0000015555558000)
> > libpam.so.0 => /lib/libpam.so.0.57 (0x000001555565c000)
> > libpam_misc.so.0 => /lib/libpam_misc.so.0.57 (0x0000015555764000)
> > libc.so.6 => /lib/libc.so.6 (0x0000015555868000)
> > /lib/ld.so.1 => /lib/ld.so.1 (0x0000000000000000)
> >
> > As this uses PAM, it may need the /etc/pam.* files, and if these reference
> > any of the PAM modules, then these will need to be in /lib/security.
> >
> >
> > Alan Wood
> >
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: rescue root floppy
1998-05-08 11:11 ` Steven N. Hirsch
1998-05-08 16:27 ` Maciej W. Rozycki
@ 1998-05-08 18:19 ` H. Peter Anvin
1 sibling, 0 replies; 10+ messages in thread
From: H. Peter Anvin @ 1998-05-08 18:19 UTC (permalink / raw)
To: axp-list
> Yes, and by that time you are out of room on a floppy. I've been through
> this exact exercise...
>
> In order to pull it off, you'd need to build a non-Pamified login (and
> perhaps other things as well).
Why? If this is for a rescue floppy, why do you need login at all? I
just put "bash -i" in /linuxrc and skip init and all its comrades.
-hpa
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: rescue root floppy
@ 1998-05-08 21:41 Greg Lindahl
1998-05-10 4:02 ` Jack Wathey
0 siblings, 1 reply; 10+ messages in thread
From: Greg Lindahl @ 1998-05-08 21:41 UTC (permalink / raw)
To: axp-list
> I've been struggling in vain to make a set of rescue floppies for my
> alpha linux machines, following the instructions in the
> Bootdisk.HOWTO.
You might find "YARD" interesting reading as well.
I made an alternate install floppy. I don't think a rescue floppy
would fit.
If you have a cd-rom, of course, you can just start the install
process and go until you have a shell. Once the cd is mounted I think
you may have enough stuff to rescue, if you can set your path
correctly.
-- g
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: rescue root floppy
1998-05-08 21:41 rescue root floppy Greg Lindahl
@ 1998-05-10 4:02 ` Jack Wathey
0 siblings, 0 replies; 10+ messages in thread
From: Jack Wathey @ 1998-05-10 4:02 UTC (permalink / raw)
To: Greg Lindahl; +Cc: axp-list
Many thanks to all who responded! I now have lots of great ideas to
try.
Cheers,
Jack
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~1998-05-10 4:02 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-08 21:41 rescue root floppy Greg Lindahl
1998-05-10 4:02 ` Jack Wathey
-- strict thread matches above, loose matches on Subject: below --
1998-05-08 13:42 Alan Wood
1998-05-08 8:29 Alan Wood
1998-05-08 11:11 ` Steven N. Hirsch
1998-05-08 16:27 ` Maciej W. Rozycki
1998-05-08 18:19 ` H. Peter Anvin
1998-05-08 14:30 ` Jeff Sturm
1998-05-08 17:36 ` Cornelius Creedon
1998-05-08 4:01 Jack Wathey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox