Go Back   The macosxhints Forums > OS X Help Requests > UNIX - Newcomers



Reply
 
Thread Tools Rate Thread Display Modes
Old 01-22-2013, 07:31 PM   #1
Sumleilmus
MVP
 
Join Date: Sep 2002
Location: /
Posts: 1,045
trying to salvage BootCamp boogered by Recovery HD

My Bootcamp installation of Windows is broken or at least mislocated. A program, probably Carbon Copy Cloner, objected to the fully functional drive, which had bootable partitions for Lion_Mountain, Leopard_Snow, and WNDWS832 (Win8 32bit), and offered to give it a Recovery HD slice. Thus I ended up with the following:

Code:
$ diskutil list
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.1 GB   disk1
   1:                        EFI                         209.7 MB   disk1s1
   2:                  Apple_HFS Lion_Mountain         412.3 GB   disk1s2
   3:                 Apple_Boot Recovery HD             784.2 MB   disk1s3
   4:                  Apple_HFS Leopard_Snow        40.3 GB    disk1s4
   5:       Microsoft Basic Data WNDWS832        45.6 GB    disk1s5
The Windows volume will still boot as a virtual machine using Virtual Box.

System Preferences>Startup Disk sees the Windows volume. Alas, when it is chosen as the startup disk the boot fails with a Win8 error message of “no bootable Windows installation.”

I think the volume might work again if I can restore it so it looks like this, so that Bootcamp installation will again be in slice 4 where it was very happy:

Code:
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.1 GB   disk1
   1:                        EFI                         209.7 MB   disk1s1
   2:                  Apple_HFS Lion_Mountain         412.3 GB   disk1s2
   3:                  Apple_HFS Leopard_Snow        40.3 GB disk1s3
   4:                  Microsoft Basic Data WNDWS832        45.6 GB   disk1s4
I read the man pages for diskutil, I think with care, but I am inexperienced in its use. I have backed up the contents of each volume on the disk.

I think what I want to do is first
Code:
     diskutil eraseVolume JHFS+ UntitledJHFS /Volumes/Apple_Boot Recovery HD
followed by
Code:
     diskutil mergePartitions JHFS+ Lion_Mountain disk1s2 disk1s3
Does that look correct?
__________________
Sumleilmus
________
10.8.3 MacBook Pro 9,2, 10.8.3 Mac Pro 3,1, iMac 9,1, 10.8.3 hemisphere Motorola iMac, & iOS 5.1.1 iPhone 4S…not to mention SheepShaver
Sumleilmus is offline   Reply With Quote
Old 01-22-2013, 08:30 PM   #2
DeltaMac
League Commissioner
 
Join Date: Jan 2002
Posts: 7,960
Have you tried to repair the Windows 8 partition? That may then let Windows boot without needing to change your other partitions
http://windows7themes.net/disaster-r...s-missing.html
You do need your Windows 8 installer disk (or you might have a USB stick with your Win8 install?) The instructions assume that you need to set BIOS, etc, for the installer disk to boot. All you need to do on your Mac is hold the C, same as other bootable optical disks on a Mac. Or, Option-boot screen to choose the Win8 installer. Follow the repair instructions, which is pretty quick just to fix the mbr, and (I suppose) also should get the bootmgr correctly installed.
As far as I know, you shouldn't need to do anything to the ML Recovery HD partition. It takes hardly any space on your hard drive...
DeltaMac is offline   Reply With Quote
Old 01-22-2013, 08:45 PM   #3
Sumleilmus
MVP
 
Join Date: Sep 2002
Location: /
Posts: 1,045
Win 7, not the WRONG info I put in

The partition in question is a Windows 7. I blundered above, and I don't think I can edit the post (O, moderators, save this oaf…)

This post in another site talks about the "Hybrid MBR" set up that worked for me before.

I have high hopes for unboogering it, perhaps unwarrated, but I know that without that Recovery HD volume, it worked great.

The Win 7 will boot as a virtual machine. That's what makes me think its problems are its neighbors and its location, not its qualities.

Ha, but my fat fingers don't know Win 8 from Win 7…
__________________
Sumleilmus
________
10.8.3 MacBook Pro 9,2, 10.8.3 Mac Pro 3,1, iMac 9,1, 10.8.3 hemisphere Motorola iMac, & iOS 5.1.1 iPhone 4S…not to mention SheepShaver
Sumleilmus is offline   Reply With Quote
Old 01-23-2013, 04:11 AM   #4
agentx
Hall of Famer
 
Join Date: Feb 2003
Location: Brighton, UK
Posts: 3,811
I would use Winclone to backup a bootcamp partition to disk image.
There will be fun and games getting this working but Windows boot repair or playing with bootmgr.dll
will correct the booting issue as it will have the incorrect partition in this config as moved from 5 to 4.

This might point you in right direction
https://discussions.apple.com/thread...art=0&tstart=0

Last edited by agentx; 01-23-2013 at 04:16 AM.
agentx is offline   Reply With Quote
Old 01-23-2013, 11:35 AM   #5
Sumleilmus
MVP
 
Join Date: Sep 2002
Location: /
Posts: 1,045
Wow!

agentx,

I've enjoyed Winclone now for yet awhile. That thread you cite is paydirt, a pure seam of gold.

https://discussions.apple.com/thread...art=0&tstart=0

I will hop on to that. Hiyo, gdisk awayyyyyyy
__________________
Sumleilmus
________
10.8.3 MacBook Pro 9,2, 10.8.3 Mac Pro 3,1, iMac 9,1, 10.8.3 hemisphere Motorola iMac, & iOS 5.1.1 iPhone 4S…not to mention SheepShaver

Last edited by Sumleilmus; 01-23-2013 at 11:37 AM. Reason: repair url
Sumleilmus is offline   Reply With Quote
Old 01-24-2013, 07:52 AM   #6
agentx
Hall of Famer
 
Join Date: Feb 2003
Location: Brighton, UK
Posts: 3,811
You know windows will only boot off a partition numbered 1-4 don't you ? That is why it will not boot on Partition 5.
You should be able to keep partition map in tact and format the Snow and Windows partitions and restore from clones/backups putting windows on 4 and snow on 5.
agentx is offline   Reply With Quote
Old 01-24-2013, 08:07 AM   #7
agentx
Hall of Famer
 
Join Date: Feb 2003
Location: Brighton, UK
Posts: 3,811
You could also remove the recovery partition. Which would also change the partition numbers. I urge everyone to buy a nice fast USB flash drive and clone the InstallESD.dmg from inside Install Mac OS X.app. This gives you recovery options and a bootable installer.

You will not be able to encrypt your hard disk without a recovery partition.
agentx is offline   Reply With Quote
Old 01-24-2013, 08:53 AM   #8
Sumleilmus
MVP
 
Join Date: Sep 2002
Location: /
Posts: 1,045
Right but

I thought I knew that about Windows having to boot from one of the first four partitions. I am learning from the thread that was cited that that's not necessarily true, but rather that that's the only solution that Apple offers. That thread is long, and there is a lot of interesting information in it.

I have both an SD card and a USB stick to accomplish those things, which is why I am annoyed with myself for not controlling my software better and for allowing CCC to insert that Recovery HD partition.

What I proposed in my original post was to absorb the Recovery HD partition into the partition that precedes it, changing the number of partitions. I hoped thereby to regain bootability of the Windows partition.

It would be enough work for me to rebuild this drive that I am proceeding cautiously at this point.

Thank you very much for all your thoughtful suggestions.

Oh yes, I do not want to use FileVault2 on the installation of Mountain Lion on this drive, so I will not miss having the Recovery HD partition in another location in the machine.
__________________
Sumleilmus
________
10.8.3 MacBook Pro 9,2, 10.8.3 Mac Pro 3,1, iMac 9,1, 10.8.3 hemisphere Motorola iMac, & iOS 5.1.1 iPhone 4S…not to mention SheepShaver

Last edited by Sumleilmus; 01-24-2013 at 09:00 AM. Reason: addendum
Sumleilmus is offline   Reply With Quote
Old 01-24-2013, 10:28 AM   #9
agentx
Hall of Famer
 
Join Date: Feb 2003
Location: Brighton, UK
Posts: 3,811
I was really talking about Windows aka Boot Camp but even on a mixed system we generally have always put Windows on 1-4 partitions just as good practice more than anything . It has to be on 1 of the first 4 partitions for Bootcamp to work.
Bootcamp assistent does lots of clever stuff shunting bits about but has limitations when you want triple boot etc.

To be honest i just run Virtual Machines now (Win XP/7/8, RHEL, Ubuntu, Debian, Mac OS X 10.6/10.7/10.8 server and client etc) now and BootCamp installs are rare but not gone from my deployments. My next project is to setup ESXi at home office ;-)

Of course there are reasons for native booting and have some users who use Mac Hardware with Windows 7 24/7.
agentx is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 11:07 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.