AleDig92

Q: Mac partition corrupted after creating a new partition

I have a MacBook Pro Retina 13" late 2013 with the last version of Yosemite installed (10.10.4) and Windows 8.1 in BootCamp and everything worked well so far.

One day I needed more space in my Windows so I decided to enlarge the partition, so (in Mac OS) I used the Disk Utility to resize the partition of Mac creating free allocable space. Everything fine so far, both OS worked well.

 

The problem started here, when I allocated the free space created before.

Now the system doesn't recognize my Mac partition anymore.

When I turn on my laptop it can only run Windows or the EFI Boot.


I've tryed to enter EFI to solve the problem with Disk Utility but I can't solve it with "Repair Disk".

I post some screenshot to make it clear. (Sorry they're in italian)

Obviously the problem is in disk0s2

IMG_20150722_215634.jpg

IMG_20150722_215324.jpg

IMG_20150722_215226.jpg

IMG_20150722_215307.jpg


Apparently the problem is that now disk0s2 is in MS-DOS (FAT) when it should be Mac file system.

If I press on "Repair disk" it shows the error above and says something like: The exit error code in file system check is 8.

 

Is there a way to repair it? I really don't want to lose my data reinstalling OS X.

 

Thanks for your help.

I hope I've been clean enough in describing my problem.

MacBook Pro with Retina display, OS X Yosemite (10.10.4)

Posted on Jul 22, 2015 1:41 PM

Close

Q: Mac partition corrupted after creating a new partition

  • All replies
  • Helpful answers

Page 1 Next
  • by Kappy,

    Kappy Kappy Jul 22, 2015 1:47 PM in response to AleDig92
    Level 10 (271,743 points)
    Desktops
    Jul 22, 2015 1:47 PM in response to AleDig92

    The problem is that you tried to create more than two partitions. Boot Camp only works with the OS X and Windows partitions. You cannot create more. So you have screwed up your disk partitioning. You need to re-partition the drive back to one OS X partition. Then decide whether you want just a Boot Camp partition or if you want other partitions. You cannot have both.

     

    Install OS X Using Internet Recovery

     

    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.

     

    Boot to the Internet Recovery HD:

     

    Restart the computer and after the chime press and hold down the COMMAND-OPTION- R keys until a globe appears on the screen. Wait patiently - 15-20 minutes - until the Recovery main menu appears.

     

    Partition and Format the hard drive:

     

    1. Select Disk Utility from the main menu and click on the Continue button.
    2. After DU loads select your newly installed hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed. Quit DU and return to the main menu.

     

    Reinstall OS X: Select Reinstall OS X and click on the Install button. Be sure to select the correct drive to use if you have more than one.

     

    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.

     

    This should restore the version of OS X originally pre-installed on the computer.

  • by BobTheFisherman,

    BobTheFisherman BobTheFisherman Jul 22, 2015 1:48 PM in response to AleDig92
    Level 6 (15,644 points)
    Jul 22, 2015 1:48 PM in response to AleDig92

    To resize a Boot camp partition do not use Disk Utility. Use a tool like CampTune. Search this community to find many threads discussing this.

  • by Loner T,

    Loner T Loner T Jul 22, 2015 1:51 PM in response to BobTheFisherman
    Level 7 (24,661 points)
    Safari
    Jul 22, 2015 1:51 PM in response to BobTheFisherman

    Kappy

    BobTheFisherman

     

    Can I try some terminal magic, please, pretty please (with a cherry on top)?

  • by Loner T,

    Loner T Loner T Jul 22, 2015 1:52 PM in response to AleDig92
    Level 7 (24,661 points)
    Safari
    Jul 22, 2015 1:52 PM in response to AleDig92

    Please post the output of the following Terminal commands.

     

    diskutil list

    diskutil cs list

    sudo gpt -vv -r show /dev/disk0

    sudo fdisk /dev/disk0

     

    The "sudo" commands will prompt for your password, and it will not be echoed back. You may also see a warning about improper use of "sudo" and potential data loss due to "abuse" of the command.

  • by AleDig92,

    AleDig92 AleDig92 Jul 22, 2015 2:05 PM in response to Loner T
    Level 1 (0 points)
    Jul 22, 2015 2:05 PM in response to Loner T

    How can I open the terminal? I've tried with Cmd + S at boot but it just boot in Windows.

  • by Loner T,

    Loner T Loner T Jul 22, 2015 2:09 PM in response to AleDig92
    Level 7 (24,661 points)
    Safari
    Jul 22, 2015 2:09 PM in response to AleDig92

    You are in Recovery Console. Click on Utilities -> Terminal.

     

    Do not use "sudo" part, because you are already root.

     

    gpt -vv -r show /dev/disk0

    fdisk /dev/disk0

  • by Csound1,

    Csound1 Csound1 Jul 22, 2015 2:08 PM in response to Loner T
    Level 9 (51,231 points)
    Desktops
    Jul 22, 2015 2:08 PM in response to Loner T

    CMD-S is Single user mode, not Recovery.

  • by AleDig92,

    AleDig92 AleDig92 Jul 22, 2015 2:09 PM in response to Kappy
    Level 1 (0 points)
    Jul 22, 2015 2:09 PM in response to Kappy

    Doesn't this procedure delete all my data in the Mac partition?

  • by Loner T,

    Loner T Loner T Jul 22, 2015 2:10 PM in response to AleDig92
    Level 7 (24,661 points)
    Safari
    Jul 22, 2015 2:10 PM in response to AleDig92

    AleDig92 wrote:

     

    Doesn't this procedure delete all my data in the Mac partition?

    The Terminal commands are read-only. They show your GPT partition table.

  • by AleDig92,

    AleDig92 AleDig92 Jul 22, 2015 2:22 PM in response to Loner T
    Level 1 (0 points)
    Jul 22, 2015 2:22 PM in response to Loner T

    -bash-3.2# diskutil list

    /dev/disk0

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *251.0 GB   disk0

       1:                        EFI EFI                     209.7 MB   disk0s1

       2:       Microsoft Basic Data                         160.7 GB   disk0s2

       3:                  Apple_HFS Recovery HD             650.1 MB   disk0s3

       4:       Microsoft Basic Data Dati                    43.6 GB    disk0s4

       5:       Microsoft Basic Data BOOTCAMP                45.8 GB    disk0s5

    /dev/disk1

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:     Apple_partition_scheme                        *1.3 GB     disk1

       1:        Apple_partition_map                         30.7 KB    disk1s1

       2:                  Apple_HFS OS X Base System        1.3 GB     disk1s2

    /dev/disk2

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               *5.2 MB     disk2

    /dev/disk3

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               *524.3 KB   disk3

    /dev/disk4

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               *524.3 KB   disk4

    /dev/disk5

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               *524.3 KB   disk5

    /dev/disk6

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               *524.3 KB   disk6

    /dev/disk7

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               *524.3 KB   disk7

    /dev/disk8

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               *6.3 MB     disk8

    /dev/disk9

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               *2.1 MB     disk9

    /dev/disk10

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               *1.0 MB     disk10

    /dev/disk11

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               *524.3 KB   disk11

    /dev/disk12

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               *524.3 KB   disk12

    /dev/disk13

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               *1.0 MB     disk13

    /dev/disk14

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:                            untitled               *6.3 MB     disk14

    -bash-3.2# diskutil cs list

    No CoreStorage logical volume groups found

    -bash-3.2# gpt -vv -r show /dev/disk0

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

    gpt show: /dev/disk0: PMBR at sector 0

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

    gpt show: /dev/disk0: Sec GPT at sector 490234751

          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  313947600      2  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      314357240    1269760      3  GPT part - 48465300-0000-11AA-AA11-00306543ECAC

      315627000        520        

      315627520   85192704      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      400820224       2048        

      400822272   89411584      5  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      490233856        863        

      490234719         32         Sec GPT table

      490234751          1         Sec GPT header

    -bash-3.2# fdisk /dev/disk0

    Disk: /dev/disk0 geometry: 30515/255/63 [490234752 sectors]

    Signature: 0xAA55

             Starting       Ending

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

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

    1: EE 1023 254  63 - 1023 254  63 [         1 -  490234751] <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     

    -bash-3.2#

  • by AleDig92,

    AleDig92 AleDig92 Jul 22, 2015 2:24 PM in response to Loner T
    Level 1 (0 points)
    Jul 22, 2015 2:24 PM in response to Loner T

    Loner T wrote:

     

    AleDig92 wrote:

     

    Doesn't this procedure delete all my data in the Mac partition?

    The Terminal commands are read-only. They show your GPT partition table.

    It was referred to Kappy's procedure.

  • by Kappy,

    Kappy Kappy Jul 22, 2015 2:25 PM in response to AleDig92
    Level 10 (271,743 points)
    Desktops
    Jul 22, 2015 2:25 PM in response to AleDig92

    You no longer have data in your Mac partition. And, yes, it will erase everything on the disk. That's the whole point of the exercise.

  • by AleDig92,

    AleDig92 AleDig92 Jul 22, 2015 2:30 PM in response to Kappy
    Level 1 (0 points)
    Jul 22, 2015 2:30 PM in response to Kappy

    Yes, data is still there, I can see it with some crappy Windows tool. Is there any way to do a backup of that partition that I can recover after?

  • by Kappy,

    Kappy Kappy Jul 22, 2015 2:33 PM in response to AleDig92
    Level 10 (271,743 points)
    Desktops
    Jul 22, 2015 2:33 PM in response to AleDig92

    Wait until Loner T shows you how to fix it. Or get another "crappy" Windows tool to recover your files.

Page 1 Next