Previous 1 69 70 71 72 73 Next 1,478 Replies Latest reply: Dec 19, 2014 1:42 PM by fegm Go to original post Branched to a new discussion.
  • Number88 Level 3 Level 3 (750 points)

    In the terminal

    sudo gdisk /dev/disk0

    should open it

  • staycoldb Level 1 Level 1 (0 points)

    Last login: Sat Feb 22 18:58:44 on ttys000
    bryans-mbp:~ Manila$ sudo gdisk /dev/disk0
    Password:
    GPT fdisk (gdisk) version 0.8.9

     

    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: 625142448 sectors, 298.1 GiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): AEDDB192-5B74-44B1-BA43-EEA9844E2E54
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 625142414
    Partitions will be aligned on 8-sector boundaries
    Total free space is 2149 sectors (1.0 MiB)

     

    Number  Start (sector)    End (sector)  Size       Code  Name
       1              40          409639   200.0 MiB   EF00  EFI System Partition
       2          409640        80005903   38.0 GiB    AF00  Macintosh HD
       3        80005904        81275439   619.9 MiB   AB00  Recovery HD
       4        81276928       625141759   259.3 GiB   0700  BOOTCAMP

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

    On my system (yours should be the same).

     

    type gdisk

    gdisk is /usr/sbin/gdisk

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

    Number88 wrote:

     

    There's an option in gdisk to load the MBR and build a fresh GPT from it - sadly I've never used it and don't know whether that would help you.

    It could be an option.

    I think you are referring to this (the  "f load MBR and build fresh GPT from it" option). If OS X boots correctly, it figures out the GPT correctly. The other question would be does using Option key during a powerup show Bootcamp as a valid partition and does it try to boot?

     

    sudo gdisk /dev/disk0

    Password:

    GPT fdisk (gdisk) version 0.8.9

     

    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): r

     

    Recovery/transformation command (? for help): ?

    b          use backup GPT header (rebuilding main)

    c          load backup partition table from disk (rebuilding main)

    d          use main GPT header (rebuilding backup)

    e          load main partition table from disk (rebuilding backup)

    f          load MBR and build fresh GPT from it

    g          convert GPT into MBR and exit

    h          make hybrid MBR

    i          show detailed information on a partition

    l          load partition data from a backup file

    m          return to main menu

    o          print protective MBR data

    p          print the partition table

    q          quit without saving changes

    t          transform BSD disklabel partition

    v          verify disk

    w          write table to disk and exit

    x          extra functionality (experts only)

    ?          print this menu

     

    Recovery/transformation command (? for help):

  • Number88 Level 3 Level 3 (750 points)

    My bad. The MBR does not agree with the GPT. In the MBR there's a large gap between partitions 3 and 4.

    In the GPT that gap does not exist.

     

    Does OSX still boot ok?

  • staycoldb Level 1 Level 1 (0 points)

    Last login: Sat Feb 22 20:15:27 on ttys000
    bryans-mbp:~ Manila$ gdisk
    GPT fdisk (gdisk) version 0.8

     

    Type device filename, or press <Enter> to exit:

  • staycoldb Level 1 Level 1 (0 points)

    88, yes, I have to hit 'option' to choose OSX, but OSX is still booting ok

  • staycoldb Level 1 Level 1 (0 points)

    what should I input for device filename? I'm assuming this is the hdd?

  • Number88 Level 3 Level 3 (750 points)

    sudo gdisk /dev/disk0

  • staycoldb Level 1 Level 1 (0 points)

    O, nevermind, I misread Loner's reply. He was giving me the path to gdisk and I mistook it for syntax.

     

    88, the output for that command is already above

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

    The EFI part looks good.

     

    OSX

     

    GPT: 2          409640        80005903   38.0 GiB    AF00  Macintosh HD

     

    MBR: AF 1023 254  63 - 1023 254  63 [    409640 -   79596264] HFS+

     

    These do not agree.

     

    Recovery looks good.

     

    Bootcamp is a mess.

     

    GPT: 4        81276928       625141759   259.3 GiB   0700  BOOTCAMP

     

    MBR: 07 1023 254  63 - 1023 254  63 [ 204806144 -  420335616]

     

    What happens when you try to boot Windows? Do you get Operating System not found error?

  • staycoldb Level 1 Level 1 (0 points)

    Loner, when I try to boot windows I get "disk read error, press ctrl+alt+delete to restart".

  • Number88 Level 3 Level 3 (750 points)

    I see.

    The MBR has your Bootcamp partition starting at sector  204806144 but the GPT has your Bootcamp partition starting at sector 81276928

    So the resizing worked at least to some degree.

    I am presuming that the GPT was not updated by the tool you used.

    The problem is, if we make a new GPT from the MBR Windows may still refuse to boot.

    If we make a new hybrid MBR we don't know at this stage which start sector gdisk will use.

     

    It may be an option to use testdisk to recover the old Windows partition and then build a new hybrid MBR with those details.

    It's still possible that this will fail to boot Windows.

     

    What does Loner T think?

     


  • Number88 Level 3 Level 3 (750 points)

    Has Windows been successfully booted since you resized?

  • staycoldb Level 1 Level 1 (0 points)

    Nope. I ran the tool in windows, rebooted the machine and immediately got that disk read error. So no, I can't get into the windows partition at all.

Previous 1 69 70 71 72 73 Next