I have a problem with a old machine running Windows XP (32 bits), it has problems with the NTFS partition and I need to do
chkdsk /r on the whole disk partition (single ntfs partition). Bad news I have no media to boot on it, no USB keys nothing at all except other computer running linux, and good news, a lot of iso files with installers for WindowsXP, Windows 7, BSD, GNU/Linux, even Plan9 (xD just for fun). Well the point is I know I can run a Qemu guest VM with one of those WinXP isos as boot and pass the whole damaged hard disk to the Qemu guest I mean something like (but if there is other alternative I really need to know)
qemu-system-x86_64 -cdrom /isofile -hda /dev/sdb -boot order=dcn
Then in the guest VM, Can I do
chkdsk /r /f C:
(or whatever needed to fix the disk) and trust that it will do the right job ?
Clarifying the question: Can I pass to qemu a real hard disk as parameter ? I say real hard disk because when I pass just using
-hda the guest see the disk as Qemu virtual Hard disk