KaiKaiser

Q: Bootcamp missing after resizing manually

I know i have seen many threads, discussions about this kind of problem. Sorry if this is posted in here if its the wrong place I mean.

Well I did some reading and wasnt so sure about going further than what I've seen was successful for others (scared to damage or lose any files on my bootcamp).

 

I did resize it once, and it was successful, but this time it just suddenly turned to a disk0s4 and has an amount of the very first partition I had for the bootcamp (before resizing it successfully)

 

Thing is I'm not that confident without proper help or guide in repairing and any help would be greatly appreciated. I'm online this very moment and day I just want to wrap this up as I won't be able to sleep knowing that my sister's thesis report are in that bootcamp.

 

Here is so far what i have done.

 

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

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

  394345320  386630808        

  780976128  195796992      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

  976773120         15        

  976773135         32         Sec GPT table

  976773167          1         Sec GPT header

 

 

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 -  392666144] HFS+       

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

4: 0C 1023 254  63 - 1023 254  63 [ 780976128 -  195796992] Win95 FAT32L

MacBook Pro, Mac OS X (10.7.5)

Posted on May 3, 2014 12:08 AM

Close

Q: Bootcamp missing after resizing manually

  • All replies
  • Helpful answers

first Previous Page 3 of 6 last Next
  • by KaiKaiser,

    KaiKaiser KaiKaiser May 4, 2014 12:14 PM in response to Loner T
    Level 1 (0 points)
    May 4, 2014 12:14 PM in response to Loner T

    Sure ill try to do that and see what happens. ill keep you updated.

     

    EDITED: i tried using fdisk just now, it gave me this message

     

    fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory

    Enter 'help' for information

    fdisk: 1> print

     

    Disk: /dev/disk0geometry: 60801/255/63 [976773168 sectors]
    Offset: 0Signature: 0xAA55

             Starting       Ending

    #: id  cyl  hd sec -  cyl  hd sec [     start -       size]

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

    1: EE    0   0   2 -   25 127  14 [         1 -     409639] <Unknown ID>

    2: AF 1023 254  63 - 1023 254  63 [    409640 -  392666144] HFS+       

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

    4: 00    0   0   0 -    0   0   0 [         0 -          0] unused

  • by Loner T,

    Loner T Loner T May 4, 2014 12:44 PM in response to KaiKaiser
    Level 7 (24,862 points)
    Safari
    May 4, 2014 12:44 PM in response to KaiKaiser

    Can you add the following to the MBR (fdisk -e)?

     

    4: 0C 1023 254  63 - 1023 254  63 [ 394345320 -  195796992] Win95 FAT32L

     

    and flag it for bootability?

     

    Can you also post the gpt and fdisk output after you do this?


  • by KaiKaiser,

    KaiKaiser KaiKaiser May 4, 2014 12:49 PM in response to Loner T
    Level 1 (0 points)
    May 4, 2014 12:49 PM in response to Loner T

    How am i going to add that one? ill post it of course

  • by Loner T,

    Loner T Loner T May 4, 2014 12:51 PM in response to KaiKaiser
    Level 7 (24,862 points)
    Safari
    May 4, 2014 12:51 PM in response to KaiKaiser

    KaiKaiser wrote:

     

    How am i going to add that one? ill post it of course

    Using sudo fdisk -e /dev/disk0 .

  • by KaiKaiser,

    KaiKaiser KaiKaiser May 4, 2014 1:03 PM in response to Loner T
    Level 1 (0 points)
    May 4, 2014 1:03 PM in response to Loner T

    like this?

     

    fdisk: 1> setpid 4

             Starting       Ending

    #: id  cyl  hd sec -  cyl  hd sec [     start -       size]

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

    4: 00    0   0   0 -    0   0   0 [         0 -          0] unused     

    Partition id ('0' to disable)  [0 - FF]: [0] (? for help)

     

    is it this that i have to change?

  • by Loner T,

    Loner T Loner T May 4, 2014 1:15 PM in response to KaiKaiser
    Level 7 (24,862 points)
    Safari
    May 4, 2014 1:15 PM in response to KaiKaiser

    Partition id is either '0C' or '07'.

     

    Cylinder/Head/Sector should have defaults of 1023/254/63 in both Starting and Ending columns.

     

    Start

    394345320

     

    End

    195796992

  • by KaiKaiser,

    KaiKaiser KaiKaiser May 4, 2014 1:25 PM in response to Loner T
    Level 1 (0 points)
    May 4, 2014 1:25 PM in response to Loner T

    Loner T wrote:

     

    Partition id is either '0C' or '07'.

     

    Cylinder/Head/Sector should have defaults of 1023/254/63 in both Starting and Ending columns.

     

     

    i changed the partition id, sorry i have no idea how to change the cylinder/head/sector

     

     

    Start

    394345320

     

    End

    195796992

     

    with start and end am i going to use gdisk again?

  • by Loner T,

    Loner T Loner T May 4, 2014 1:36 PM in response to KaiKaiser
    Level 7 (24,862 points)
    Safari
    May 4, 2014 1:36 PM in response to KaiKaiser

    KaiKaiser wrote:

     

    Start

    394345320

     

    End

    195796992

     

    with start and end am i going to use gdisk again?

    This is all done in fdisk. Once you do the write (similar to the setup you did for changing Partition id), post your fdisk output before any further steps. Cylinder/Head/Sector should be already populated with defaults.

  • by KaiKaiser,

    KaiKaiser KaiKaiser May 4, 2014 1:47 PM in response to Loner T
    Level 1 (0 points)
    May 4, 2014 1:47 PM in response to Loner T

    here it is

     

    #: id  cyl  hd sec -  cyl  hd sec [     start -       size]

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

    1: EE    0   0   2 -   25 127  14 [         1 -     409639] <Unknown ID>

    2: AF 1023 254  63 - 1023 254  63 [    409640 -  392666144] HFS+       

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

    4: 0C 1023 254  63 - 1023 254  63 [ 394345320 -  195796992] Win95 FAT32L

    fdisk:*1>

  • by Loner T,

    Loner T Loner T May 4, 2014 2:07 PM in response to KaiKaiser
    Level 7 (24,862 points)
    Safari
    May 4, 2014 2:07 PM in response to KaiKaiser

    Can you also post the gpt output?

     

    Can you do 'setpid 4', flag, write and reboot? Now see

     

    1. if ALT/Option key will show up the Windows as bootable, and,

    2. Does the BOOTCAMP volume mount and is it accessible from OS X Finder?

  • by KaiKaiser,

    KaiKaiser KaiKaiser May 4, 2014 2:17 PM in response to Loner T
    Level 1 (0 points)
    May 4, 2014 2:17 PM in response to Loner T

    shows up as bootable, but the bootcamp volume remains disk0s4 and is not accessible on OS X finder.

     

    Tried to mount it but to no effect. I'll see to your answers maybe later and then give it a shot again, right now i gotta sleep its 5am already. Thanks for the time and help dear sir

  • by Loner T,

    Loner T Loner T May 4, 2014 2:21 PM in response to KaiKaiser
    Level 7 (24,862 points)
    Safari
    May 4, 2014 2:21 PM in response to KaiKaiser

    The Bootcamp volume is not expected to change with what we have done so far. It should stay disk0s4, and diskutil should confirm that.

     

    PLease look at Console log and in DU, if you enable debug mode, we can see what is the volume and file system type.

     

    We can take it up once you have had some sleep.

  • by KaiKaiser,

    KaiKaiser KaiKaiser May 4, 2014 10:13 PM in response to Loner T
    Level 1 (0 points)
    May 4, 2014 10:13 PM in response to Loner T

    And i'm back. So what are the next steps/instructins to be done?

  • by Loner T,

    Loner T Loner T May 5, 2014 3:00 AM in response to KaiKaiser
    Level 7 (24,862 points)
    Safari
    May 5, 2014 3:00 AM in response to KaiKaiser

    In the Microsoft link in this thread, bootrec.exe /scanos using Windows recovery seems to be the next logical step.

     

    It would be good to record diskutil list, gpt and fdisk outputs here.

  • by KaiKaiser,

    KaiKaiser KaiKaiser May 5, 2014 3:07 AM in response to Loner T
    Level 1 (0 points)
    May 5, 2014 3:07 AM in response to Loner T

    here you go

     

    Kanes-MacBook-Pro:~ KKK$ diskutil list

    /dev/disk0

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *500.1 GB   disk0

       1:                        EFI                         209.7 MB   disk0s1

       2:                  Apple_HFS Macintosh HD            201.0 GB   disk0s2

       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

       4:       Microsoft Basic Data                         298.2 GB   disk0s4

    Kanes-MacBook-Pro:~ KKK$

    Kanes-MacBook-Pro:~ KKK$ 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): print

    Disk /dev/disk0: 976773168 sectors, 465.8 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 0000712E-572C-0000-B33C-000088620000

    Partition table holds up to 128 entries

    First usable sector is 34, last usable sector is 976773134

    Partitions will be aligned on 8-sector boundaries

    Total free space is 21 sectors (10.5 KiB)

     

     

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

       1              40          409639   200.0 MiB   EF00  EFI system partition

       2          409640       393075783   187.2 GiB   AF00  Customer

       3       393075784       394345319   619.9 MiB   AB00  Recovery HD

       4       394345320       976773119   277.7 GiB   0700  Microsoft basic data

     

    Kanes-MacBook-Pro:~ KKK$ sudo fdisk -e /dev/disk0

    fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory

    Enter 'help' for information

    fdisk: 1> print

    Disk: /dev/disk0          geometry: 60801/255/63 [976773168 sectors]

    Offset: 0          Signature: 0xAA55

             Starting       Ending

    #: id  cyl  hd sec -  cyl  hd sec [     start -       size]

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

    1: EE    0   0   2 -   25 127  14 [         1 -     409639] <Unknown ID>

    2: AF 1023 254  63 - 1023 254  63 [    409640 -  392666144] HFS+       

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

    *4: 0C 1023 254  63 - 1023 254  63 [ 394345320 -  195796992] Win95 FAT32L

first Previous Page 3 of 6 last Next