Today in our office one of the PC(Ubuntu11.04) was not booting up and showing continuous blinking. Then I booted through Ubuntu11.04 Rescue CD and found I was able mount all partitions apart from /boot.
Here is the /boot and / partition details
/dev/sda1 is /boot 100 MB
/dev/sda2 is / 50 GB
Then I ran
command to check the file system for /boot partition. It was prompting many times(nearly or more than 50 times) as whether yes or no to fix, then I killed the process and used
It took a while and stopped itself. Then I mounted the /boot partition and found nothing was inside the /boot partition!!?,
Does this fsck command wiped out everything?
I unmounted the /boot partition and installed the grub using below steps
mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot
grub-install --root-directory=/mnt /dev/sda
grub got installed successfully, Then I ran the below commands
mount --bind /proc /mnt/proc
mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys
chroot /mnt/ update-grub
Found it updated successfully. Then I unmounted all partitions and rebooted. But it is not booting and giving grub prompt
Then I again booted through rescue CD, and mouted /boot and / partitions as above and found apart from "grub" folder, the other files(abi-3.0.0-12-generic, memtest86+.bin, config-3.0.0-12-generic, memtest86+_multiboot.bin, System.map-3.0.0-12-generic, initrd.img-3.0.0-12-generic, vmcoreinfo-3.0.0-12-generic, vmlinuz-3.0.0-12-generic which are exist in the other machine) are not exist in the /boot partition. So please help me what can be done to recover other files and to make the system to boot up again.