On Mon, Dec 13, 2004 at 07:00:02PM +0530, kaushal wrote: > hi, > My friends' system is in a critical situation. > Hdd. is /dev/hdc. > CD-WR is /dev/hdd. > created a bootable linux iso img. > MISTAKE part: > dd if=iso.img of=/dev/hdc.Instead of hdd. > I did that once. > Net connectivity is available.Is there anyway he can recover the mbr > ?Other os is windows 2000.He did backup the entire data and the system > is working fine now. He backuped all the data and the system is working fine now? If that is the case, then why do you need to recover the mbr? You can't recover the mbr, no matter what you do. Unless you actually made a backup copy with dd prior to the accident, it doesn't exist anymore. However, if you have hackup copies, you can use fdisk to repartition the disk (and make a new mbr in the process). And then you can restore data from backup. The reason grub and lilo failed may have been because the hard disk no longer looked like a valid hard disk. fdisk will fix that. If you have no backups (I'm assuming he only backuped the Windows part), you can try guessing the location of the partition by playing with partition table numbers, or you can try to use a program like Partition Magic to restore it .. but this is likely to fail if the file system was overwritten. There is also the possibility that, for some reason not clear in your email, the hard disk is not recongized by the BIOS at all ... if that is the case then you'll need to enter CMOS configuration and tell it about the hard disk again. > > Desperately waiting for a solution. > > Thanks a lot in advance. > > kaushal. > > - > : send the line "unsubscribe linux-admin" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- Infinite complexity begets infinite beauty. Infinite precision begets infinite perfection. - : send the line "unsubscribe linux-admin" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html