Previous 1 62 63 64 65 66 Next 1,478 Replies Latest reply: Dec 19, 2014 1:42 PM by fegm Go to original post Branched to a new discussion.
  • Ulrik N Level 1 Level 1 (0 points)


    Loner T wrote:

     

    Please try sudo gpt -r -vv show /dev/rdisk0 .

     

    Does your Bootcamp work? (the fourth partition, id '07').

     

    Try option 2 for sudo gdisk /dev/disk0 .

     

    You may end up using testdisk (http://www.cgsecurity.org/wiki/TestDisk) and looking for partitions.

     

    Bootcamp works fine. The windows partition shows no errors running chkdsk.

     

    The command sudo gpt -r -vv show /dev/rdisk0 . shows the same output as with disk0
    Except from the last line ( gpt show: unable to open device '/dev/rdisk0': Undefined error: 0 )

     

    $ sudo gpt -r -vv show /dev/rdisk0

    Password:

    gpt show: /dev/rdisk0: mediasize=251000193024; sectorsize=512; blocks=490234752

    gpt show: /dev/rdisk0: MBR at sector 0

    gpt show: /dev/rdisk0: MBR at sector 264972225

    gpt show: /dev/rdisk0: Pri GPT at sector 1

    gpt show: error: bogus map

    gpt show: unable to open device '/dev/rdisk0': Undefined error: 0

     

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

     

    This is the print output when i select option 2 ( GPT )

     

    Command (? for help): p

    Disk /dev/disk0: 490234752 sectors, 233.8 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 00002069-31E3-0000-9669-00000C420000

    Partition table holds up to 128 entries

    First usable sector is 34, last usable sector is 490234718

    Partitions will be aligned on 8-sector boundaries

    Total free space is 263973 sectors (128.9 MiB)

     

     

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

       1              40          409639   200.0 MiB   EF00  EFI system partition

       2          409640       200019007   95.2 GiB    AF00  Customer

       3       200282112       222867455   10.8 GiB    0700  FREE

       4       222867456       293642239   33.7 GiB    0700  Untitled

       5       293642240       490233855   93.7 GiB    0700  BOOTCAMP

     

     

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

     

    The message "Warning: Devices opened with shared lock will not have their partition table automatically reloaded!" means you need to redo the command as:

     

    sudo gdisk /dev/rdisk0

     

    I havn't done any changes to my disk using gdisk so far. So what do you mean by redoing the command?

  • Loner T Level 5 Level 5 (6,985 points)

    Partitions 3 and 4 seem to have been created using OS X Disk Utility as FAT/NTFS partitions. Would you care to download testdisk? This thread has examples of using testdisk and scanning for disk contents.

     

    Typical partitions containing Bootcamp are usually 4 (including - EFI, OSX, Recovery, Bootcamp). Also, you have not indicated that you have any issues now. The Mavericks upgrade is more than likely to cause you problems with the current partition layout.

  • Ulrik N Level 1 Level 1 (0 points)

    Thanks, I downloaded testdisk, just need to look at the dokumentation to understand how it works, so that i don't create a problem when there probably isn't one in the first place.

     


    How ever disk0 does report as MBR formatted when selecting GetInfo in Mac Disk Utility:

    Name : APPLE SSD TS256C Media

              Type :           Disk

     

              Partition Map Scheme :           Master Boot Record

              Disk Identifier :           disk0

              Media Name :           APPLE SSD TS256C Media

              Media Type :           Generic

              Connection Bus :           SATA

              Device Tree :           IODeviceTree:/PCI0@0/SATA@1F,2/PRT0@0/PMP@0

              Writable :           Yes

              Ejectable :           No

              Location :           Internal

              Solid State Disk :           Yes

              Total Capacity :           251 GB (251,000,193,024 Bytes)

              Disk Number :           0

              Partition Number :           0

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

              Raw Read Error :           000000000000

              Reallocated Sector Count :           000000000000

              Power On Hours :           00000000224D

              Power Cycle :           000000000A96

              Temperature :           003A000A001F

              UDMA CRC Error (PATA only) :           000000000000

  • Christopher Murphy Level 3 Level 3 (555 points)

    Could you please respond to my message? I want to know why two results from fdisk were reported in your initial post. And I want to see the result from this command:

    sudo gdisk -l /dev/rdisk0

     

    I also don't understand why Loner T is recommending Testdisk when Ulrik N has already said Bootcamp is booting OK, which now means this is the wrong thread for his question. This thread is about *repairing Boot Camp* so if it's booting OK. His question was how to convert his partition to GPT, which I already answered. It is already GPT. But it does possibly need to be repaired, but Testdisk will not repair the GPT. So TestDisk isn't at all indicated with the available information.

     

    Superceded by the following message asking to create a new thread for this question.

     

    Message was edited by: Christopher Murphy

  • Christopher Murphy Level 3 Level 3 (555 points)

    >Partition Map Scheme :           Master Boot Record

     

    Like I said, the GPT is bogus and probably needs to be repaired. The fact Disk Utility reports it as an MBR scheme instead of GPT reinforces the idea that the partition map is corrupt.

     

    I suggest ignoring my earlier post asking for more information, and instead start a whole new thread in the Boot Camp forum, titled something like "Upgrading to Mavericks, MBR partition scheme?" And then post a clear statement/question: I'm planning on upgrading to Mavericks but I notice people who have preexisting partition issues are losing all access and bootability of Windows without warning when they upgrade. I noticed before upgrading in Disk Utility that it thinks my disk is using the MBR partition scheme. I don't know how this happened, will I lose data when I upgrade to Mavericks and if so how do I fix this so I don't?"

     

    Post the information you just posted above from Disk Utility showing it's considered MBR. But also post the results from these commands:

     

    sudo gdisk -l /dev/rdisk0

    sudo fdisk /dev/rdisk0

     

    After creating that new thread, post the URL in this way so I get notification and I'll respond to the new thread. The point is that other people with the same issue will never find this conversation buried in a 65 page thread almost completely unrelated to your issue. You're smartly asking in advance of upgrading unlike pretty much everyone else.

  • Loner T Level 5 Level 5 (6,985 points)

    @Christopher.. my suggestion to use testdisk was to look at the possibility of lost partitions, which can further complicate fixes for rebuilding GPT. If it is not warranted, Ulrik can skip it.

  • Ulrik N Level 1 Level 1 (0 points)

    I have created a new thread "Upgrading to Mavericks, MBR partition scheme?"

     

    https://discussions.apple.com/thread/5670820

  • alprao Level 1 Level 1 (10 points)

    Hello,

    I have same problem as many of you.

     

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

    After properly setting up Boot Camp to dual-boot Windows on my MacBook Pro,

     

    I opened Disk Utility, reduced the size of my OS X parition from 370GB to 270GB, and created a new partition (called "D", in Windows NT (NTFS) format) in the unallocated space.  Here's how it looks now:

    Captura de pantalla 2013-12-18 a la(s) 13.15.11.png

    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

     

    Reading this post, I have try to do what Christopher Murphy said, but my messages at the  command line where different:

     

    Results of the "sudo gpt -r -vv show disk0" command:

     

    URI-PC:~ URI$ sudo gpt -r -vv show disk0

    Password:

    gpt show: disk0: mediasize=500107862016; sectorsize=512; blocks=976773168

    gpt show: disk0: Suspicious MBR at sector 0

    gpt show: disk0: Pri GPT at sector 1

    gpt show: disk0: Sec GPT at sector 976773167

          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  538627992      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC

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

      540307168        288        

      540307456  198184960      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      738492416  238280704      5  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      976773120         15        

      976773135         32         Sec GPT table

      976773167          1         Sec GPT header

     

    Results of the "sudo fdisk /dev/disk0" command:

     

    URI-PC:~ URI$ 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 -  538627992] HFS+       

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

    4: 07 1023 254  63 - 1023 254  63 [ 540307456 -  198184960] HPFS/QNX/AUX

     

     

    Christopher Murphy, Must I do the same as you said to Scotch_Brawth

    Mayby if I delete disc D with Disk Utility and resize the mac one, boot camp works again.

     

    must I open a new thread?

     

    Thank you very much

  • Loner T Level 5 Level 5 (6,985 points)

    It may be better to first post a new thread, and then post just a reference here, for notification purposes.

     

    1. Your fdisk partition 4 should be marked active.

    2. You may need to create a hybrid MBR with partitions 2,3,4. There is a very succinct post by Number88 here - https://discussions.apple.com/thread/5641066

  • alprao Level 1 Level 1 (10 points)
  • TimERTy Level 1 Level 1 (0 points)

    After following your instructions I have successfully been able to again access my windows partition. YAY! However, I am now unable to access my OSX partition in windows explorer (from my windows partition). I was wondering if you knew how to fix this or where i could find out how to fix this?

  • Loner T Level 5 Level 5 (6,985 points)

    Would you care to post a separate thread with the output of following commands in a new thread (and post the link here).

     

    sudo gpt -r -vv show disk0


    sudo fdisk /dev/disk0

     

     

    Are you able to boot OS X from Boot Camp panel within Windows Control Panel?

     

    Does OS X re-boot correctly and normally?

  • TimERTy Level 1 Level 1 (0 points)

    https://discussions.apple.com/thread/5684195

     

    I am capable of booting into OSX and I do believe it does re-boot normally.

  • dark fury Level 1 Level 1 (0 points)

    Hi Chris,

     

    I hit the end of the road after this:

     

    fury$ sudo gpt -r -vv show disk0

    Password:

    gpt show: disk0: mediasize=500107862016; sectorsize=512; blocks=976773168

    gpt show: disk0: PMBR at sector 0

    gpt show: disk0: Pri GPT at sector 1

    gpt show: disk0: Sec GPT at sector 976773167

          start       size  index  contents

              0          1         PMBR

              1          1         Pri GPT header

              2         32         Pri GPT table

             34          6        

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

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

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

      294647920  583722896      4  GPT part - 48465300-0000-11AA-AA11-00306543ECAC

      878370816     262144        

      878632960   98140160      5  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      976773120         15        

      976773135         32         Sec GPT table

      976773167          1         Sec GPT header

    furys-MacBook-Pro:~ fury$ 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 -  976773167] <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     

    furys-MacBook-Pro:~ fury$ 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 Fort Knox               150.0 GB   disk0s2

       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

       4:                  Apple_HFS Mac                     298.9 GB   disk0s4

       5:       Microsoft Basic Data BOOTCAMP                50.2 GB    disk0s5

    furys-MacBook-Pro:~ fury$ sudo gdisk /dev/disk0

    GPT fdisk (gdisk) version 0.8.8

     

     

    Warning: Devices opened with shared lock will not have their

    partition table automatically reloaded!

    Partition table scan:

      MBR: protective

      BSD: not present

      APM: not present

      GPT: present

     

     

    Found valid GPT with protective MBR; using GPT.

     

     

    Command (? for help):

     

     

    Please help. Thanks in advance.

  • Number88 Level 3 Level 3 (750 points)

    dark fury,

    how did you install Windows? Boot Camp or EFI?

    Your output shows a protective MBR, which means a GPT-only drive. You also appear to have 5 partitions so a note as to what you have done may be helpful.

    What boots? What doesn't boot? What appears in the Alt + boot menu?

Previous 1 62 63 64 65 66 Next