Warning: this is an htmlized version!
The original is across this link,
and the conversion rules are here.
#######
#
# E-scripts on installing RH on partitions, small partitions,
# floppies, etc.
#
# Note 1: use the eev command (defined in eev.el) and the
# ee alias (in my .zshrc) to execute parts of this file.
# Executing this file as a whole makes no sense.
#
# Note 2: be VERY careful and make sure you understand what
# you're doing.
#
# Note 3: If you use a shell other than zsh things like |&
# and the for loops may not work.
#
# Note 4: I always run as root.
#
# Note 5: some parts are too old and don't work anymore. Some
# never worked.
#
# Note 6: the definitions for the find-xxxfile commands are on my
# .emacs.
#
# Note 7: if you see a strange command check my .zshrc -- it may
# be defined there as a function or an alias.
#
# Note 8: the sections without dates are always older than the
# sections with dates.
#
# This file is at <http://angg.twu.net/e/redhat.e>
#           or at <http://angg.twu.net/e/redhat.e.html>.
#        See also <http://angg.twu.net/emacs.html>,
#                 <http://angg.twu.net/.emacs[.html]>,
#                 <http://angg.twu.net/.zshrc[.html]>,
#                 <http://angg.twu.net/escripts.html>,
#             and <http://angg.twu.net/>.
#
#######





# «.prepare_redhat»	(to "prepare_redhat")
# «.chroot-shell»	(to "chroot-shell")
# «.chroot_to_redhat»	(to "chroot_to_redhat")




#####
#
# RedHat 6.1 installed on /dev/hdd5
# 2001may23
#
#####

# «prepare_redhat»  (to ".prepare_redhat")
#*
# (find-fline "/etc/fstab" "/hdd5")
rm -v /redhat
ln -s hdd5 /redhat
mount /hdd5
mount -t proc proc2 /redhat/proc

#*
# (find-fline "/redhat/etc/inittab")
# (find-fline "/etc/inittab")
#7:2345:respawn:chroot /redhat /sbin/mingetty tty7
#8:2345:respawn:chroot /redhat /sbin/mingetty tty8
telinit q

#*
# (find-es "grub" "grub-adjust")
# (find-es "grub" "menu.lst")
mount -o remount,rw /hda1
cp -iv /redhat/boot/vmlinuz-2.2.12-20 /hda1/boot/grub/vmlinuz-2.2.12-20

#title  RH 6.1 root=/dev/hdd5 kernel=(hd0,0)/boot/grub/vmlinuz-2.2.12-20
#  kernel (hd0,0)/boot/grub/vmlinuz-2.2.12-20 root=/dev/hdd5 ro vga=1

#*
makeLedrxtgz
mkdir /redhat/home/root
cp -v ~/TH/L/edrx.tgz /redhat/home/root/
cd /redhat/home/root/
tar -xvzf edrx.tgz

# (find-fline "/redhat/root/.bashrc")
#alias logedrx='HOME=/home/root zsh'

#*



#####
#
# chroot to RedHat
#
#####

# «chroot_to_redhat»  (to ".chroot_to_redhat")
#*
# Mount the RH root and a /proc (and a /dev/pts) inside it, and point
# $EE and $EEG to files inside the RH partition.
rm -v /redhat
ln -s hdd5 /redhat
mount /hdd5
mount -t proc proc2 /redhat/proc
mount -t devpts devpts2 /redhat/dev/pts

# Emacs takes much longer to start without this.
cd /redhat/etc/
[[ -e hosts.orig ]] || mv hosts hosts.orig
cp -v /etc/hosts hosts

#*
# Make root in /redhat use the $EE and $EEG files that I use now
rm -v $EEG; ln -s /redhat$EEG $EEG
rm -v $EE;  ln -s /redhat$EE  $EE ; laf $EE $EEG; return

#*
# When finished with RH umount the extra /proc and /dev/pts...
umount /redhat/proc
umount /redhat/dev/pts

#*
# And delete the $EE/$EEG links. This is very important!
rm -v $EE $EEG

#*
# Update the files in the RH home with my tourism package.
makeLedrxtgz
# (find-fline "/redhat/home/root/")
#rm -Rv /redhat/home/root; mkdir -p /redhat/home/root/bin/
#
mkdir /redhat/home/root
cp -v ~/TH/L/edrx.tgz /redhat/home/root/
cd /redhat/home/root/
tar -xvzf edrx.tgz

#*
# (find-angg ".zshrc" "chroot-redhat-zsh")
chroot-redhat-zsh

#*
# Fixing some things to make RH happier when running chrooted
# (find-fline "/redhat/boot/")
# System.map -> System.map-2.2.12-20
cp -v /boot/System.map-2.2.18-edrx /redhat/boot/
ln -sf System.map-2.2.18-edrx /redhat/boot/System.map
laf /redhat/boot/

cd /redhat/dev/
# The installation default is cdrom -> hdb
ln -sf scd0 cdrom
# (find-fline "/redhat/etc/fstab" "cdrom")

#*
# Under chroot:
mkdir ~/tmp/
rpm -qa | sort | tee ~/tmp/orqa
# (find-fline "/redhat/mnt/cdrom/RedHat/RPMS/")
# (find-fline "/redhat/home/root/tmp/orqa")
# (find-fline "~/tmp/redhat61-orpmqipl")
# (find-es "rpm" "rpm-contents")
cd /mnt/cdrom/RedHat/RPMS/
rpm -iv strace*
rpm -iv make*
rpm -iv screen*
rpm -iv cpp*
 rpm -iv egcs-1*

rpm -iv kernel-headers*
rpm -iv glibc-devel*
rpm -iv gdb-*

#? rpm -iv tcl-*
#? rpm -iv tk-*
#? rpm -iv expect-*

#? rpm -iv XFree86-100dpi-fonts-*

#*
# Under chroot:
cd /dev/
MAKEDEV tty13 tty14

#*
# Under chroot:
export SHELL=$(w zsh)
demo gdbk; return

#*



#####
#
# X on a chrooted redhat
# 2001jul16
#
#####

#*
# (find-fline "/redhat/etc/X11/XF86Config" "font server")
# (find-fline "/etc/X11/XF86Config")
# No, don't use a font server, copy my Debian setting (edrx):
    FontPath   "/usr/X11R6/lib/X11/fonts/misc/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"

# (find-fline "/redhat/home/root/tmp/orqa")
# (find-fline "/redhat/etc/inittab")
# (find-fline "/redhat/etc/rc.d/rc3.d/" "xfs")
# (find-fline "/redhat/etc/rc.d/init.d/xfs")

#*
# (find-angg ".zshrc" "X")
xinit -- :1.0 -bpp 16 &

#*
# But it seems that XFree86-SVGA-3.3.5-3 and my SiS6326 video card
# don't like each other very much...



# (find-fline "/redhat/boot/")
# (find-fline "/redhat/etc/")
# (find-fline "/redhat/etc/lilo.conf")
# (find-fline "/redhat/etc/passwd")

