Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Bootcamp unrecognized after restoring Windows from system image

A had a major failure (not sure exactly what happened) that resulted in me not being able to boot into OS X Yosemite, but my Bootcamp partition worked fine. After a long process, complicated by other issues, I had to wipe the drive reinstall Yosemite, restore from my Time Machine backup, and reinstall Windows via Bootcamp.


The final step in the process was to restore my Windows partition from a system image. The system image was made with Window's built-in utility, and was restored via a Windows repair disc created with a built-in utility. No 3rd party software used, and no 3rd party NTFS software on my Mac.


I have now restored, and the Bootcamp partition itself works fine. However, Mac OS doesn't recognize it. It doesn't appear in my sidebar. In Disk Utility it shows up greyed out (and I can't mount it) and it is named "disk0s4" instead of "BOOTCAMP". I also cannot select it as my startup disk in System Preferences. I CAN start up my computer holding the option key and select the drive.


[REDACTED] diskutil list

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *500.1 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_HFS Macintosh SSD 399.2 GB disk0s2

3: Apple_Boot 650.0 MB disk0s3

4: Microsoft Basic Data 100.0 GB disk0s4

/dev/disk1

#: TYPE NAME SIZE IDENTIFIER

0: FDisk_partition_scheme *500.1 GB disk1

1: Windows_NTFS Windows Backup 500.1 GB disk1s1

/dev/disk2

#: TYPE NAME SIZE IDENTIFIER

0: Repair disc Windows... *173.4 MB disk2


I think I might know what the problem is. When restoring Windows from the system image I was forced to reformat and repartition my drive as part of the process, but I couldn't chose what format I wanted (it claims it formatted and partitioned my drive, but OS X was unaffected). After the restore, my Windows partition is FAT (I'm pretty sure it was NTFS before). My system image is NTFS, so I'm not sure why this happened.


Has anyone run into this before? Does anyone know how I can restore Windows from a system image and have it format my drive as NTFS? Or is there another way to solve this problem? It has been a long week without a functioning computer, and I am 95% of the way back to where I started. Any help is greatly appreciated!

MacBook Pro, OS X Yosemite (10.10)

Posted on Nov 14, 2014 5:24 PM

Reply
Question marked as Best reply

Posted on Nov 14, 2014 6:15 PM

Can you post the output of


diskutil cs list

sudo fdisk /dev/disk0

sudo gpt -vv -r show /dev/disk0

sudo dd if=/dev/rdisk0s4 count=1 2>/dev/null | hexdump -C


These commands show CoreStorage volumes, the MBR, GPT and show the NTFS header on the partition. You will prompted for your password.


As you can see /dev/disk1 shows the NTFS drive.

65 replies

Dec 2, 2014 4:45 AM in response to sleeknub

sleeknub wrote:


Recovery Drive no longer appears as a startup option (in System Preferences or when starting up holding option)

Does Command+R work? It should put you in local recovery - without the spinning globe.

Disk Utility reports that my hard drive has an unrecognized file system, won't allow repair

Can you verify Macintosh HD only? Do you have any third-party NTFS drivers?

Same problem seem in Samsung Magician

Can you reinstall/repair Bootcamp Drivers?

I think I might have to restore the Windows System image from the Mac side (after reinstalling, restoring Mac OS, and formatting drive with Bootcamp). Any idea how I could do that? Or any other ideas? Maybe getting back to the same point I was a little while ago and rebuilding the MBR instead of the GPT (not sure why that would work).


Could this be a hardware failure?

There are no tools to restore the 'image' to a Partition. if you have a Winclone image of the original Windows installation (not a Windows backup), then it is possible. You have already done this, by installing a clean BC/Windows and restore. Your source backup format limits your restore options. You can try the MBR rebuild, but given that the GPT (built from MBR) allowed you to see NTFS and Windows is functional, tells me that the other direction with the 225MB differential, will cause problems, but you can experiment.


Unlikely that is a HW issue, because the same HW works in Windows when you clean install it and your Samsung should be AHCI.

Dec 3, 2014 9:30 PM in response to Loner T

  • Command+R puts me into a spinning globe boot
  • I do not have any third-party NTFS drivers that I am away of. After an internet boot a re-verified my drives. Macintosh HD verified successfully and so did the parent drive. Bootcamp partition returned an error: "Verify volume failed: Invalid request."
  • I'll try to repair bootcamp drivers now.
  • I've heard that something called QEMU might be able to restore the image to a partition, but not sure. Sounds like I could reinstall Windows and restore from the System image (to ensure I have a perfect, uncorrupted partition), then use Winclone to create a new image. Next, restore Mac OS X, create BC partition, then restore Winclone image with Winclone. How does that sound?

