I lost the /boot dir on my RehHat 8.0 desktop and am trying to
recreate it and reconfigure GRUB to make the system bootable again.
The /boot dir was whacked because I was doing "rm -rf *" thinking I
was in a different directory. I don't have backups, nor the RedHat
rescue floppy, but the system is alive and kicking, so I am hoping to
get away with it without having to reinstall Linux.

First: what short cuts are there? E.g. can I recover /boot and GRUB by
booting off the RH8 CD1 or any other downloadable iso or floppy image
and then uprade to my current kernel?

If I go for reinstalling/reconfiguring GRUB manually:

So far I have reinstalled the kernel-2.4.18-24.8.0, and grub-0.92-7
RPMS, the same versions used in the current incarnation. The
/boot/grub directory is empty; to make GRUB functional, I still need
to create the files grub.conf, device.map and initrd-KERNELVERSION -
any others?

RH8 is the only OS installed on a single IDE disk. I do not remember
whether GRUB was (or still is?) installed in the /boot partition or
the MBR. Below is attached all relevant info I can think of -
partition table from fdisk, mounted filesystems, /etc/fstab, the
current running kernel version and the contents of /boot.

Any helpful comments are appreciated - obviously I have to get it
right the first time, and I am confused about exactly what I need to
do to make GRUB work (and YES, I promise to make backups and keep my
rescue floppies in the future :-)

Thanks in advance!

-------- system description ----------

[rootlinux02 /]# fdisk /dev/hda

The number of cylinders for this disk is set to 9726.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs

Command (m for help): p

Disk /dev/hda: 255 heads, 63 sectors, 9726 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 2563 20482875 83 Linux
/dev/hda3 9473 9726 2040255 82 Linux swap
/dev/hda4 2564 9472 55496542+ f Win95 Ext'd (LBA)
/dev/hda5 2564 9472 55496511 83 Linux

Partition table entries are not in disk order

[rootlinux02 /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 19G 7.8G 10G 43% /
/dev/hda1 99M 8.7M 84M 10% /boot
/dev/hda5 52G 16G 33G 32% /home
none 1008M 0 1008M 0% /dev/shm
/dev/sda1 115G 51G 64G 45% /z
[rootlinux02 /]# cat /etc/fstab
LABEL=/ / ext3 defaults
1 1
LABEL=/boot /boot ext3 defaults
1 2
none /dev/pts devpts gid=5,mode=620
0 0
LABEL=/home /home ext3 defaults
1 2
none /proc proc defaults
0 0
none /dev/shm tmpfs defaults
0 0
/dev/hda3 swap swap defaults
0 0
/dev/cdrom /mnt/cdrom iso9660
noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto
noauto,owner,kudzu 0 0
/dev/sda1 /z vfat uid=500,owner 0 0
/dev/cdrom1 /mnt/cdrom1 iso9660
noauto,owner,kudzu,ro 0 0
[rootlinux02 /]# ls -lR /boot
total 4762
-rw-r--r-- 1 root root 42257 Jan 31 13:05
drwxr-xr-x 2 root root 1024 Sep 5 2002 grub
-rw-r--r-- 1 root root 15436 Jan 31 13:05
-rw-r--r-- 1 root root 503847 Jan 31 13:05
-rwxr-xr-x 1 root root 3171861 Jan 31 13:05
-rw-r--r-- 1 root root 1112073 Jan 31 13:05

total 0

[rootlinux02 /]# rpm -qf /boot/vmlinuz-2.4.18-24.8.0
[rootlinux02 /]# uname -a
Linux linux02 2.4.18-24.8.0 #1 Fri Jan 31 06:51:30 EST 2003 i686 i686
i386 GNU/Linux