goodbye partition table

By Hal Canary, 2006-10-16 09:55:40 (link)
#computers-code

Hard Drive A starts making loud clicking noises yesterday. I suspect it has finally died and I unplug it. Hard Drive B is newer, larger, and containes my day-to-day OS of choice. Tho only problem is that HDB contains no bootloader. So I need to install one. So I boot up knoppix from a CD and fool around trying to install grub. Then I figure I'll just try this:

dd if=boot/grub/stage1 of=/dev/hdb bs=512 count=1

Of course what I should have done was:

dd if=boot/grub/stage1 of=/dev/hdb1 bs=512 count=1

I managed to overwrite the partition table of my only working hard drive. Good thing my latest backup is only two weeks old, cause I'm not sure how to access any of the data on the drive.


(back)