Dec 4, 2014 10:12 AM in response to Loner T

Tried uninstalling and re-installing Samsung Magician and I get the same result: AHCI Mode Deactivated (IDE or RAID), and Unable to detect SATA interface.


What do you think about the idea of reinstalling Windows, restoring the system image, not fixing any of the headers, then using Winclone to clone the partition? I would then wipe the drive again, restore Mac OSX, partition the drive with Boot Camp, then use Winclone to restore the BC partition. Would that carry over the drive/partition problems?

Dec 6, 2014 10:03 PM in response to Loner T

Here I go again to prepare for the Winclone solution attempt. I noticed last time the the numbers for "cyl" in the MBR were different before and after the restore. Did we fix these? Or only the AF?


Main:~ Ben$ sudo fdisk /dev/disk0

Disk: /dev/disk0 geometry: 60801/255/63 [976773168 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 - 740718944] HFS+

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

*4: 07 1023 254 63 - 1023 254 63 [ 742400000 - 234373120] HPFS/QNX/AUX

Main:~ Ben$ sudo gdisk /dev/disk0

GPT fdisk (gdisk) version 0.8.10


Warning: Devices opened with shared lock will not have their

partition table automatically reloaded!

Partition table scan:

MBR: hybrid

BSD: not present

APM: not present

GPT: present


Found valid GPT with hybrid MBR; using GPT.


Command (? for help): ?

b back up GPT data to a file

c change a partition's name

d delete a partition

i show detailed information on a partition

l list known partition types

n add a new partition

o create a new empty GUID partition table (GPT)

p print the partition table

q quit without saving changes

r recovery and transformation options (experts only)

s sort partitions

t change a partition's type code

v verify disk

w write table to disk and exit

x extra functionality (experts only)

? print this menu


Command (? for help): p

Disk /dev/disk0: 976773168 sectors, 465.8 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): 96E6754F-0635-461B-BF59-F81B7E837FB9

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 976773134

Partitions will be aligned on 8-sector boundaries

Total free space is 1901 sectors (950.5 KiB)


Number Start (sector) End (sector) Size Code Name

1 40 409639 200.0 MiB EF00 EFI System Partition

2 409640 741128583 353.2 GiB AF00 Macintosh SSD

3 741128584 742398119 619.9 MiB AB00 Recovery HD

4 742400000 976773119 111.8 GiB 0700 BOOTCAMP


Command (? for help):

Dec 6, 2014 11:36 PM in response to sleeknub

And here it is afterward:


Main:~ Ben$ sudo fdisk /dev/disk0

Password:

Disk: /dev/disk0 geometry: 60801/255/63 [976773168 sectors]

Signature: 0xAA55

Starting Ending

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

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

1: EE 0 0 2 - 25 127 14 [ 1 - 409639] <Unknown ID>

2: 07 25 127 15 - 1023 254 63 [ 409640 - 739227824] HPFS/QNX/AUX

3: AB 1023 254 63 - 1023 254 63 [ 739637464 - 1269544] Darwin Boot

*4: 07 1023 254 63 - 1023 254 63 [ 740907008 - 235866112] HPFS/QNX/AUX

Main:~ Ben$ sudo gdisk /dev/disk0

GPT fdisk (gdisk) version 0.8.10


Warning: Devices opened with shared lock will not have their

partition table automatically reloaded!

Partition table scan:

MBR: hybrid

BSD: not present

APM: not present

GPT: present


Found valid GPT with hybrid MBR; using GPT.


Command (? for help): p

Disk /dev/disk0: 976773168 sectors, 465.8 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): 96E6754F-0635-461B-BF59-F81B7E837FB9

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 976773134

Partitions will be aligned on 8-sector boundaries

Total free space is 1901 sectors (950.5 KiB)


Number Start (sector) End (sector) Size Code Name

1 40 409639 200.0 MiB EF00 EFI System Partition

2 409640 741128583 353.2 GiB AF00 Macintosh SSD

3 741128584 742398119 619.9 MiB AB00 Recovery HD

4 742400000 976773119 111.8 GiB 0700 BOOTCAMP


Command (? for help): q

Main:~ Ben$

Dec 7, 2014 12:13 AM in response to sleeknub

