2 ways.
#1. boot in single user mode. create a /boot1 directory and make an exact copy of what you have in /boot corresponding to that OS. then re-map it with fstab and link it with the kernel and run other checks needed to see if it works OKAY. in debian we use the debootstrap forgot the RHEL x.x ways.
#2. use a live cd and fix it or use a livecd with rescue mode on and fix it.
i happen to delete my library files with rm -frdv switches and from he-man i ended up cursing myself wtf-man! and i had no other go than use a livecd and fix it or reinstall.
soln 1+2 = create back the boot, run all checks, restore it to what it was before. plug and play ONLINE. wewwwww. the abs got a script which lets you create a pseudo filesystem in the mounted filesystem. follow it and get it done. and when done? remove the current boot partition and beautify it and add back to fstab with new boot map which you copy/clone from the pseudo filesystem and rack it up. netbsd also has an excellent tut which is the section creating an encrypted volume/cd/dvd/disk. remove the crypto commands and do the same for boot. and check with the installed OS details as how the filesystem is organized esply the boot. it mostly got the kernel and initrd and device map and et al. and then finally grub-install
good luck.
Last edited by Tux-Idiot; 03-24-2008 at 06:53 PM.
|