# (find-pamhw3 "pam.html" "The Unix Password module")






#####
#
# Copying some cds to my HD
# 1998????
#
#####

mount -o rw,remount /big
cd /big
rm -Rv rh51 s50

# RedHat 4.2, disc 1
#
mkdir /big/a42
cd /big/a42
# Exclude the "live" directory
cp -dipvR /cdrom/[C-ir]* .

# RedHat 4.2, disc 2 (sources)
#
mkdir /big/b42
cd /big/b42
cp -dipvR /cdrom/* .

# LinuxMall Debian 1.3.1
#
mkdir /big/deb13
cd /big/deb13
# Exclude Flagship and linuxmall
cp -dipvR /cdrom/[DR-fst]* .

mount -o ro,remount /big

# (find-fline "/big/deb13/bo/disks-i386/1997-05-30/")
# (find-fline "/big/deb13/bo/disks-i386/1997-05-30/install.txt")
# (find-fline "/big/deb13/doc/debian-faq.txt")
# (find-fline "/big/deb13/doc/debian-faq.txt" "reproduce the base disks")

cd /b1
tar -xvzf /big/deb13/bo/disks-i386/1997-05-30/base1_3.tgz

# (find-fline "/b1/var/lib/dpkg/")
# (find-fline "/home/replace/fstab.0")
# (find-fline "/b1/etc/fstab")

mount -t ext2 -o loop=/dev/loop0	\
  /big/deb13/bo/disks-i386/1997-05-30/base-2.bin /A




#####
#
# Debian 1.3
#
#####

cd /b1 && rm -Rv bin boot dev etc lib root tmp sbin usr var
cd /b1 && tar -xvzf /big/deb13/bo/disks-i386/1997-05-30/base1_3.tgz
cd /

# (find-fline 
umount /big
mount -o ro /dev/hdd3 /b1/big

# (find-fline "/big/deb13/bo/disks-i386/1997-05-30/")
# (find-fline "/b1/etc/securetty")
# (find-fline "/b1/etc/passwd")

# Debian:




#####
#
# Debian in a 33M partition (as a rescue disk)
#
#####

mkdir /c2
mount /dev/hdd2 /c2
cd /c2 && rm -Rv *
cd /c2 && tar -xvzf /big/deb13/bo/disks-i386/1997-05-30/base1_3.tgz
# (find-fline "/c2/etc/securetty")
# (find-fline "/c2/etc/passwd")
# (find-fline "/c2/etc/fstab")
# (find-fline "/home/replace/fstab.0")

cd /c2
rm -v b1 b2 b5 b6 c1 big c5 proc 
mkdir b1 b2 b5 b6 c1 big c5 proc
rmdir c2
ln -s . c2

# Debian:
dpkg --root=/c2 -i /big/deb13/bo/binary-i386/shells/zsh_3.0.2-1.deb




#####
#
# rh51 install (not working)
#
#####

rm -Rv /usr/src/install
cp -dipvR /big/rh51/misc/src/install /usr/src/
cd /usr/src/install
make clean
make install |& tee omi
make install2 |& tee omi2

make |& tee om




#####
#
# rpmlib2.icn
#
#####

grep '^Name  \|^Group  ' /big/rh51/contents > ~/ogc
cd $RP; ls *.rpm > ~/ols 

# (find-fline "~/ICON/rpmlib2.icn")
~/ICON/rpmlib2 -short ypbind-3.3-7.i386.rpm

A=(~/ICON/rpmlib2 -readls ~/ols -readcomps /big/rh51/RedHat/base/comps
    -readgcontents ~/ogc)
(cd ~/ICON/ ; icont rpmlib2.icn)

$A -W gs	| sort | uniq
#$A -Wk /big/rh51/RedHat/base/comps gs
$A -Wks ~/orqa51 gl	| sort
$A -Wcompssorted gs
$A -W Ss

$A -Wcompssorted gl |& tee ~/ogl
# (find-fline "~/ogl")







#####
#
# Installing RH42 on another partition
# Part 0: making the partition chrootable
#
#####

# Check that Org, ORG, Dest and DEST are set at .zshrc -- we want
# their values at every running shell for safety; then prepare two
# scripts at the root directory that must be executed with only the
# root partition busy (log out everywhere and log in as broot).

# (find-fline "~/.zshrc" "DEST")
# (find-fline "~/ICON/anggmount.icn")
# (find-fline "/etc/inittab" "Single")

cd ~/ICON
icont anggmount.icn
~/ICON/anggmount 2 $Org $Dest
~/ICON/anggmount 1 $Org $Dest

~/ICON/anggmount 2 $Org $Dest > /$Org'then'$Dest
~/ICON/anggmount 1 $Org $Dest > /$Org'alone'

# log as broot and run "yes | . b1thenb2" manually. Then delete
# everything (well, almost) and do:

mkdir -p $DEST/var/lib/rpm/ $DEST/var/local/lib/
ln -s ../../lib/rpm $DEST/var/local/lib/rpm

# Oops, I forgot to remount /proc on $DEST/proc... and I have to kill
# some daemons to do that, ugh.

# Bugs/observations: 1) I'm copying my /etc files before installing
# the ppp package, so my ppp/options is getting renamed to
# options.orig (and I'm losing the "asyncmap 0". Is it important?) 2)
# rm /b2/home is stupid when my "real" home is the one on b2, 3)
# vga=1, 4) b1alone, 5) kernel-headers can't change something
# (permissions?), 6) ORG and DEST in the (new) .zshrc, 7) gs/gv, 8)
# /var/spool/mail/, 9) cd /usr; ln -s X11R6 X11






#####
#
# Installing RH42 on another partition
# Part 1: basic RPMs
#
#####

rpm --initdb --root $DEST

cd $DEST
gzip -cd /big/a42/RedHat/base/skeleton.cgz | cpio -i
gzip -cd /big/a42/RedHat/base/fsstnd.cgz | cpio -i

function rpinst () {
  (cd $RP
   rpm -ivh --root $DEST $* $(awk 'NF==1 {printf "%s.i386.rpm\n", $1}')
  )
}

# (find-fline "/big/a42/RedHat/base/comps")
rpinst << ---
	setup-1.7-2
	filesystem-1.3-1
	ld.so-1.7.14-4
	libc-5.3.12-18
	fileutils-3.16-1
	textutils-1.22-1
	bash-1.14.7-1
	libtermcap-2.0.8-4

	pamconfig-0.51-2
	pwdb-0.54-3
	cracklib-dicts-2.5-1
	pam-0.57-2

	MAKEDEV-2.2-9
	SysVinit-2.64-8
	adduser-1.7-1
	ash-0.2-8
	at-2.9b-2
##	bash-1.14.7-1
	bc-1.03-6
	bdflush-1.5-5
#	bootpc-061-2
	cpio-2.4.2-4
##	cracklib-dicts-2.5-1
	crontabs-1.5-1
	 db-1.85-10
	dev-2.5.1-1
#	dhcpcd-0.6-2
	diffutils-2.7-5
	e2fsprogs-1.10-0
	ed-0.2-5
#	eject-1.4-3
	etcskel-1.3-1
	file-3.22-5
##	fileutils-3.16-1
	findutils-4.1-11
	gawk-3.0.2-1
	gdbm-1.7.3-8
	getty_ps-2.0.7h-4
	gpm-1.10-8
	grep-2.0-5
	groff-1.10-8
	gzip-1.2.4-7
	hdparm-3.1-2
	info-3.9-1
	initscripts-2.92-1
	 kbd-0.91-9
	 kbdconfig-1.4-1
	 kernel-2.0.30-2
#	 kernel-modules-2.0.30-2
##	 ld.so-1.7.14-4
	less-321-3
##	 libc-5.3.12-18
#	 linuxthreads-0.5-1
	libg++-2.7.1.4-5
##	libtermcap-2.0.8-4
	 lilo-0.19-1
	logrotate-2.3-3
#	losetup-2.5l-2
	mailcap-1.0-3
	mailx-5.5.kw-6
	man-1.4h-5
#	 mkinitrd-1.6-1
	mingetty-0.9.4-3
	modules-2.0.0-5
	mount-2.5l-2
#	 mouseconfig-1.4-1
#	mt-st-0.4-2
	ncompress-4.2.4-7
	ncurses-1.9.9e-4
	net-tools-1.32.alpha-2
	newt-0.8-1
	passwd-0.50-7
##	pam-0.57-2
	procinfo-0.9-1
	procmail-3.10-10
	procps-1.01-11
	psmisc-11-4
##	pwdb-0.54-3
	readline-2.0-10
	redhat-release-4.2-1
	rootfiles-1.5-1
	rpm-2.3.11-1
	sed-2.05-6
	setconsole-1.0-1
	sendmail-8.8.5-4
	shadow-utils-960530-6
	sh-utils-1.16-4
	slang-0.99.37-2
	stat-1.5-5
	sysklogd-1.3-15
	tar-1.11.8-11
#	tcsh-6.06-10
	 termcap-9.12.6-5
##	textutils-1.22-1
	time-1.7-1
	timeconfig-1.8-1
	tmpwatch-1.2-1
	util-linux-2.5-38
	vim-4.5-2
	vixie-cron-3.0.1-14
	which-1.0-5
	zlib-1.0.4-1
#	 zoneinfo-96i-4

#	 pcmcia-cs-2.9.4-2
#	quota-1.55-4

	emacs-19.34-4
	emacs-nox-19.34-4
	zsh-3.0.2-1
	strace-3.1-3
---




#####
#
# Installing RH42 on another partition
# Part 2: dirs on other partitions, devices, /etc
#
#####

rmdir  $DEST/home;    ln -s /c1/home    $DEST/home
rmdir  $DEST/snarf;   ln -s /c5/snarf   $DEST/snarf
rm -Rv $DEST/usr/src; ln -s /b6/usr/src $DEST/usr/src

cd $DEST/dev/
ln -s ttyS0 mouse
ln -s cua2 modem
ln -s mcd  cdrom
mknod --mode=600 /dev/tty13 c 4 13
mknod --mode=600 /dev/tty14 c 4 14
mknod --mode=600 /dev/tty15 c 4 15
mknod --mode=600 /dev/tty16 c 4 16
# Why not MAKEDEV?

# (find-fline "redhat.e" "# fstab\n")
# (find-fline "/home/replace/fstab.0")
# (find-fline "/home/replace/fstab.b1")
# (find-fline "/home/replace/fstab.b2")
# (find-fline "/b1/etc/fstab")
# (find-fline "/b2/etc/fstab")
cp -v /home/replace/fstab.$Dest $DEST/etc/fstab

for i in \
	etc/HOSTNAME		\
	etc/hosts		\
	etc/hosts.allow		\
	etc/hosts.deny		\
	etc/inittab		\
	etc/mailname		\
	etc/networks		\
	etc/passwd		\
	etc/ppp/options		\
	etc/resolv.conf		\
	etc/securetty		\
	etc/sysconfig/clock		\
	etc/sysconfig/network		\
; do cp -v $ORG/$i $DEST/$i ; done

# Disabled because I lost my ide0 and I'm having to booting by floppy.
# (find-fline "/home/replace/lilo.conf")
# lilo -C /home/replace/lilo.conf

# Don't ever run this if there's something mounted on top of $DEST!
# DON'T! DON'T! DON'T!
#
# rm -Rv $DEST/{bin,boot,dev,etc,lib,mnt,proc,root,sbin,snarf,tmp,usr,var}
# rm -Rv $DEST/home




#####
#
# Installing RH42 on another partition
# Part 3: other packages
#
#####

rpm -qa --root $ORG  | sort | tee ~/orqaorg
rpm -qa --root $DEST | sort | tee ~/orqadest
diff ~/orqaorg ~/orqadest | grep '^[<>]' | tee ~/orqadiff
# (find-fline "~/orqadiff")

rpinst << ---
	NetKit-B-0.09-6
	dip-3.3.7o-9
	fetchmail-2.2-2
#	inews-1.5.1-6
	metamail-2.7-7
	ppp-2.2.0f-3
	tcp_wrappers-7.5-1
---

rpinst << ---
	XFree86-3.2-9
	XFree86-75dpi-fonts-3.2-9
#	XFree86-100dpi-fonts-3.2-9
	XFree86-SVGA-3.2-9
	XFree86-libs-3.2-9
	Xaw3d-1.3-6
	fvwm-1.24r-11
	fvwm95-icons-2.0.42a-6
	xbanner-1.3-2
	xinitrc-1.2-1
	xpm-3.4i-1
---

rpinst << ---
	make-3.75-1
	patch-2.1-4
	binutils-2.7.0.2-4
	gcc-2.7.2.1-2
	kernel-headers-2.0.30-2
	libc-devel-5.3.12-18
---

rpinst << ---
	emacs-el-19.34-4
	howto-4.2-2
	man-pages-1.15-1
---

rpinst << ---
	dialog-0.6-7
	tetex-0.4pl8-5
	tetex-xdvi-0.4pl8-5
	tetex-latex-0.4pl8-5
	tetex-dvips-0.4pl8-5
#	tetex-texmf-src-0.4pl8-5
---

rpinst << ---
	losetup-2.5l-2
	mkdosfs-ygg-0.3b-4
	mtools-3.6-2
	umsdos_progs-0.9-2
	unzip-5.12-5
	zip-2.1-1
---

rpinst << ---
	libgr-2.0.9-7
	libpng-0.89c-1
	svgalib-1.2.10-2
	zgv-2.7-5
---

rpinst << ---
	XFree86-devel-3.2-9
	autoconf-2.12-1
	bin86-0.4-1
	bison-1.25-1
	flex-2.5.4-1
	gcc-c++-2.7.2.1-2
	libtermcap-devel-2.0.8-4
	linuxthreads-0.5-1
	m4-1.4-6
	ncurses-devel-1.9.9e-4
	perl-5.003-8
	readline-devel-2.0-10
	svgalib-devel-1.2.10-2
	texinfo-3.9-1
	zlib-devel-1.0.4-1
---



# O resto é pra rodar de dentro da partição nova.

#
# (find-esfile "general.e" "glimpse/agrep")
#
cd $RBU/glimpse-4.0.src/bin/
cp -v agrep glimpse glimpseindex /usr/bin/
cd $RBU/glimpse-4.0.src/
cp -v agrep/agrep.1 glimpse.1 glimpseindex.1 /usr/man/man1/

#
# (find-esfile "net.e" "lynx 2.8")
#
cd /usr/src/lynx2-8/
make install |& tee omi
make install-help |& tee omih
cp -v $ORG/usr/lib/lynx.cfg $DEST/usr/lib/lynx.cfg

#
# (find-esfile "net.e" "wget 1.5-b14")
#
cd /usr/src/wget-1.5-b14/
make prefix=/usr install |& tee omi

#
# (find-esfile "general.e" "Icon 9.3")
#
rpm -ihv /snarf/ftp/ftp.redhat.com/pub/contrib/i386/icon-9.3-1.i386.rpm

#
# (find-esfile "psx.e" "GhostScript 5.10")
#
cd /usr/src/gs5.10
make -f unix-gcc.mak |& tee om
make -f unix-gcc.mak install |& tee omi
ln -s /usr/src/gs5.10/fonts /usr/local/share/ghostscript/fonts

rpinst --nodeps << ---
	gv-3.1.6-2
---

#
# (find-esfile "emacs.e" "elisp info files")
#
ln -s /usr/info elisp-manual-19-2.4.2
tar -xvzf /snarf/ftp/prep.ai.mit.edu/pub/gnu/elisp-manual-19-2.4.2.tar.gz \
  elisp-manual-19-2.4.2/elisp \
  elisp-manual-19-2.4.2/elisp-'[1-9]*'
rm elisp-manual-19-2.4.2

#
# ungzipped howtos
#
cd /usr/doc/HOWTO/
tar -xvzf Linux-HOWTOs.tar.gz
# ls --color | l -r





#####
#
# fstab
#
#####

{dmesg | grep '^hd'; echo; fdisk -l}
{dmesg | grep '^hd'; echo; fdisk -l} |& tee ~/o

# (find-fline "/home/replace/fstab.0")

# (find-fline "/home/replace/fstab.b1")
# (find-fline "/home/replace/fstab.b2")
# (find-fline "/b1/etc/fstab")
# (find-fline "/b2/etc/fstab")





#####
#
# Trimming and merging backups of /home
#
#####

diff -qrs /c5/home /c5/oldb3home |& tee ~/o
agrep '^Only in /c5/oldb3home' ~/o | \
  awk '{sub(/:$/, "", $3);
	sub(/\/c5\/oldb3home\//, "", $3);
	printf "%s/%s\n", $3, $4}' \
  | sort | tee ~/o2

cd /c5/oldb3home/
for i ($(<~/o2)); do echo -iv $i /c5/home/$i ; done
for i ($(<~/o2)); do mv   -iv $i /c5/home/$i ; done

# (find-node "(gawk)String Functions" "`sub(")
# (find-node "(gawk)Escape Sequences" "\\/")

diff -qrs /c5/home /big/home |& tee ~/o
#
agrep '^Only in /c5/home' ~/o | \
  awk '{sub(/:$/, "", $3);
	sub(/\/c5\/home\//, "", $3);
	printf "%s/%s\n", $3, $4}' \
  | tee ~/o2
agrep '^Only in /c5/home' ~/o | \
  awk '{sub(/:$/, "", $3);
	# sub(/\/c5\/home\//, "", $3);
	printf "%s/%s\n", $3, $4}' \
  | tee ~/o3
#
l ~/o2 ~/o3
# awk bug?

cd /c5/home/
for i ($(<~/o2)); do echo -iv $i /big/home/$i ; done
for i ($(<~/o2)); do mv   -iv $i /big/home/$i ; done

rmdir $(find * -type d)

# 98jul19:

diff -qrs /b2/home /big/home |& tee ~/o





#####
#
# Loop device partitions
#
#####

# (find-k2file "Documentation/devices.txt")
# (find-k2file "Documentation/Configure.help")
# (find-k2file "drivers/block/loop.c")
# (find-k2file "fs/vfat/namei.c")

# This is a message I found via dejanews, with keywords "mkdosfs" and
# "loop".
# (find-fline "~/makeboot")

# (find-fline "/snarf/ftp/ftp.mi.us.debian.org/debian/ls-lR")

export LOOPF=/home/LOOP
export LOOPDEV=/dev/loop0
losetup -d $LOOPDEV
dd if=/dev/zero of=$LOOPF bs=1024 count=1440
losetup $LOOPDEV $LOOPF
mke2fs $LOOPDEV

# mke2fs is ok, but mkdosfs doesn't run, as it is addicted to disk
# geometry parameters and loop devices don't seem to have geometry. As
# for vfat, I don't even know if there is a "mkvfatfs".

# How can I create a loopback file with "holes" corresponding to bad
# sectors and write it to the floppy avoiding the holes?

# It would be nice to have some gzipped images of formated floppies.

# (find-fline "/usr/src/boot-floppies/rescue.sh" "-t msdos")
# (find-node "(Yard_doc)Using a Loopback Device")




#####
#
# umsdos
#
#####

# (find-k2file "Documentation/Configure.help" "umsdos:")
# (find-k2file "Documentation/filesystems/umsdos.txt")
# (find-fline "/usr/doc/umsdos_progs-0.9-2/README")
# (find-fline "/usr/doc/HOWTO/UMSDOS-HOWTO")

rpm -qpl $RP/umsdos_progs-0.9-2.i386.rpm
rpm -iv  $RP/umsdos_progs-0.9-2.i386.rpm





#####
#
# Yard 1.13
#
#####

cd /dev/
MAKEDEV -v ram
rm ram0
mknod ram0 b 1 1
chown root:disk ram0
chmod 660 ram0

rm -Rv /usr/src/yard-1.13/
cd /usr/src/
tar -xvzf /snarf/http/www.croftj.net/~fawcett/download/yard-1.13.tar.gz
cd /usr/src/yard-1.13/

cp doc/Yard_doc.info /usr/info

ed configure <<'EOF'
15a
$config_dest    =  "/usr/src/yard-1.13/CONFIGDEST";
$lib_dest       =  "/usr/src/yard-1.13/LIBDEST";
.
w
EOF

cd /usr/src/yard-1.13/
mv -v Config.pl.in Config.pl.in.orig
cp -v ~/YARD/Config.pl Config.pl.in
./configure |& tee oc
make |& tee om
make install |& tee omi

cd /usr/src/yard-1.13/
cp -v ~/YARD/Bootdisk_Contents LIBDEST/Bootdisk_Contents

insmod $MODULES/loop.o
create_loopback_file

make_root_fs  |& tee omrf
# check_root_fs |& tee ocrf


# (find-fline "~/YARD/etc/fstab.S")
# (find-fline "~/YARD/Bootdisk_Contents")
# (find-fline "~/YARD/etc/")
# (find-fline "~/YARD/etc/rc")
# (find-fline "~/YARD/etc/inittab")

# ext2
#
umount /S
# echo 't\n2\n83\nw\n' | fdisk /dev/hdd
# mke2fs -c /dev/hdd2
mount -t ext2 /dev/hdd2 /S
rm -Rv /S/*
# cd /S ; mklost+found
cp -dipvR /mnt/* /S/
cp -v ~/YARD/etc/fstab.S /S/etc/fstab


# umsdos
#
umount /S
# echo 't\n2\n4\nw\n' | fdisk /dev/hdd
# echo 't\n2\n6\nw\n' | fdisk /dev/hdd
mkdosfs -c /dev/hdd2
mount -t umsdos /dev/hdd2 /S
rm -Rv /S/*
mkdir /S/linux
umssync /S/linux
cp -dipvR /mnt/* /S/linux/
cp -v ~/YARD/etc/fstab.S /S/linux/etc/fstab
# echo -n > /S/linux/etc/mtab


umount /mnt
losetup -d /dev/loop0
rm /c5/yardloop

umount /S

echo 'l\nq\n' | fdisk /dev/hdd
# echo 't\n2\n4\nw\n' | fdisk /dev/hdd
# echo 't\n2\n6\nw\n' | fdisk /dev/hdd
# echo 't\n2\n82\nw\n' | fdisk /dev/hdd
# echo 't\n2\n83\nw\n' | fdisk /dev/hdd
# 4="DOS 16-bit <32M", 6="DOS 16-bit >=32"
# 83="Linux native",  82="Linux swap"




cd /usr/src/yard-1.13/
agrep 4096 $(find *)
agrep Config.pl $(find *)

# (find-yardnode "Top")

# cp -v Bootdisk_Contents.minimal LIBDEST/Bootdisk_Contents

# (find-yardfile "configure" 16)
#$config_dest    =  "/usr/src/yard-1.13/CONFIGDEST";
#$lib_dest       =  "/usr/src/yard-1.13/LIBDEST";
# diff -e configure~ configure
# Now we use diff's output to automate the change.

# (find-fline "~/YARD/Config.pl")
# (find-yardfile "Config.pl")
# (find-yardfile "Config.pl.orig")

# (find-yardfile "scripts/make_root_fs")
# (find-yardfile "scripts/make_root_fs" "This is more than")
# (find-yardfile "scripts/check_root_fs")
# (find-yardfile "scripts/write_rescue_disk")

# (find-yardfile "LIBDEST/yard_utils.pl")
# (find-yardfile "LIBDEST/yard_utils.pl" "ramdisk to be unlocked")

# (find-yardfile "scripts/convert_config")
# (find-yardfile "scripts/create_loopback_file")
# (find-yardfile "scripts/create_replacements")


# (find-yardfile "README")
# (find-yardfile "Makefile")
# man ram
# man ramsize
# (find-yardnode "Thanks Acknowledgements and Theft")
# (find-fline "/usr/doc/HOWTO/Bootdisk-HOWTO")
# (find-k2file "Documentation/ramdisk.txt")
# (find-k2file "drivers/block/rd.c")



# (find-yardfile "omrf")
# (find-fline "~/YARD/Bootdisk_Contents")

# (find-fline "/c5/home/root/YARD/")
# (find-fline "/c5/home/root/YARD/notes")
# (find-fline "/c5/home/root/YARD/Bootdisk_Contents")

#
# On processing a Bootdisk_Contents file my way

# (find-node "(zsh)Shell Builtin Commands" "`print")
# (find-enode "Regexps")
# (find-fline "~/ICON/parseyard.icn")
# (find-fline "/usr/src/yard-1.13/Bootdisk_Contents")
# (find-fline "/c5/home/root/YARD/notes")
# (find-yardfile "scripts/make_root_fs" "ldd")
# (find-yardfile "scripts/make_root_fs" "file $lib")

(cd ~/ICON; icont parseyard.icn)
cd /usr/src/yard-1.13/
~/ICON/parseyard < Bootdisk_Contents

cd /mnt
file $(find *) | agrep -v ELF | sort
file $(find *) | agrep ELF | agrep statically | sort
file $(find *) | agrep ELF | agrep -v statically | sort







#####
#
# Formatting a loop partition via dosemu
#
#####

C=306
H=4
S=17
( /usr/src/dosemu-0.97.5/src/tools/periph/mkhdimage \
    -c $C -h $H -s $S
  dd if=/dev/zero bs=512 count=$[$C*$H*$S]
) > /home/hd.$C.$H.$S
#
# Now enter dos to fdisk and format the loop device (currently D:),
# then pack a clean version of it for later use.
# (find-fline    "~/98jun26.pucmail" "Subject: images")
# (find-fline "~/DOSEMU/config.edrx")
# disk { cylinders 306 heads 4 sectors 17 image "/home/hd.306.4.17" }
# A floppy has CHS=80/2/18.
#
gzip -c /home/hd.306.4.17 > ~/DOSEMU/hd.306.4.17.gz
gzip -cd ~/DOSEMU/hd.306.4.17.gz > /home/hd.306.4.17

# Mounting as /dev/loop0:
#
C=306
H=4
S=17
insmod $MODULES/loop.o
umount /L
losetup -d /dev/loop0
losetup -o 8832 /dev/loop0 /home/hd.$C.$H.$S
mount -t umsdos /dev/loop0 /L
#
# Copy the yard disk contents:
umssync /L
cp -dipvR /mnt/* /L/
#
# Go to msdos mode to zip the files:
umount /L
mount -t msdos /dev/loop0 /L

# Use the small swap partition as a dos partition:
#
# (find-fline "/etc/fstab")
free
swapoff /dev/hdd2
free
# mkdosfs -c /dev/hdd2
mkdosfs /dev/hdd2
mkdir /S
mount -t umsdos /dev/hdd2 /S
mkdir /S/linux
umssync /S/linux
cp -dipvR /mnt/* /S/linux
umount /S

# O próximo passo é pôr tudo dentro do diretório "/linux".

# (find-demufile "QuickStart" "generate a bootable")
# (find-demufile "doc/README.txt" "$_vbootfloppy = \"f")
# http://std.world.com/~bochs/
# (find-demufile "src/tools/periph/mkhdimage.c")
# (find-fline "/usr/doc/HOWTO/UMSDOS-HOWTO")

#
# Why 8832? 8832 = 128 + 8192 + 512 (=2280h), but?
# Using dd and hexl-mode, we see this "signature":
#
# 00002280: eb3c 904d 5344 4f53 352e 3000 0208 0100  .<.MSDOS5.0.....
#
# (find-k2tag "msdos_boot_sector")
# (find-k2file "fs/fat/inode.c")
# (find-k2tag "fat_read_super")
# (find-k2tag "msdos_read_super")
# (find-k2tag "UMSDOS_read_super")
# (find-k2file "fs/umsdos/inode.c" "install its linux stuff in c:\\linux")
# (find-k2file "fs/umsdos/dir.c"   "directory /DOS which points to")
# (find-enode "Display Vars" "tab-width")
# (setq tab-width 4)
#
# (find-k2file "Documentation/filesystems/umsdos.txt")
# (find-fline "/usr/doc/umsdos_progs-0.9-2/README")


cd
dd if=/home/hd.306.4.17	of=/home/root/o bs=1024 count=64
dd if=/dev/hdc		of=/home/root/o bs=1024 count=64
dd if=/dev/hdc1		of=/home/root/o bs=1024 count=64
dd if=/dev/loop0	of=/home/root/o bs=1024 count=64
# (hexl-find-file "~/o")
# (hexl-find-file "/home/hdcini")
# (find-k2file "include/






#####
#
# dosemu 0.97.5
#
#####

###
### Compiling and installing
###

rm -Rv /usr/src/dosemu-0.97.5/
cd /usr/src/
tar -xvzf /snarf/ftp/ftp.suse.com/pub/dosemu/Development/dosemu-0.97.5.tgz
cd /usr/src/dosemu-0.97.5/
# (find-demufile "QuickStart")
#
etags $(find -name '*.[ch]')
./default-configure |& tee odc
make WAIT=no |& tee om
#
# (find-demufile "src/base/init/Makefile" "CFLAGS")
cd /usr/src/dosemu-0.97.5/
rm src/base/init/parser.c
make WAIT=no |& tee om2
#
cd /usr/src/dosemu-0.97.5/
make install |& tee omi
#
# (find-demufile "etc/dosemu.users.secure")
cp -v /usr/src/dosemu-0.97.5/etc/dosemu.users.secure /etc/dosemu.users

###
### Preparing a (decent) bootable hdimage
###
#
# (find-fline "/home/4dos/config.sys")
# (find-node "(zsh)Concept Index" "array")
# (find-demufile "om" "mkfatimage16 -b")
#
# (find-demufile "doc/README.txt")
# (find-demufile "doc/dosemu-HOWTO.txt")
# (find-demufile "QuickStart")
#
cd /usr/src/dosemu-0.97.5/
cat > config.sys <<'EOF'
device=emufs.sys /home/root/DOS
shell=4dos.com /p @4dos.ini
EOF

A=(/big/home/root/DOS622/1/io.sys
   /big/home/root/DOS622/1/msdos.sys
   /usr/src/dosemu-0.97.5/config.sys
   /home/4dos/4alias
   /home/4dos/4dos.com
   /home/4dos/4dos.hlp
   /home/4dos/4help.exe
   /home/4dos/EMU/4dos.ini
   /home/4dos/EMU/4start.btm
   /home/4dos/l.com
   /home/4dos/pu.exe
   /home/4dos/pz.exe
   /home/4dos/q.exe
   /home/4dos/v25.com
   /home/4dos/v50.com
   /usr/src/dosemu-0.97.5/commands/[b-x]*
   /big/home/root/DOS622/1/fdisk.exe
   /big/home/root/DOS622/1/format.com
)
cd /usr/src/dosemu-0.97.5/
/usr/src/dosemu-0.97.5/src/tools/periph/mkfatimage16	\
  -b /home/root/DOS622/bootsector.622.b	$A	\
  > /usr/src/dosemu-0.97.5/myhdimage

# (find-fline "~/DOSEMU/config.edrx")
# (find-fline "/var/lib/dosemu/global.conf")
# (find-fline "/etc/dosemu.conf")
# (find-demufile "first-test")
#
dos -F ~/DOSEMU/config.edrx

# install=c:\lredir.exe e: LINUX\FS\home/root/DOS
# (find-demufile "src/commands/")
# (find-demufile "src/commands/lredir.c")
# (find-demufile "src/commands/lredir.readme")

##
## Mtools configuration
##
#
# Insert these lines manually.
# (find-demufile "doc/dosemu-HOWTO.txt" "drive g:  file=")
# (find-fline "/etc/mtools.conf")
# Edrx:
drive g: file="/usr/src/dosemu-0.97.5/etc/hdimage.dist" offset=8832
drive h: file="/usr/src/dosemu-0.97.5/etc/hdimage.test" offset=8832
drive i: file="/usr/src/dosemu-0.97.5/myhdimage" offset=8832

# (find-demufile "setup-hdimage")

# (find-demufile "doc/README.txt")
# (find-demufile "doc/dosemu-HOWTO.txt")
# (find-demufile "QuickStart")
# (find-demufile "src/tools/periph/")

# (find-demufile "etc/xinstallvgafont")
# (find-demufile "etc/vga.bdf")

# (find-demufile "src/base/init/parser.y")
# (find-demufile "src/base/init/lexer.l" "keywords")
# (find-demufile "src/dosext/mfs/mfs.c")
# (find-demufile "src/dosext/mfs/mfs.h")
# (find-demufile "src/commands/emufs.S")
# (find-demufile "contrib/dosC/readme.dosemu")
# (find-demufile "dexe/")

# floppy-device bootA bootB device






#####
#
# Packing large files for dos with dosemu
#
#####

e:
arj -? > o
arj a -v1000K -m0 -y traba.arj trab.zip

cd /home/root/DOS/
mcopy traba.arj arj.exe a:
mcopy traba.a01 /home/4dos/pu.exe a:

# (find-fline "~/DOS/o")





#####
#
# making dos floppies
#
#####

mkdosfs -c /dev/fd0

# old way (that can't handle bad sectors):
#
# fdformat /dev/fd0H1440
# mkdosfs /dev/fd0

mcopy \
 /D/games/acao/beast.zip	\
 /D/games/acao/blockade.zip	\
 /D/games/acao/cat.zip	\
 /D/games/acao/hhm.zip	\
 /D/games/acao/pango.zip	\
 /D/games/acao/rampage.zip	\
 /D/games/amaze/\$electro.zip	\
 /D/games/amaze/_1agent_.zip	\
 /D/games/amaze/trsisteg.zip	\
 /D/games/fbc-pboy.zip	\
 a:

cd /home/4dos/
zip ../4.zip *
mcopy ../4.zip pu.exe a:
rm ../4.zip

# How to make them bootable?

# Acho que eu guardei uma cópia de um boot sector adequado em algum
# lugar.



#####
#
# Creating new users
#
#####

# (find-fline "/etc/passwd")
# login_name:passwd:UID:GID:user_name:directory:shell
# alex::102:100:alex:/home/alex:/bin/zsh
# beth::103:100:beth:/home/beth:/bin/zsh

# (find-fline "/etc/group")

mkdir /home/edrx
cd
cp -v .emacs .zshrc /home/edrx/
cd /home
chown edrx:users $(find edrx)

mkdir /home/alex
cd
cp -v .emacs .zshrc /home/alex/
cd /home
chown alex:users $(find alex)

mkdir /home/beth
cd
cp -v .emacs .zshrc /home/beth/
cd /home
chown beth:users $(find beth)




#####
#
# rpm tricks/info
#
#####

for i (`rpm -qa`)
do echo '\n'$i
   rpm -q --scripts $i
done




#####
#
# Making a boot disk semi-manually
#
#####


#####
#
# Creating a toy partition
#
#####

# (find-k2file "Documentation/Configure.help" 117)
# (find-k2file "Documentation/Changes" 291)

# Use ramdisk/loopback (how can I detect if the kernel has freed the
# ramdisk's memory?)

# Use minix/ext2/fat... -- ext2 uses up too much space. Why?

mkdir ~/LOOP
mkdir /L
#
insmod $MODULES/loop.o

umount /L
#
LOOP=~/LOOP/loop1
cd ~/LOOP/
dd bs=1k count=1024 if=/dev/zero of=$LOOP
#
mke2fs -F $LOOP
mkfs.minix $LOOP 1024
#
mount $LOOP /L -o loop
tune2fs $LOOP
echo -e 'stats' | debugfs $LOOP

umount /L




#####
#
# Testing a boot in a small HD partition
#
#####

Posso até usar só um subdiretório, e chroot.

Posso pôr coisa demais, fazer os rcs criarem um arquivo vazio só pra
marcar o tempo, e depois com um find ver que arquivos foram acessados.

Posso dar um chroot esperto depois do boot pequeno que me leve a algo
que é quase o resultado do boot normal (só que a gente vai ter rodado
algumas inicializações usando configurações mínimas, e talvez algumas
bibliotecas sejam reduzidas).




#####
#
# Booting in single-user mode
#
#####

export DISPLAY=:0.0
cd /usr/doc/lilo-0.19-1/doc/
xdvi user.dvi &
# p.13: boot parameters

# (find-enode "Compressed Files")
# (find-etag "auto-compression-mode")
# If the howtos are compressed, add .gz to their names.
# (auto-compression-mode t)

# (find-htetfile "BootPrompt-HOWTO.txt.gz")
# (find-htetfile "BootPrompt-HOWTO.txt.gz" "the word single which instructs")
# (find-htetfile "Bootdisk-HOWTO.txt.gz")
# (find-htetfile "Bootdisk-HOWTO.txt.gz" 1688)

# Example: "LILO: apmg single"

# Once you're done go to multiuser mode by exiting (cleanly?) from the
# bash shell or by running "telinit 3".




#####
#
# Extracting information from the "comps" files
#
#####

(find-fline "/big/a42/RedHat/base/")
(find-fline "/big/a42/RedHat/base/comps")

export BASE=/big/a42/RedHat/base
export RP=/big/a42/RedHat/RPMS
export D=/c1

cd /home/root/RH42/
cp -iv $BASE/comps* .
(cd $RP; ls *.rpm) > ols
agrep '^[PG]......     : ' /big/rpmcontents > PackageGroup
~/ICON/rpmlib > bygroup2

gzip -cd $BASE/skeleton.cgz | cpio -t





#####
#
# dpkg
#
#####

# (find-fline "/snarf/ftp/ftp.mi.us.debian.org/debian/ls-lR" "dpkg-1.4.0.22.tar.gz")
# (find-fline "/snarf/ftp/ftp.mi.us.debian.org/debian/ls-lR" " dpkg_1.4.0.22.tar.gz\n")

# (find-node "(autoconf)Top")
# (find-node "(m4)Top")
rpm -ql autoconf
rpm -ql m4

cd /usr/src/
rm -Rv dpkg-1.4.0.22/
tar -xvzf /snarf/ftp/ftp.mi.us.debian.org/debian/hamm/hamm/source/base/dpkg_1.4.0.22.tar.gz
cd /usr/src/dpkg-1.4.0.22/
autoconf |& tee oa
./configure |& tee om



#####
#
# boot_floppies_2.0.6 (debian)
#
#####

cd /usr/src/
rm -Rv boot-floppies/
tar -xvzf /snarf/ftp/ftp.mi.us.debian.org/debian/dists/slink/main/source/admin/boot-floppies_2.0.6.tar.gz
cd /usr/src/boot-floppies/




#####
#
# dos622 from .cqms
#
#####

# Falta: count=1, silent, algo assim

copyqm a: playback=dos622-1.cqm
copyqm a: playback=dos622-2.cqm
copyqm a: playback=dos622-3.cqm

dd if=/dev/fd0 of=dos622-1.cqmi bs=1024 count=1440
dd if=/dev/fd0 of=dos622-2.cqmi bs=1024 count=1440

insmod $MODULES/loop.o
umount /A
losetup -d /dev/loop0

losetup /dev/loop0 /big/nonfree/dos622-1.cqmi
mount -t msdos -o ro /dev/loop0 /A

laf --full-time /A

# (find-fline "/A/packing.lst")


rem    Setup Disk #1
rem    -------------
rem    ATTRIB.EXE   ATTRIB.EXE
rem    AUTOEXEC.BAT AUTOEXEC.BAT
rem    BUSETUP.EXE  BUSETUP.EXE
rem    CHKDSK.EXE   CHKDSK.EXE
rem    CHOICE.COM   CHOICE.COM
rem    COMMAND.COM  COMMAND.COM
rem    CONFIG.SYS   CONFIG.SYS
rem    COUNTRY.SYS  COUNTRY.SYS
expand COUNTRY.TX_  COUNTRY.TXT
expand DBLSPACE.BI# DBLSPACE.BIN
rem    DEBUG.EXE    DEBUG.EXE
rem    DEFRAG.EXE   DEFRAG.EXE
expand DEFRAG.HL_   DEFRAG.HLP
expand DELOLDOS.EX_ DELOLDOS.EXE
expand DOSHELP.HL_  DOSHELP.HLP
rem    DOSSETUP.INI DOSSETUP.INI
rem    DRVSPACE.BIN DRVSPACE.BIN
rem    EDIT.COM     EDIT.COM
expand EGA.CP_      EGA.CPI
expand EGA2.CP_     EGA2.CPI
expand EGA3.CP_     EGA3.CPI
expand EMM386.EX_   EMM386.EXE
rem    EXPAND.EXE   EXPAND.EXE
rem    FDISK.EXE    FDISK.EXE
rem    FORMAT.COM   FORMAT.COM
rem    IO.SYS       IO.SYS
rem    KEYB.COM     KEYB.COM
rem    KEYBOARD.SYS KEYBOARD.SYS
expand KEYBRD2.SY_  KEYBRD2.SYS
expand MEM.EX_      MEM.EXE
rem    MSCDEX.EXE   MSCDEX.EXE
rem    MSDOS.SYS    MSDOS.SYS
rem    NETWORKS.TXT NETWORKS.TXT
rem    NLSFUNC.EXE  NLSFUNC.EXE
rem    OS2.TXT      OS2.TXT
rem    PACKING.LST  PACKING.LST
rem    QBASIC.EXE   QBASIC.EXE
rem    README.TXT   README.TXT
rem    SCANDISK.EXE SCANDISK.EXE
rem    SCANDISK.INI SCANDISK.INI
rem    SETUP.EXE    SETUP.EXE
rem    SETUP.MSG    SETUP.MSG
rem    SYS.COM      SYS.COM
rem    UNINSTAL.EXE UNINSTAL.EXE
expand XCOPY.EX_    XCOPY.EXE

rem    Setup Disk #2
expand -------------
expand ANSI.SY_     ANSI.SYS
expand APPEND.EX_   APPEND.EXE
expand CHKSTATE.SY_ CHKSTATE.SYS
expand DBLWIN.HL_   DBLWIN.HLP
expand DELTREE.EX_  DELTREE.EXE
expand DISKCOMP.CO_ DISKCOMP.COM
expand DISKCOPY.CO_ DISKCOPY.COM
expand DISPLAY.SY_  DISPLAY.SYS
expand DMDRVR.BI_   DMDRVR.BIN
expand DOSKEY.CO_   DOSKEY.COM
expand DRIVER.SY_   DRIVER.SYS
rem    DRVSPACE.EXE DRVSPACE.EXE
expand DRVSPACE.HL_ DRVSPACE.HLP
expand DRVSPACE.IN_ DRVSPACE.INF
expand DRVSPACE.SY_ DRVSPACE.SYS
expand EDIT.HL_     EDIT.HLP
expand FASTHELP.EX_ FASTHELP.EXE
expand FASTOPEN.EX_ FASTOPEN.EXE
expand FC.EX_       FC.EXE
expand FIND.EX_     FIND.EXE
expand GRAPHICS.CO_ GRAPHICS.COM
expand GRAPHICS.PR_ GRAPHICS.PRO
rem    HELP.COM     HELP.COM
expand HELP.HL_     HELP.HLP
expand HIMEM.SY_    HIMEM.SYS
expand INTERLNK.EX_ INTERLNK.EXE
expand INTERSVR.EX_ INTERSVR.EXE
expand LABEL.EX_    LABEL.EXE
expand LOADFIX.CO_  LOADFIX.COM
rem    MEMMAKER.EXE MEMMAKER.EXE
expand MEMMAKER.HL_ MEMMAKER.HLP
expand MEMMAKER.IN_ MEMMAKER.INF
expand MODE.CO_     MODE.COM
expand MONOUMB.38_  MONOUMB.386
rem    MORE.COM     MORE.COM
expand MOUSE.CO_    MOUSE.COM
expand MOVE.EX_     MOVE.EXE
expand MSBACKUP.EX_ MSBACKUP.EXE
expand MSBCONFG.HL_ MSBCONFG.HLP
expand MSBCONFG.OVL MSBCONFG.OVL
rem    MSD.EXE      MSD.EXE
expand MSTOOLS.DL_  MSTOOLS.DLL
expand MWBACKR.DL_  MWBACKR.DLL
expand POWER.EX_    POWER.EXE
expand QBASIC.HL_   QBASIC.HLP
expand RAMDRIVE.SY_ RAMDRIVE.SYS
expand REPLACE.EX_  REPLACE.EXE
expand RESTORE.EX_  RESTORE.EXE
expand SETVER.EX_   SETVER.EXE
expand SHARE.EX_    SHARE.EXE
expand SIZER.EX_    SIZER.EXE
expand SMARTDRV.EX_ SMARTDRV.EXE
expand SMARTMON.EX_ SMARTMON.EXE
expand SMARTMON.HL_ SMARTMON.HLP
expand SORT.EX_     SORT.EXE
expand SPATCH.BAT   SPATCH.BAT
expand SSTOR.SY_    SSTOR.SYS
expand SUBST.EX_    SUBST.EXE
expand TREE.CO_     TREE.COM
rem    UNFORMAT.COM UNFORMAT.COM
expand VFINTD.38_   VFINTD.386
expand WINA20.38_   WINA20.386
expand XBIOS.OV_    XBIOS.OVL

rem    Setup Disk #3
rem    -------------
expand AV.GR_       AV.GRP
expand BK.GR_       BK.GRP
expand BKAV.GR_     BKAV.GRP
expand BKUD.GR_     BKUD.GRP
expand BKUDAV.GR_   BKUDAV.GRP
rem    MSAV.EXE     MSAV.EXE
expand MSAV.HL_     MSAV.HLP
expand MSAVHELP.OV_ MSAVHELP.OVL
expand MSAVIRUS.LS_ MSAVIRUS.LST
rem    MSBACKDB.OVL MSBACKDB.OVL
rem    MSBACKDR.OVL MSBACKDR.OVL
rem    MSBACKFB.OVL MSBACKFB.OVL
rem    MSBACKFR.OVL MSBACKFR.OVL
expand MSBACKUP.HL_ MSBACKUP.HLP
rem    MSBACKUP.OVL MSBACKUP.OVL
expand MWAV.EX_     MWAV.EXE
expand MWAV.HL_     MWAV.HLP
expand MWAVABSI.DL_ MWAVABSI.DLL
expand MWAVDLG.DL_  MWAVDLG.DLL
expand MWAVDOSL.DL_ MWAVDOSL.DLL
expand MWAVDRVL.DL_ MWAVDRVL.DLL
expand MWAVMGR.DL_  MWAVMGR.DLL
expand MWAVSCAN.DL_ MWAVSCAN.DLL
expand MWAVSOS.DL_  MWAVSOS.DLL
expand MWAVTSR.EX_  MWAVTSR.EXE
expand MWBACKF.DL_  MWBACKF.DLL
expand MWBACKUP.EX_ MWBACKUP.EXE
expand MWBACKUP.HL_ MWBACKUP.HLP
expand MWGRAFIC.DL_ MWGRAFIC.DLL
expand MWUNDEL.EX_  MWUNDEL.EXE
expand MWUNDEL.HL_  MWUNDEL.HLP
expand PRINT.EX_    PRINT.EXE
expand UD.GR_       UD.GRP
expand UDAV.GR_     UDAV.GRP
rem    UNDELETE.EXE UNDELETE.EXE
expand VSAFE.CO_    VSAFE.COM
expand WNTOOLS.GR_  WNTOOLS.GRP




#  Local Variables:
#  coding:               no-conversion
#  ee-delimiter-hash:    "\n#*\n"
#  ee-delimiter-percent: "\n%*\n"
#  ee-anchor-format:     "«%s»"
#  ee-charset-indicator: "Ñ"
#  End: