Scotch_Brawth

Q: 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:

/___sbsstatic___/migration-images/190/19047693-1.png

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

Close

Q: Repairing Boot Camp after creating new partition

  • All replies
  • Helpful answers

first Previous Page 38 of 102 last Next
  • by berkeley201,

    berkeley201 berkeley201 Mar 13, 2013 6:37 PM in response to Christopher Murphy
    Level 1 (0 points)
    Mar 13, 2013 6:37 PM in response to Christopher Murphy

    Oh - I also get that rEFIt has nothing to do with the disk problems. But getting rid of it may make it easier to get into Single User Mode, was what I thought

  • by Christopher Murphy,

    Christopher Murphy Christopher Murphy Mar 13, 2013 6:46 PM in response to berkeley201
    Level 3 (555 points)
    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.

  • by berkeley201,

    berkeley201 berkeley201 Mar 13, 2013 7:03 PM in response to Christopher Murphy
    Level 1 (0 points)
    Mar 13, 2013 7:03 PM in response to Christopher Murphy

    OK, thanks!!

     

    I will retry the fixes for the drive errors in a little while and get back to you.

     

    But how do I get the Bootcamp up again?

  • by Christopher Murphy,

    Christopher Murphy Christopher Murphy Mar 13, 2013 7:51 PM in response to berkeley201
    Level 3 (555 points)
    Mar 13, 2013 7:51 PM in response to berkeley201

    Try going into Disk Utility, clicking on the Mac B partition, and deleting it with the minus button. In theory you'll now have four partitions instead of five, and Disk Utility should recreate the hybrid MBR that will enable Windows to boot.

  • by berkeley201,

    berkeley201 berkeley201 Mar 13, 2013 8:28 PM in response to Christopher Murphy
    Level 1 (0 points)
    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?

  • by Christopher Murphy,

    Christopher Murphy Christopher Murphy Mar 13, 2013 8:41 PM in response to berkeley201
    Level 3 (555 points)
    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

  • by berkeley201,

    berkeley201 berkeley201 Mar 13, 2013 9:17 PM in response to Christopher Murphy
    Level 1 (0 points)
    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

  • by autnagrag,

    autnagrag autnagrag Mar 13, 2013 9:46 PM in response to Christopher Murphy
    Level 1 (49 points)
    Mac OS X
    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?


  • by autnagrag,

    autnagrag autnagrag Mar 13, 2013 9:55 PM in response to autnagrag
    Level 1 (49 points)
    Mac OS X
    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$

  • by Christopher Murphy,

    Christopher Murphy Christopher Murphy Mar 13, 2013 9:57 PM in response to autnagrag
    Level 3 (555 points)
    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.

  • by Christopher Murphy,

    Christopher Murphy Christopher Murphy Mar 13, 2013 9:59 PM in response to autnagrag
    Level 3 (555 points)
    Mar 13, 2013 9:59 PM in response to autnagrag

    SMART Status itself is next to useless. You need to copy past everything below that. As for the fdisk result, it indicates your MBR is a protective MBR, which is normal  if you don't have Windows installed using Boot Camp.

  • by Christopher Murphy,

    Christopher Murphy Christopher Murphy Mar 13, 2013 10:01 PM in response to Christopher Murphy
    Level 3 (555 points)
    Mar 13, 2013 10:01 PM in response to Christopher Murphy

    And just to be clear about what you're erasing, again you're erasing a volume (reformatting a partition). You're not blowing away the whole disk. So make sure you select the correct thing.

  • by autnagrag,

    autnagrag autnagrag Mar 13, 2013 10:07 PM in response to Christopher Murphy
    Level 1 (49 points)
    Mac OS X
    Mar 13, 2013 10:07 PM in response to Christopher Murphy

    There was nothing below the line I posted. I enabled Debug menu in Disk Utility, but that did not increase the harvest of information.

     

    Re the fdisk result, what do you mean by

    your MBR is a protective MBR, which is normal  if you don't have Windows installed using Boot Camp.

    I have two internal drives. One, the SSD, is the book drive with no unusual other volumes, and it is GUID, or so I thought.

     

    myuser$ diskutil list

    /dev/disk0

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *120.0 GB   disk0

       1:                        EFI                         209.7 MB   disk0s1

       2:                  Apple_HFS Contino92               119.0 GB   disk0s2

       3:                 Apple_Boot RecoverySSD             784.2 MB   disk0s3

     

    I will begin to make backups. Should I do one forensic one using dd as you already showed me, or just stay booted and do two with CCC? If  I remember right I boot to single user to use dd with a target in ***.iso format.

  • by autnagrag,

    autnagrag autnagrag Mar 13, 2013 10:08 PM in response to autnagrag
    Level 1 (49 points)
    Mac OS X
    Mar 13, 2013 10:08 PM in response to autnagrag

    boot drive, not book drive

  • by Christopher Murphy,

    Christopher Murphy Christopher Murphy Mar 13, 2013 10:27 PM in response to autnagrag
    Level 3 (555 points)
    Mar 13, 2013 10:27 PM in response to autnagrag

    Normally the only reason to inspect the MBR with fdisk on a Mac is if you're using Boot Camp. That doesn't appear to be the case, yet this is a Boot Camp thread so... it's confusing to provide the fdisk result.

     

    If you have the space for it, there's nothing wrong with a dd copy, but that copy will take all of the file system problems with it. So it's not suitable for restoring information. Either CCC or Time Machine will log errors. CCC has its own log to record errors if some files can't be copied. Time Machine errors are found in the Console application, filter with backupd.

     

    And yes for dd it should be either single user mode (read only file system).

first Previous Page 38 of 102 last Next