Quote:
Originally posted by timsch75
I mistyped a command while compiling the kernel
intended: rm -rf /boot/System.map
typed: rm -rf /boot System.map
so the whole /boot directory was removed from /
|
You might be able to resurrect the /boot directory and the contents by pulling them off the installation CD without performing a full installation.
First create /boot:
mkdir -p /boot
-p creates the directory if it doesn't exist, and does nothing if the dir already exists.
If you are able to boot in (either from CD, floppy, or some other means, once you're in,
mount /dev/cdrom /cdrom
or a valid mount point - perhaps /mnt, /mnt/cdrom, or whatever else is available.
Then use either tar or cp to copy the files in /boot to the disk.
For example:
(cd /cdrom/boot; tar cvf - . ) | (cd /boot; tar xvf -)