Adrianching

Q: Bootcamp missing after expanding partition

MacBook Pro with Retina display, OS X Mavericks (10.9.5)

Posted on Oct 1, 2014 4:56 PM

Close

Q: Bootcamp missing after expanding partition

  • All replies
  • Helpful answers

first Previous Page 3 of 4 last Next
  • by Adrianching,

    Adrianching Adrianching Oct 2, 2014 11:14 AM in response to Loner T
    Level 1 (0 points)
    Oct 2, 2014 11:14 AM in response to Loner T

    Last login: Thu Oct  2 18:57:27 on ttys000

    CCs-MacBook-Pro:~ CheungChing1$ sudo gdisk /dev/disk0

    Password:

    GPT fdisk (gdisk) version 0.8.10

     

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

    Partition number (1-4): 4

     

    Command (? for help): w

     

    Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING

    PARTITIONS!!

     

    Do you want to proceed? (Y/N): y

    OK; writing new GUID partition table (GPT) to /dev/disk0.

    Warning: Devices opened with shared lock will not have their

    partition table automatically reloaded!

    Warning: The kernel may continue to use old or deleted partitions.

    You should reboot or remove the drive.

    The operation has completed successfully.

    CCs-MacBook-Pro:~ CheungChing1$ p

    -bash: p: command not found

    CCs-MacBook-Pro:~ CheungChing1$ sudo gdisk /dev/disk0

    GPT fdisk (gdisk) version 0.8.10

     

    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: 490234752 sectors, 233.8 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 0000103F-40BF-0000-F577-0000DF230000

    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 146758693 sectors (70.0 GiB)

     

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

       1              40          409639   200.0 MiB   EF00  EFI system partition

       2          409640       342206495   163.0 GiB   AF00  Customer

       3       342206496       343476031   619.9 MiB   AB00  Recovery HD

     

    Command (? for help): n

    Partition number (4-128, default 4): 4

    First sector (34-490234718, default = 343476032) or {+-}size{KMGTP}:

     

     

    at this point, i dont know what should i put in....

  • by Loner T,

    Loner T Loner T Oct 2, 2014 11:28 AM in response to Adrianching
    Level 7 (23,813 points)
    Safari
    Oct 2, 2014 11:28 AM in response to Adrianching

    Start=196718600 

    End=343476224 

    Size=146757625

  • by Adrianching,

    Adrianching Adrianching Oct 2, 2014 11:42 AM in response to Loner T
    Level 1 (0 points)
    Oct 2, 2014 11:42 AM in response to Loner T

    at least got some progress... the bootcamp has appear yet...

    but the partition become sth like this...

    Screen Shot 2014-10-02 at 7.41.38 pm.png

  • by Adrianching,

    Adrianching Adrianching Oct 2, 2014 11:46 AM in response to Loner T
    Level 1 (0 points)
    Oct 2, 2014 11:46 AM in response to Loner T

    still not working... i have checked, but i dont where did i go wrong...

     

     

    Last login: Thu Oct  2 19:39:29 on console

    CCs-MacBook-Pro:~ CheungChing1$ sudo gdisk /dev/disk0

    Password:

    GPT fdisk (gdisk) version 0.8.10

     

    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: 490234752 sectors, 233.8 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 0000103F-40BF-0000-F577-0000DF230000

    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 146758500 sectors (70.0 GiB)

     

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

       1              40          409639   200.0 MiB   EF00  EFI system partition

       2          409640       342206495   163.0 GiB   AF00  Customer

       3       342206496       343476031   619.9 MiB   AB00  Recovery HD

       4       343476032       343476224   96.5 KiB    FFFF  Unknown

     

    Command (? for help):

     

     

    and

     

    Screen Shot 2014-10-02 at 7.41.38 pm.png

  • by Loner T,

    Loner T Loner T Oct 2, 2014 11:47 AM in response to Adrianching
    Level 7 (23,813 points)
    Safari
    Oct 2, 2014 11:47 AM in response to Adrianching

    Please post the GPT for verification.

  • by Adrianching,

    Adrianching Adrianching Oct 2, 2014 11:50 AM in response to Loner T
    Level 1 (0 points)
    Oct 2, 2014 11:50 AM in response to Loner T

    Last login: Thu Oct  2 19:39:29 on console

    CCs-MacBook-Pro:~ CheungChing1$ sudo gdisk /dev/disk0

    Password:

    GPT fdisk (gdisk) version 0.8.10

     

    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: 490234752 sectors, 233.8 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 0000103F-40BF-0000-F577-0000DF230000

    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 146758500 sectors (70.0 GiB)

     

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

       1              40          409639   200.0 MiB   EF00  EFI system partition

       2          409640       342206495   163.0 GiB   AF00  Customer

       3       342206496       343476031   619.9 MiB   AB00  Recovery HD

       4       343476032       343476224   96.5 KiB    FFFF  Unknown

  • by Adrianching,

    Adrianching Adrianching Oct 2, 2014 11:53 AM in response to Loner T
    Level 1 (0 points)
    Oct 2, 2014 11:53 AM in response to Loner T

    when i was doing it,

     

    when it comes to the partition 4, it shows FF in default not 07)

    Creating entry for GPT partition #4 (MBR partition #4)

    Enter an MBR hex code (default FF): 07

    Set the bootable flag? (Y/N): y

     

    how to handle this...?

  • by Loner T,

    Loner T Loner T Oct 2, 2014 12:01 PM in response to Adrianching
    Level 7 (23,813 points)
    Safari
    Oct 2, 2014 12:01 PM in response to Adrianching

    1. Delete the old entry and create a new entry at GPT#4.

     

    sudo gdisk /dev/disk0

    p

    d

    4

    n

    4

    (Put the correct Start value here)

    (Put the correct End value here)

    0700

    p

    w

    y

     

    2. You will need to reboot after each change, because the disk you are booted from is the one being modified. Each reboot will rebuild disk0s4 using the start/end you entered.

     

    3. Run the dd command - sudo dd if=/dev/rdisk0s4 count=1 2>/dev/null | hexdump -C and check that the first line contains "R.NTFS".

     

    4. If you want to pose here for recording purposes, each of these iterations, please do so. It may be better that the output of 1,2,3 gets recorded here.

     

    5. This is a tedious process and you want to check after the second 'p'rint command that it looks reasonable, before the 'w'rite and 'y'es to confirm.

     

     

    Here is an example...

     

    Command (? for help): d

    Partition number (1-4): 4

     

    Command (? for help): n

    Partition number (4-128, default 4): 4

    First sector (34-1954210086, default = 1454210080) or {+-}size{KMGTP}: 1454211072

    Last sector (1454211072-1954210086, default = 1954210086) or {+-}size{KMGTP}: 1954209791

    Current type is 'Apple HFS/HFS+'

    Hex code or GUID (L to show codes, Enter = AF00): 0700

    Changed type of partition to 'Microsoft basic data'

     

    Command (? for help): p

    Disk /dev/disk0: 1954210120 sectors, 931.8 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 6ED0C429-00D1-4759-B50E-04B6FB80D0E3

    Partition table holds up to 128 entries

    First usable sector is 34, last usable sector is 1954210086

    Partitions will be aligned on 8-sector boundaries

    Total free space is 1293 sectors (646.5 KiB)

     

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

       1              40          409639   200.0 MiB   EF00  EFI System Partition

       2          409640      1452940543   692.6 GiB   AF00  Customer

       3      1452940544      1454210079   619.9 MiB   AB00  Recovery HD

       4      1454211072      1954209791   238.4 GiB   0700  Microsoft basic data

  • by Adrianching,

    Adrianching Adrianching Oct 2, 2014 12:17 PM in response to Loner T
    Level 1 (0 points)
    Oct 2, 2014 12:17 PM in response to Loner T

    i have done the steps you told me, but seems i still get it wrong..

    i did both , i ran "dd", there is "R.NTFS"

    and when i type in the first sector, it wont allow me to do so, so i followed the default one..

     

    here is the GRT:

     

    Last login: Thu Oct  2 20:10:38 on console

    CCs-MacBook-Pro:~ CheungChing1$ sudo dd if=/dev/rdisk0s4 count=1 2>/dev/null | hexdump -C

    Password:

    00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|

    *

    00000200

    CCs-MacBook-Pro:~ CheungChing1$ sudo gdisk /dev/disk0

    GPT fdisk (gdisk) version 0.8.10

     

    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: 490234752 sectors, 233.8 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 0000103F-40BF-0000-F577-0000DF230000

    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 6 sectors (3.0 KiB)

     

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

       1              40          409639   200.0 MiB   EF00  EFI system partition

       2          409640       342206495   163.0 GiB   AF00  Customer

       3       342206496       343476031   619.9 MiB   AB00  Recovery HD

       4       343476032       490234718   70.0 GiB    0700  Microsoft basic data

     

    Command (? for help):

  • by Loner T,

    Loner T Loner T Oct 2, 2014 12:32 PM in response to Adrianching
    Level 7 (23,813 points)
    Safari
    Oct 2, 2014 12:32 PM in response to Adrianching

    Partition 4 looks incorrect. You have

     

    343476032       490234718

     

    but it should be


    343476224  490233848  146757625



    I am using this that you posted earlier...


    the second one i "P" it:

    TestDisk 7.0-WIP, Data Recovery Utility, August 2014

    Christophe GRENIER <grenier@cgsecurity.org>

    http://www.cgsecurity.org

         MS Data                343476224  490233848  146757625

    Directory /

     

    >dr-xr-xr-x     0     0         0  1-Oct-2014 22:15 .

    dr-xr-xr-x     0     0         0  1-Oct-2014 22:15 ..

    dr-xr-xr-x     0     0         0 18-Dec-2012 14:00 $Recycle.Bin

    dr-xr-xr-x     0     0         0 11-Mar-2014 15:57 .Trashes

    dr-xr-xr-x     0     0         0  1-Oct-2014 14:37 Autodesk

    dr-xr-xr-x     0     0         0 18-Dec-2012 21:52 Boot

    dr-xr-xr-x     0     0         0  1-Oct-2014 22:03 Config.Msi

    dr-xr-xr-x     0     0         0 18-Dec-2012 14:06 Intel

    dr-xr-xr-x     0     0         0 18-Dec-2012 15:27 NVIDIA

    dr-xr-xr-x     0     0         0 22-Oct-2013 15:13 New folder

    dr-xr-xr-x     0     0         0 14-Jul-2009 04:20 PerfLogs

    dr-xr-xr-x     0     0         0 22-Oct-2013 14:38 Program Files

    dr-xr-xr-x     0     0         0  1-Oct-2014 22:03 Program Files (x86)

    dr-xr-xr-x     0     0         0  1-Oct-2014 22:03 ProgramData

    dr-xr-xr-x     0     0         0 10-Jun-2014 16:01 QvodPlayer

    dr-xr-xr-x     0     0         0 18-Dec-2012 14:00 Recovery

    dr-xr-xr-x     0     0         0  1-Oct-2014 22:03 System Volume Information

    dr-xr-xr-x     0     0         0 23-Dec-2012 05:13 TEMP_PARALLELS_TOOLS

    dr-xr-xr-x     0     0         0 17-Jul-2014 07:52 UpdateChromeLinksLogs

    dr-xr-xr-x     0     0         0 18-Dec-2012 15:28 Users

    dr-xr-xr-x     0     0         0  1-Oct-2014 22:15 Windows

    -r--r--r--     0     0      8192 18-Dec-2012 21:52 BOOTSECT.BAK

    -r--r--r--     0     0         0 29-Apr-2013 07:45 END

    -r--r--r--     0     0    383786 21-Nov-2010 03:23 bootmgr

    -r--r--r--     0     0        90 18-Dec-2012 16:17 desktop.ini

    -r--r--r--     0     0    904704  1-Dec-2006 22:37 msdia80.dll

    -r--r--r--     0     0 2097152000  1-Oct-2014 21:11 pagefile.sys

  • by Adrianching,

    Adrianching Adrianching Oct 2, 2014 12:36 PM in response to Loner T
    Level 1 (0 points)
    Oct 2, 2014 12:36 PM in response to Loner T

    there is one the post.......i followed...

    Did you look at the other thread/discussion where Testdisk and Gdisk are used with the steps to recreate the GPT and check each entry? If not, please take a look.

     

    This looks like the best candidate

     

    MS Data                196718600  343476224  146757625



    but it wasn't allowed me to type in 196718600 for the first sector...


    what should i do now.....


  • by Loner T,

    Loner T Loner T Oct 2, 2014 12:46 PM in response to Adrianching
    Level 7 (23,813 points)
    Safari
    Oct 2, 2014 12:46 PM in response to Adrianching

    This is what it should look like. Notice the gap between 343476031 (where Recovery HD ends) and 343476224 (start of NTFS).

     

    3       342206496       343476031   619.9 MiB   AB00  Recovery HD

    4       343476032       490234718   70.0 GiB    0700  Microsoft basic data

    4       343476224          490233848                         0700 Microsoft Basic Data

  • by Adrianching,

    Adrianching Adrianching Oct 2, 2014 2:27 PM in response to Loner T
    Level 1 (0 points)
    Oct 2, 2014 2:27 PM in response to Loner T

    Dear Loner T,

     

    I really want to thank you in person!

    you saved me and my mac and i had a great lesson from you!

    Now everything is settled and running flawlessly!!!

    THANK YOU VERY MUCH!!!!!!!

     

    here is the GPT result:

    Last login: Thu Oct  2 22:15:12 on console

    CCs-MacBook-Pro:~ CheungChing1$ sudo gdisk /dev/disk0

    Password:

    GPT fdisk (gdisk) version 0.8.10

     

    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: 490234752 sectors, 233.8 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 0000103F-40BF-0000-F577-0000DF230000

    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 1068 sectors (534.0 KiB)

     

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

       1              40          409639   200.0 MiB   EF00  EFI system partition

       2          409640       342206495   163.0 GiB   AF00  Customer

       3       342206496       343476031   619.9 MiB   AB00  Recovery HD

       4       343476224       490233848   70.0 GiB    0700  Microsoft basic data

     

    Command (? for help):

  • by Loner T,Solvedanswer

    Loner T Loner T Oct 2, 2014 2:34 PM in response to Adrianching
    Level 7 (23,813 points)
    Safari
    Oct 2, 2014 2:34 PM in response to Adrianching

    Excellent work, Adrian. Glad to see it all back together.

  • by Adrianching,

    Adrianching Adrianching Oct 2, 2014 2:54 PM in response to Loner T
    Level 1 (0 points)
    Oct 2, 2014 2:54 PM in response to Loner T

    You are the man, Lenor!!!!!!!!!!!!

first Previous Page 3 of 4 last Next