![]() ![]() However that is most likely not necessary unless you really tore things up. I'm not certain but I think that by omitting the skip and seek options you can have it overwrite the mbr too. To restore your partition table without overwriting the mbr, execute the command below. Now, let's assume that the dd executable is in your PATH, it most likely will be. # mount /dev/hdc /mnt/cdrom (replace the /dev/hdc with the actual locatation of your cd rom, and /mnt/cdrom with the mount point you wish to use) For example, let's say you burned it to a CD-R disc: If you need to restore your mbr from that backup, simply cd to the directory where the mbr file is stored and execute the command below. It would be rather pointless to store the mbr back up of a hard drive on that hard drive wouldn't it? Write this to floppy, burn it to cd/dvd, or just plain back it up somewhere save OTHER THAN the hard disk it's supposed to be a backup of. This will save your hard drive's master boot record including partition table information to a nice little file called mbr. Make sure you replace /dev/hda with the actual info for your drive (/dev/sda or /dev/hdb, etc.). This can be done easily with the dd command. So, now that I have a working partition table back, let's back it up in case this happens again. Even windows xp would try and boot for maybe 2 seconds before blue screening and rebooting. All it means is that os's and low level utilities that read the hard drive partition table don't know where your partitions begin and end, so you can't mount, etc.In my case grub still worked fine and allowed me to boot into my second hard drive's gentoo install even though the partition that has nf got lost. If you formatted, there's a good to excellent chance you are going to have to bid a fond farewell to your data.įirst thing's first, if you find your partition table has been ruined, DON'T DO ANYTHING DRASTIC!!! Just because your partition table has been fscked up, doesn't mean your data and parition's boot sectors aren't there. For example, resizing partitions or formatting a partition and losing data will make life much more difficult. NOTE: this may be more difficult depending on the nature of your loss. if you were an idiot, like me, and didn't back up your partition table, then how you can have the best chance of restoring it. pre-emptively back up your partition table in case it gets lost to make life easierĢ. So, I'm writing this to provide some tips and hints on how to:ġ. I didn't have this problem for quite some time so when hdparm managed to completely zero out the partition table of my /dev/hda hard drive, I about went into shock (especially since it's maybe a month until finals.). I know this has happened to me more times than I care to count and 's something I feel like I'm getting more experience in than I would like. I'm sure anybody that's messed around with linux and changing partition tables has run into this problem: all of a sudden your partition table has become corrupted. ![]() Posted: Tue 1:06 pm Post subject: TIP: recovering a broken hard disk partition table Gentoo Forums Forum Index Documentation, Tips & Tricks TIP: recovering a broken hard disk partition table Gentoo Forums :: View topic - TIP: recovering a broken hard disk partition table ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |