Previous 1 2 3 Next 37 Replies Latest reply: Jan 17, 2014 7:08 AM by Number88
BlazingRiver Level 1 Level 1 (0 points)

Hi,

I cant seem to boot my windows 7 bootcamp anymore. Is there anyway i can recover important files and documents without going on bootcamp (by using a program on the Mac OSX partition)?

 

Thanks!


iMac, Mac OS X (10.7.2)
  • BlazingRiver Level 1 Level 1 (0 points)

    Thanks for your reply! However, a problem is that i can't seem to mount my bootcamp partition after i resized it (i know that was stupid of me) and it now shows up as a disk0s4 which i cannot seem to mount through disk utility or through terminal. Is there anyway to force mount it or repair the partition table.

  • Number88 Level 3 Level 3 (750 points)

    It might be possible to get it booting again. Please copy the output of the following terminal commands in to your next post

     

    sudo fdisk /dev/disk0

     

    sudo gpt -r -vv show disk0

  • BlazingRiver Level 1 Level 1 (0 points)

    Results for sudo fdisk /dev/disk0

     

    Disk: /dev/disk0          geometry: 121601/255/63 [1953525168 sectors]

    Signature: 0xAA55

             Starting       Ending

    #: id  cyl  hd sec -  cyl  hd sec [     start -       size]

    ------------------------------------------------------------------------

    1: EE 1023 254  63 - 1023 254  63 [         1 -     409639] <Unknown ID>

    2: AF 1023 254  63 - 1023 254  63 [    409640 - 1425967984] HFS+       

    3: AB 1023 254  63 - 1023 254  63 [1426377624 -    1269536] Darwin Boot

    4: 0C 1023 254  63 - 1023 254  63 [1560274944 -  393248768] Win95 FAT32L

     

    And for sudo gpt -r -vv show disk0

     

    gpt show: disk0: mediasize=1000204886016; sectorsize=512; blocks=1953525168

    gpt show: disk0: Suspicious MBR at sector 0

    gpt show: disk0: Pri GPT at sector 1

    gpt show: disk0: Sec GPT at sector 1953525167

           start        size  index  contents

               0           1         MBR

               1           1         Pri GPT header

               2          32         Pri GPT table

              34           6        

              40      409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

          409640  1425967984      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC

      1426377624     1269536      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

      1427647160   132627784        

      1560274944   393248768      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      1953523712        1423        

      1953525135          32         Sec GPT table

      1953525167           1         Sec GPT header


  • Number88 Level 3 Level 3 (750 points)

    Your first output shows partition 4 as the Windows partition but I would have thought it should have the type 07, whereas yours shows type 0C. Not sure about that.

    That same partition is also not marked as bootable, which is necessary for it to boot.

    You also now have a gap in between partitions 3 and 4 - not a good thing if you decide to use that for anything. Problems may ensue!

     

    You could try marking the partition as bootable with fdisk then reboot and see if it works, though I'm not sure about that partition type.

     

    To do that open a terminal and do

    sudo fdisk -e /dev/rdisk0

    then enter your password as requested.

     

    Then do a "p" without quotes and press enter and you should see the output you listed earlier.

     

    Then do  "flag 4"  without quotes

    and press enter

    It should say partition 4 is marked as active.

     

    Then type a "w" without quotes and press enter to write the information to your partition table.

    Then answer Y to confirm.

    Then type exit and close terminal.

     

    Try a reboot and see what happens.

  • BlazingRiver Level 1 Level 1 (0 points)

    Ok, this is what i got:

     

    fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory

    Enter 'help' for information

    fdisk: 1> p                       

    Disk: /dev/rdisk0          geometry: 121601/255/63 [1953525168 sectors]

    Offset: 0          Signature: 0xAA55

             Starting       Ending

    #: id  cyl  hd sec -  cyl  hd sec [     start -       size]

    ------------------------------------------------------------------------

    1: EE 1023 254  63 - 1023 254  63 [         1 -     409639] <Unknown ID>

    2: AF 1023 254  63 - 1023 254  63 [    409640 - 1425967984] HFS+       

    3: AB 1023 254  63 - 1023 254  63 [1426377624 -    1269536] Darwin Boot

    4: 0C 1023 254  63 - 1023 254  63 [1560274944 -  393248768] Win95 FAT32L

    fdisk: 1> flag 4

    Partition 4 marked active.

    fdisk:*1> w

    Device could not be accessed exclusively.

    A reboot will be needed for changes to take effect. OK? [n] y

    Writing MBR at offset 0.

    fdisk: 1>

     

    I will try rebooting now.

  • Number88 Level 3 Level 3 (750 points)

    Ok, see how that goes.

    I suspect the partition type won't be good but we can have a go at changing that.

    Sadly, if the partition has been moved and re-sized that may still not be enough to get it booting but we'll see.

  • BlazingRiver Level 1 Level 1 (0 points)

    Unfortunately it didn't make a difference. I still can't mount it or boot it.

  • Number88 Level 3 Level 3 (750 points)

    We can try changing the partition type.

    Was the Windows partition re-sized and/or moved? Or was the OSX partition re-sized?

  • BlazingRiver Level 1 Level 1 (0 points)

    Both, first i moved the windows partition into free unpartitioned space (while on windows) and that's when I got the Missing Operating System error when I tried to boot windows 7. Then later i tried to resize the OSX partition through disk utility into free space. And thats when bootcamp stopped appearing as a boot option altogether.

  • Number88 Level 3 Level 3 (750 points)

    Hmm, sounds a bit messy. Maybe too messy.

    We can try to change the partition type with fdisk.

    However, even with that done Windows may need a chkdsk running before it will boot. I don't have the details for doing that from a Windows repair/installation disc but I think that's possible. Maybe google that after.

     

    To change partition type

     

    sudo fdisk -e /dev/rdisk0

     

    type t and hit enter

     

    type 4 and enter  (partition number)

     

    type 07 and enter (new partition type and it's a zero and a 7 NOT an O)

     

    type w to write the changes to disc.

     

    type Y if required then exit and reboot.

     

    Good luck

  • BlazingRiver Level 1 Level 1 (0 points)

    When i try to enter the commands i get:

     

    fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory

    fdisk: 1> t

    Invalid command 't'.  Try 'help'.

    fdisk: 1> 4

    Invalid command '4'.  Try 'help'.

    fdisk: 1> 07

    Invalid command '07'.  Try 'help'.

  • Number88 Level 3 Level 3 (750 points)

    Sorry about that, I'm not too familiar with fdisk myself, I use gdisk. You don't have gdisk installed do you?

  • UFOmonster Level 1 Level 1 (5 points)

    I also am unable to boot up Windows on my MacBook Pro through bootcamp. I was able to recover all my files from the Windows side and save them to an external hard drive by using "Lazesoft Data Recovery for Mac." It was a free download. I still haven't figured out how to fix Windows yet.

Previous 1 2 3 Next