need help rescuing Win XP /dev/hda1
Here's what happened (roughly):
- Factory installed Win XP
- I installed RH 7.2 successfully as a dual boot
- I backed up most (but probably not all) of my data on other (new) Windows partitions of the hard drive
- Deleted the RH 7.2 partitions, leaving them unallocated
- Installed Ubuntu using the advanced option during the partition step, making one ext3 partition and one swap, leaving the Win XP /dev/hda1 intact
- Grub gave error 2 on boot :shock:
- I stupidly followed some advice on deleting Grub: dd if=/dev/zero of=/dev/hda1 bs=446 count=1 :oops: (don't do this!)
- Grub gave error 22 on boot :eek:
- Used the XP install disc to boot into the Rescue Console. Tried fixmbr.
- I deleted the Ubuntu partitions and installed Ubuntu again, this time asking it to use the largest continuous free space (what I should have done in the first place)
- Grub boots Ubuntu successfully
- Win XP says (windows)/system32/hal.dll is corrupt and therefore doesn't finish booting. At this point, I'm thinking the dd command overwrote part of hal.dll, but the other files are still ok, even though it can't list C:\ but it can list other Windows partitions.
- Parted Magic says partition type for /dev/hda1 is unknown. I write down all the info I can about /dev/hda1 before trying to recreate /dev/hda1 without formatting it.
- /dev/hda1 unfortunately starts at an earlier sector now. Windows Rescue Console says C:\ is empty
Here's what I'd like to know:
- Is there a partitioning program that will let me specify start and end sectors for /dev/hda1? (like 63 and 123456789)
- Would that make the old files "list-able"?
- Would I then be able to overwrite hal.dll with a good copy?
- Will there be happiness?
Thanks in advance for any help!