From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
To: "axp-list@redhat.com" <axp-list@redhat.com>
Subject: RE: rescue root floppy
Date: Fri, 8 May 1998 18:27:49 +0200 (MET DST) [thread overview]
Message-ID: <Pine.GSO.3.96.980508181657.8971A-100000@delta.ds2.pg.gda.pl> (raw)
In-Reply-To: <Pine.LNX.3.95.980508071017.7075B-100000@air.steve.net>
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 +
next prev parent reply other threads:[~1998-05-08 17:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-05-08 8:29 rescue root floppy Alan Wood
1998-05-08 11:11 ` Steven N. Hirsch
1998-05-08 16:27 ` Maciej W. Rozycki [this message]
1998-05-08 18:19 ` H. Peter Anvin
1998-05-08 14:30 ` Jeff Sturm
1998-05-08 17:36 ` Cornelius Creedon
-- strict thread matches above, loose matches on Subject: below --
1998-05-08 21:41 Greg Lindahl
1998-05-10 4:02 ` Jack Wathey
1998-05-08 13:42 Alan Wood
1998-05-08 4:01 Jack Wathey
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox