You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

Repairing Boot Camp after creating new partition

I'm running OS X 10.8 and Windows 7 x64 Pro.


After properly setting up Boot Camp to dual-boot Windows on my Mac mini, I decided to test whether or not it was true that creating another partition (a data partition for OS X) would interfere with Boot Camp. Wikipedia claims it does interfere but without citing a source, whilst the Boot Camp documentation itself only specifies that the disk must be a single partition _prior_ to setup - there's no mention of whether the disk must be _kept_ that way afterwards.


I opened Disk Utility, reduced the size of my OS X parition from 420GB to 80GB, and created a new partition in the unallocated space. Here's how it looks now:

User uploaded file

When I attempted to proceed with the process, I did receive a warning that doing this (and I quote), "may" cause problems with Boot Camp. Seeing as it was inconclusive, I thought I'd give it a shot - nothing ventured…


Of course, it borked Boot Camp, otherwise I wouldn't be posting here. Whilst OS X boots just fine, the Boot Camp partition now no longer shows up in the Startup Manager, though it does in the Startup Disk prefPane. If I do attempt to boot into Boot Camp, I receive the following message on a black screen:

No bootable device --- insert boot disk and press any key

The advice given to someone who had this same problem was, "fix your damaged Boot Camp volume." But I'm at a loss as to how to do that.


So, anyone know how to proceed now so that I can keep my partitions as is, whilst fully restoring normal Boot Camp functionality?

Mac mini (Mid 2011), Mac OS X (10.7.4)

Posted on Jul 26, 2012 11:28 PM

Reply
1,534 replies

Mar 13, 2013 6:11 PM in response to Christopher Murphy

OK. I was able to get into Single User Mode zapping the PRAM. I then ran the commands above.


"fsck_hfs -fy /dev/rdisk0s2" ran fine and said it did some changes to the disk.


"fsck_hfs -r /dev/rdisk0s2" ran fine for a while. Then it started coughing up error messages - something about the volume Macintosh being mounted, and something about "errno=5". Then it went into some kind of panic and just started to repeat a set of 15 or so lines over and over. One line said that to reboot I had to use ëxit". But at that point exit didn't work; nothing did.


So I powered off and rebooted. Nothing seems to have changed. rEFIt is still here, the partitions seem to be the same, and the machine still works.


How about me just getting rid of "rEFIt"- I don't need it for the moment, no Ubuntu, just OS X and Win 7? And then running whatever commands needed to get info to see how things look?

Mar 13, 2013 6:23 PM in response to berkeley201

"fsck_hfs -r /dev/rdisk0s2" ran fine for a while. Then it started coughing up error messages - something about the volume Macintosh being mounted, and something about "errno=5". Then it went into some kind of panic and just started to repeat a set of 15 or so lines over and over. One line said that to reboot I had to use ëxit". But at that point exit didn't work; nothing did.


The problems with the file system need to be repaired. So you'll need to repeat this until it's fixed, or you're going to end up needing to repartition the drive with a single partition, and restore everything from backups.


Nothing seems to have changed.


These are preliminary steps to make sure the file system is healthy before doing resizing/merging partitions.


How about me just getting rid of "rEFIt"-


rEFIt has nothing to do with the file system problems.

Mar 13, 2013 6:34 PM in response to Christopher Murphy

Christopher!


Thanks for the quick reply!


OK. So I get that I have to repeat the steps and that the errors have to be fixed. Is there something I should be looking for? Some message to take note of? Is there anything else I should do - dismount the drive (I don't know how to do that in single user mode)? Anything I should make a note of and report back?

Mar 13, 2013 6:46 PM in response to berkeley201

Single user mode

fsck_hfs -r /dev/rdisk0s2


You're looking for the message "The volume <name> was repaired successfully. ****The volume was modified.****"


It's normal for this to take a while, especially on the Rebuilding catalog B-tree step. It's normal to get some errors like Invalid volume file count, and that the Volume header needs minor repairs.


If you get anything else repeat the above command; if you get the same error message as before, you'll need to forego the recapture of space by file system resize/merge, get Windows booting again, make a backup of that - and then prepare to totally repartition/erase the drive and restore from backups.


Whether successful or not, the correct way to reboot is to type reboot then return.

Mar 13, 2013 8:28 PM in response to Christopher Murphy

OK. I first did the singleuser commands. They seemed to work, I got ** The vol Macintosh HD repaired successfully **** and The volume was modified.


However, I also got "hfs_mount: hfs reload returned 5 on Macintosh HD", and

üpdate/reload: mount for / failed: Input/output error"


Then I did the removal of the Mac Stuff partition using Disk Utility. It removed it, but the Bootcamp is still not bootable. My diskutil list returns:


#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 137.9 GB disk0s2
3: Apple_HFS Recovery HD 650.0 MB disk0s3
4: Microsoft Basic Data BOOTCAMP 97.1 GBdisk0s4


So what now?

Mar 13, 2013 8:41 PM in response to berkeley201

mount for / failed: Input/output error


That's not reassuring. Go to Disk Utility, click on the drive (not the volume name, the one size make model), then click on the Info button in the tool bar. There should be a line S.M.A.R.T. Status - copy paste everything below that to the forum.


Back in Terminal, type this and report the result:

sudo fdisk /dev/disk0

Mar 13, 2013 9:17 PM in response to Christopher Murphy

Christopher: Here is the info


S.M.A.R.T. Status : Verified
Raw Read Error : 000000000000
Reallocated Sector Count : 000000000000
Power On Hours : 00000000007A
Power Cycle : 000000000E78
Temperature : 0040000D001A
UDMA CRC Error (PATA only) : 000000000000



sudo fdisk /dev/disk0:


Disk: /dev/disk0geometry: 30515/255/63 [490234752 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 - 269273912] HFS+
3: AF 1023 254 63 - 1023 254 63 [ 269945696 -1269536] HFS+

4: 0C 1023 254 63 - 1023 254 63 [ 300509184 - 189724672] Win95 FAT32L

Mar 13, 2013 9:46 PM in response to Christopher Murphy

You wrote to Berend de Mayer

Ok anytime you have to use the power switch to force off power, you've going to have some level of JHFS+ corruption. The journaling doesn't make it any safer, it just makes repairs go faster. So I suggest you reboot in single user mode (with command s) and

fsck -fy

<wait>

then do

fsck_hfs -r /dev/rdisk0s2

<wait>

fsck_hfs -Ra /dev/rdisk0s2

fsck_hfs -Re /dev/rdisk0s2

I gulped because I have sometimes had to force off power. The first time I booted into single user mode and ran these commands, it seemed to me I got a performance boost. Today, I finally enabled TRIM support on my SSD. (I could not enable it successfully by the approach that emphasizes editing this file:

/System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage .kext/Contents/MacOS/IOAHCIBlockStorage

but Mountain Tweaks.app did the trick.


Because I forced power off once, I booted into single user mode, but the results of

fsck_hfs -r /dev/rdisk0s2

were woeful indeed, as you can see here. I was not sure how to interpret ****REBOOT NOW*****. When I typed reboot, it kicked an error that reboot was not a single user mode command. So, I type exit, with further woeful results. I finally had to force off power. When I rebooted, I saw what I have never seen before, the progress bar for fsck being force-run at boot.


Several further iterations of the above have not produced different results. My machine will boot, and I'm using it to post this. What you you advise?

Mar 13, 2013 9:55 PM in response to autnagrag

Other possibly useful information follows.


In Disk Utility, selecting the entire device, and hitting the info button:


S.M.A.R.T. Status : Verified

____________________________________________


sudo fdisk /dev/disk0



myuser$ sudo fdisk /dev/disk0

Password:

Disk: /dev/disk0 geometry: 14593/255/63 [234441648 sectors]

Signature: 0xAA55

Starting Ending

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

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

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

2: 00 0 0 0 - 0 0 0 [ 0 - 0] unused

3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused

4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused

myuser$

Mar 13, 2013 9:57 PM in response to autnagrag

Carbon Copy Cloner or Time Machine a backup. Reboot off the Recover HD, select the troublesome volume and "erase" it (which is a reformat). Then restore from backup.


Ideally, before you do intentional destruction of your primary data, you make a 2nd backup. Obviously the instant you destroy the primary volume, your backup is no longer a backup, it's the primary source. So for a period of time you're without a backup unless you first make a 2nd backup. Especially if it's a Time Machine backup started a while ago (it has many incremental backups in it) I prefer creating a 2nd fresh Time Machine or CCC backup and using that for restore.

Repairing Boot Camp after creating new partition

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