Rescuing from near disaster
Posting in hope that the experience may help somebody else.
It is night of 3rd May, around 10 PM. I am just back from a 250 KM journey on a crowded train. Am carrying loads (literally) of INR as part of official duties and am on edge of my nerves. Have to travel total of 1500 KM starting tomorrow, distributing the INR. (sorry, you need to be 60+ to get them)
At home, sister takes me straight to the computer and shows me the dreaded "boot disk failure" message. uh. oh.
I hit the reset key, and now get a grub boot disk error. Darn. I reboot, Go into bios set up, notice that the 2 hard disks are detected. So reboot. Within a couple of milli seconds after ide drives are detected (by the kernel), it is hell on the screen. D***N.
Hit reboot again. Wonder fo wonders, I get too boot screen, and the system boots up normally. Now I know that (a) something is wrong with the disk at primary master - /dev/hda. (b) if I reboot, I may not have a running system. Panic bells start to ring. I feel fire down my neck as biwi and 2 year kid are screaming silently at me. But I need the system - some acccounts info is there on /dev/hdc. Biwi cools off when I tell her that her IT papers are there and may be lost for ever if I get up without fixing the system NOW.
The problem - a failed/failing /dev/hda. Thankfully, only /boot is what is required on that. Most other info is mere data, which I think has been backed up. (Hmmm... not so sure, but was was more important is having a working system).
I need to have a useful /boot on /dev/hdc. A tired body. stressed mind and high bp does not help.
Fire up irssi. Ask for help in a couple of channels, and end up helping others. No help in sight from others. It is 11.30 pm. Voltage in the power system goes up, and the tubelights start burning. (lol).
I edit /etc/fstab and comment out the entry for /boot. Re-install grub on /dev/hdc. Run update-grub to create /boot/grub/menu.lst. Look at /boot shows that there is no kernel image or initrd image. Searches /var/apt/archives to find linux-image-2.6.24-1-686_2.6.24-5_i386.deb. Installs it. run update-grub to put in the required entries.
Hold breath, pray and say "sudo init 6".
Go into bios, and tell the bios to boot from the the other hard disk. Continue booting. Problem solved. Everything works fine.
What would have been the situation if it was the "other" OS? I would have spent more than couple of days reinstalling the OS, then all the applications, configuring them, setting up the security, and all that. Data recovery may still be a problem with both OSes.
Creep into the bed room, and kid is sleeping. Biwi gives a cold glare, turns around and sleeps. Hooo!!!!!
Job Well done !
ReplyDelete