Image

Imageblindgeek wrote in Imagelinux 😊hopeful

restoring Windblows NTFS partition

Hi all. Recently, my laptop's partition table semi-hose itself on me, so I needed to boot into RIP in order to fix it.
Before doing so, I backed up everything, including the still accessible windows partition (/dev/hda2) before using Gpart to restore the table. Once the table was successfully restored, I found
I could boot into Linux but not into XP anymore. Even setting Lilo to echo all output to a serial console didn't help, since there was no error message. The machine would just sit there until
I hit enter (soon after pressing 2 at the boot prompt), and nothing seemed to happen. Sometimes I'd be taken back to the boot prompt, and at other times after hitting enter after a while I'd
get a reboot. I know I have a good backup of the Windows partition (dd if=/dev/hda2 | ssh root@192.168.0.2:/root/backup dd of=windows.bin), because I can successfully mount the image on
loopback and access the files. In an effort to figure out the booting problem, I erased all existing data, hoping Iwould be able to restore windows.bin to the re-created /dev/hda3 on the
laptop. Unfortunately, dd if=windows.bin | ssh root@192.168.0.3 dd of=/dev/hda3 bails out at 1.9 out of an 18 GB image. does anyone know how I can tell Dd to write the full 18 GB back to disk,
so that I can go back to the core problem of it not booting? I figured a rewriting of the image to a clean partition might solve it however, it would seem as if I have only created more
problems. Also, according to this page, ntfsclone is able to restore images properly. Does anyone
know if it will work on Dd'ed images as
well? If anyone either has ideas on how I can restore the full image, or on the above Lilo strangeness I'd really appreciate it; as of right now I am beginning to run out of ideas. Thanks!