I ran the following commands to fix the MBR. The ID of (partition?) #2 now is AF, but the starting and ending cyl, hd, & sec don't match the original. I don't know if this matters.


Main:~ Ben$ sudo fdisk -e /dev/disk0

Password:

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

Enter 'help' for information

fdisk: 1> setpid 2

Starting Ending

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

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

2: 07 25 127 15 - 1023 254 63 [ 409640 - 739227824] HPFS/QNX/AUX

Partition id ('0' to disable) [0 - FF]: [7] (? for help) AF

fdisk:*1> p

Disk: /dev/disk0 geometry: 60801/255/63 [976773168 sectors]

Offset: 0 Signature: 0xAA55

Starting Ending

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

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

1: EE 0 0 2 - 25 127 14 [ 1 - 409639] <Unknown ID>

2: AF 25 127 15 - 1023 254 63 [ 409640 - 739227824] HFS+

3: AB 1023 254 63 - 1023 254 63 [ 739637464 - 1269544] Darwin Boot

*4: 07 1023 254 63 - 1023 254 63 [ 740907008 - 235866112] HPFS/QNX/AUX

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> q

Main:~ Ben$

Dec 7, 2014 8:40 AM in response to Loner T

Documenting the changes I made:


Main:~ Ben$ sudo gdisk /dev/disk0

Password:

GPT fdisk (gdisk) version 0.8.10


Warning: Devices opened with shared lock will not have their

partition table automatically reloaded!

Partition table scan:

MBR: hybrid

BSD: not present

APM: not present

GPT: present


Found valid GPT with hybrid MBR; using GPT.


Command (? for help): ?

b back up GPT data to a file

c change a partition's name

d delete a partition

i show detailed information on a partition

l list known partition types

n add a new partition

o create a new empty GUID partition table (GPT)

p print the partition table

q quit without saving changes

r recovery and transformation options (experts only)

s sort partitions

t change a partition's type code

v verify disk

w write table to disk and exit

x extra functionality (experts only)

? print this menu


Command (? for help): d

Partition number (1-4): 2


Command (? for help): d

Partition number (1-4): 3


Command (? for help): d

Partition number (1-4): 4


Command (? for help): n

Partition number (2-128, default 2): 2

First sector (34-976773134, default = 409640) or {+-}size{KMGTP}: 409640

Last sector (409640-976773134, default = 976773134) or {+-}size{KMGTP}: +739227824

Current type is 'Apple HFS/HFS+'

Hex code or GUID (L to show codes, Enter = AF00): AF00

Changed type of partition to 'Apple HFS/HFS+'


Command (? for help): n

Partition number (3-128, default 3): 3

First sector (34-976773134, default = 739637464) or {+-}size{KMGTP}: 739637464

Last sector (739637464-976773134, default = 976773134) or {+-}size{KMGTP}: +1269544

Current type is 'Apple HFS/HFS+'

Hex code or GUID (L to show codes, Enter = AF00): AB00

Changed type of partition to 'Apple boot'


Command (? for help): n

Partition number (4-128, default 4): 4

First sector (34-976773134, default = 740907008) or {+-}size{KMGTP}: 740907008

Last sector (740907008-976773134, default = 976773134) or {+-}size{KMGTP}: +235866112

Current type is 'Apple HFS/HFS+'

Hex code or GUID (L to show codes, Enter = AF00): 0700

Changed type of partition to 'Microsoft basic data'


Command (? for help): p

Disk /dev/disk0: 976773168 sectors, 465.8 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): 96E6754F-0635-461B-BF59-F81B7E837FB9

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 976773134

Partitions will be aligned on 8-sector boundaries

Total free space is 21 sectors (10.5 KiB)


Number Start (sector) End (sector) Size Code Name

1 40 409639 200.0 MiB EF00 EFI System Partition

2 409640 739637463 352.5 GiB AF00 Apple HFS/HFS+

3 739637464 740907007 619.9 MiB AB00 Apple boot

4 740907008 976773119 112.5 GiB 0700 Microsoft basic data


Command (? for help): w


Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING

PARTITIONS!!


Do you want to proceed? (Y/N): y

OK; writing new GUID partition table (GPT) to /dev/disk0.

Warning: Devices opened with shared lock will not have their

partition table automatically reloaded!

Warning: The kernel may continue to use old or deleted partitions.

You should reboot or remove the drive.

The operation has completed successfully.

Main:~ Ben$

Bootcamp unrecognized after restoring Windows from system image

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.