Restore Bootcamp Partition From Dmg

I have a 500gb mac drive, with a windows bootcamp partition on it. After using windows for a while, I would always get an error message saying 'Macintosh drive may be damaged. Mount anyway? To which I would always click yes.
Today I tried to upgrade to mountain lion. So I booted into lion, ran mountain lion, and after installing and restarting, I was taken to a sort of recovery window, asking me where I wanted to install lion. All I saw were my 650mb recovery drive and my bootcamp drive, both locked. I didn't see my macintosh partition.
So I went into my recovery partition and ran disk utility. What I see in my disk utility from recovery:
>500.11 GB
>Macintosh HD (Greyed out, repair failed)
>Bootcamp (not greyed out)
Macintosh drive is greyed out. Tried verifying/repairing. Couldn't repair. Tried erasing the whole drive (500.11GB). I get 'could not unmount drive'. I think it is unable to unmount my bootcamp drive?
So I basically cannot boot into osx itself (because I just get to the install osx screen and my macintosh drive, where I want to install osx, isn't even showing up), and I also cannot do anything from my recovery partition. I tried both erase and partition options in disk utility. Right now I am only able to boot into windows which is where I am posting this from. I cannot use a flash drive recovery method either because I can't even run the .dmg on windows. Anyone know how I can restore/erase my drive completely?
Thanks.

Jan 31, 2017 Step 2: If you already have an existing Boot Camp partition, you can restore the disk to a single partition and start from scratch by clicking the Restore button in the bottom right-hand corner.

Restore Boot Camp Partition From Dmg Mac

BootcampFrom

Restore Boot Camp Partition From Dmg Windows 10

Jan 31, 2017  You can now recreate a new Boot Camp partition to restore the Winclone image to. Step 3: Launch Boot Camp Assistant and click Continue. Dec 21, 2019  After executing the last step (restore from image) the Bootcamp Partition doesn’t boot. It stands at a black screen with one underline-symbol blinking at the top left corner. I don’t have a recovery partition, so I can’t execute the very last step.