[opensuse] hosed my MBR
Hosed my MBR I tried to restore the MBR on my tower with a saved backup MBR with dd if=/dev/hda etc... which I created on my laptop. Dumb Dumb Dumb.I though that they were both win XP on the 1st drive, it should work. Was I stupid to try this. Now I'm in a fine mess. I had 11 partitions on my hda drive and hda6 - 11 were removed from /dev Now this is what I got running fdisk -l : ++++++++++++++++++++++++++++++++++++++++++++++++++++ Warning: ignoring extra data in partition table 5 Warning: ignoring extra data in partition table 5 Warning: ignoring extra data in partition table 5 Warning: invalid flag 0x434b of partition table 5 will be corrected by w(rite) Disk /dev/hda: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 1657 13309821 7 HPFS/NTFS /dev/hda2 18864 19457 4770360 12 Compaq diagnostics Partition 2 does not end on cylinder boundary. /dev/hda3 3258 6116 22959720 c W95 FAT32 (LBA) Partition 3 does not end on cylinder boundary. /dev/hda4 6116 18864 102392640 5 Extended Partition 4 does not end on cylinder boundary. /dev/hda5 ? 74338 184463 884580633 79 Unknown Partition table entries are not in disk order Disk /dev/hdb: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdb1 * 1 980 7871818+ 83 Linux /dev/hdb2 981 1937 7687102+ 83 Linux /dev/hdb3 1938 9729 62589240 f W95 Ext'd (LBA) /dev/hdb5 1938 2065 1028128+ 82 Linux swap / Solaris /dev/hdb6 2066 4105 16386268+ 83 Linux /dev/hdb7 4106 6017 15358108+ 83 Linux /dev/hdb8 6018 7413 11213338+ 83 Linux /dev/hdb9 7414 8203 6345643+ 83 Linux /dev/hdb10 8204 8792 4731111 83 Linux /dev/hdb11 8793 9729 7526421 83 Linux ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ The hda* drive shows some of the partitions from my laptop. My hdb* drive has all my backup linux so no loss. I could repartition the a drive but gparted doesn't see the whole a drive and neither does PartionMagic. I reinstalled grub in the MBR of hda and I cann boot all my linux on the hdb drive, SuSE 10.2 boots up on /dev/hdb11 shown above with "fdisk -l" I tried using a boot floppy from win 98SE using "fdisk /MBR", that didn't work. 1. If I reinstall XP would that restore the MBR? 2. Would "fixmbr" work from the XP rescue disk? 3. If I interchanged the hda and hdb drives, would the new hda (hdb) have a good MBR? 4. Would the hdb (hda) partitions be visible? I really need some help on how to re-format the a drive. This problem slowed down my computer, What a mess jozien -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 4/13/07, Joe Zien
Hosed my MBR
Sounds like you already restored the boot code and all you need to restore is the partition table. I would use gpart to try that. Be sure to read the man page and save away a copy of your current MBR. Good Luck Greg -- Greg Freemyer The Norcross Group Forensics for the 21st Century -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 4/13/07, Greg Freemyer
On 4/13/07, Joe Zien
wrote: Hosed my MBR
Sounds like you already restored the boot code and all you need to restore is the partition table.
I would use gpart to try that. Be sure to read the man page and save away a copy of your current MBR.
Good Luck Greg
DiskTest is good free linux software for partition table recovery. You can use it with any live distro (like knoppix). It's included with INSERT linux as well (50M live distro). Also, this software is part of Universal Boot CD. http://www.cgsecurity.org/wiki/TestDisk -- Svetoslav Milenov (Sunny) Even the most advanced equipment in the hands of the ignorant is just a pile of scrap. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Greg Freemyer wrote:
On 4/13/07, Joe Zien
wrote: Hosed my MBR
Sounds like you already restored the boot code and all you need to restore is the partition table.
I would use gpart to try that. Be sure to read the man page and save away a copy of your current MBR.
Good Luck Greg Below is a copy of my partation table that is 3 months old:
Disk /dev/hda: /dev/hdb 80.0 GB, 8002631856 bytes 255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 1 1657 13309821 7 HPFS/NTFS /dev/hda2 1658 2783 9044595 c W95 FAT32 (LBA) /dev/hda3 2784 4186 11269597 83 Linux /dev/hda4 4187 9729 44524147 f W95 Ext'd (LBA) /dev/hda5 4187 4252 530113 82 Linux swap / Solaris /dev/hda6 4253 5671 11398086 83 Linux /dev/hda7 5672 5738 538146 83 Linux /dev/hda8 5739 5805 538146 83 Linux /dev/hda9 5806 5934 1036161 82 Linux swap / Solaris /dev/hda10 5935 6452 4160803 83 Linux /dev/hda11 6453 7060 4883728 83 Linux /dev/hda12 7061 7668 4883728 83 Linux /dev/hda13 7669 8443 6225156 83 Linux /dev/hda14 8444 9729 10329763 83 Linux I know that hda1 - hda10 have not changed, hda11 - 14 were changed, how will that effect the table? Will changing the table effect my hdb drive, the table is correct for hdb. I installed grub in hda and all my linux's work fine. Don't want to mess up the hdb drive. Can I just change the table for the hda drive? My main concern is to boot the hda drive so I can re-partion the hda drive and boot XP, I only use XP for a few programs that are not available in linux jozien -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2007-04-14 at 01:00 -0400, Joe Zien wrote:
Below is a copy of my partation table that is 3 months old:
...
I know that hda1 - hda10 have not changed, hda11 - 14 were changed, how will that effect the table?
Just use gpart as already advised to guess the partition table. You can use the table you posted to validate the data gpart will give you, at least for the first ten partitions. The other four, with luck, you will have to accept the guesstimates. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFGIMa8tTMYHG2NR9URAlrPAJ9JidYAcX3+dMF/dv1zoHJRxenPWQCfd0ZK ZW8GrMyI9PPLE1oYVgVVu7U= =6COA -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Friday 2007-04-13 at 14:27 -0400, Joe Zien wrote:
if=/dev/hda etc... which I created on my laptop. Dumb Dumb Dumb.I though that they were both win XP on the 1st drive, it should work. Was I stupid to try this. Now I'm in a fine mess. I had 11 partitions on my hda drive and hda6 - 11 were removed from /dev
You overwrote the partition table. You can try to guess what the partitions were using gpart, or create a fully new partition table with fdisk (linux) and loose all data there. You can also recreate the partition table if you have a printed copy. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFGIBIKtTMYHG2NR9URAoBzAJ9P4qJ5pmRgenywR0VO1OcKqMir2wCfTZSx Qnx7Utd159WBWHdXcYatHVI= =VzJt -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Carlos E. R.
-
Greg Freemyer
-
Joe Zien
-
Sunny