luchi93

Q: Your PC/Device needs to be repaired

Hi,

After creating a new partition on my SSD (trying to get more space for bootcamp partition) windows 10 in bootcamp got an error on boot:

IMAG0420_1.jpg

Now I've just deleted the new partition, and I tried to repair following these instructions: Schermata 2016-08-02 alle 12.09.15.png

and even if I logged in sudo, I haven't got the permissions to write on my disk:

Schermata 2016-08-02 alle 12.11.01.png

how should I fix it??

Thanks a lot!

MacBook Pro with Retina display, OS X El Capitan (10.11.6), Windows 10 on bootcamp

Posted on Aug 2, 2016 3:13 AM

Close

Q: Your PC/Device needs to be repaired

  • All replies
  • Helpful answers

Page 1 Next
  • by Loner T,

    Loner T Loner T Aug 2, 2016 3:21 AM in response to luchi93
    Level 7 (23,878 points)
    Safari
    Aug 2, 2016 3:21 AM in response to luchi93

    What is the year/model of your Mac? The solution you posted is not valid, unless we can confirm it is an issue with the MBR.

     

    Resizing/repartitioning a Mac with Windows is not supported as documented in Boot Camp: Resize the Windows partition .

     

    It may be possible to fix it. Please post the output of

     

    diskutil list

    diskutil cs list

    sudo gpt -vv -r show /dev/disk0

    sudo fdisk /dev/disk0

     

    El Capitan requires that you disable SIP for modifying the MBR - About System Integrity Protection on your Mac - Apple Support .

  • by luchi93,

    luchi93 luchi93 Aug 3, 2016 1:22 AM in response to Loner T
    Level 1 (5 points)
    Windows Software
    Aug 3, 2016 1:22 AM in response to Loner T

    Thank you! Loner!

    I have a MacBook Pro 12,1 (early 2015)Schermata 2016-08-03 alle 10.17.30.png

     

    These are the outputs:

    Schermata 2016-08-03 alle 10.12.46.pngSchermata 2016-08-03 alle 10.13.28.pngSchermata 2016-08-03 alle 10.14.04.png

    Waiting for you, thanks a lot!

  • by Loner T,

    Loner T Loner T Aug 3, 2016 7:27 AM in response to luchi93
    Level 7 (23,878 points)
    Safari
    Aug 3, 2016 7:27 AM in response to luchi93

    Please post the output of

     

    sudo dd if=/dev/rdisk0s4 count=1 2>/dev/null | hexdump -C

  • by luchi93,

    luchi93 luchi93 Aug 6, 2016 2:36 AM in response to Loner T
    Level 1 (5 points)
    Windows Software
    Aug 6, 2016 2:36 AM in response to Loner T

    Schermata 2016-08-06 alle 11.36.32.png

  • by Loner T,

    Loner T Loner T Aug 6, 2016 5:37 AM in response to luchi93
    Level 7 (23,878 points)
    Safari
    Aug 6, 2016 5:37 AM in response to luchi93

    Step A. We need to disable SIP.

    1. Boot into Local Recovery (Command+R).

    2. Start Utilities -> Terminal.

    3. Type csrutil disable in Terminal and press Enter/Return.

    4. Type csrutil status.

    5. Boot normally, and type csrutil status to confirm that all individual entries are still disabled.

    Step B. Repeat your Fdisk steps. If you see any errors, stop and post back the errors/messages.

  • by luchi93,

    luchi93 luchi93 Aug 6, 2016 6:36 AM in response to Loner T
    Level 1 (5 points)
    Windows Software
    Aug 6, 2016 6:36 AM in response to Loner T

    ok, I disabled the SIP, things started to change: now "write" is running, but rebooting and trying to boot windows, it still doesn't work..I've got the same error as the beginning! =(

    This is the output:

    Schermata 2016-08-06 alle 15.23.33.png

    after typing y and OK: "writing MBR at offset 0"

  • by Loner T,

    Loner T Loner T Aug 6, 2016 6:57 AM in response to luchi93
    Level 7 (23,878 points)
    Safari
    Aug 6, 2016 6:57 AM in response to luchi93

    Did you reboot? Can you see Windows files in OS X Finder?

  • by luchi93,

    luchi93 luchi93 Aug 7, 2016 1:42 AM in response to Loner T
    Level 1 (5 points)
    Windows Software
    Aug 7, 2016 1:42 AM in response to Loner T

    yes I did reboot, and yes I can see the bootcamp files from OS X

  • by Loner T,

    Loner T Loner T Aug 7, 2016 5:40 AM in response to luchi93
    Level 7 (23,878 points)
    Safari
    Aug 7, 2016 5:40 AM in response to luchi93

    Your 2015 Mac does not support a MBR. Before we explore other methods, can Windows be removed and re-installed?

  • by luchi93,

    luchi93 luchi93 Aug 7, 2016 1:01 PM in response to Loner T
    Level 1 (5 points)
    Windows Software
    Aug 7, 2016 1:01 PM in response to Loner T

    I will have to reinstall some engineering programs, this is not so funny but I'll do it if it's the only way..

  • by Loner T,

    Loner T Loner T Aug 7, 2016 1:31 PM in response to luchi93
    Level 7 (23,878 points)
    Safari
    Aug 7, 2016 1:31 PM in response to luchi93

    As a test, just remove the MBR using Gdisk. If you need commands, let me know. Once it is removed, check if you can still see the Bootcamp files in OS X Finder. If you can, we only need to correct your BCD.

  • by luchi93,

    luchi93 luchi93 Aug 7, 2016 5:11 PM in response to Loner T
    Level 1 (5 points)
    Windows Software
    Aug 7, 2016 5:11 PM in response to Loner T

    I don't know how to do that..so I think it's better erasing the Windows partition and restart. I can imagine that's safer also for Mac os x system integrity, I only have to let the SIP enabled, can you help me with the strings? Thanks very lot!

  • by Loner T,

    Loner T Loner T Aug 7, 2016 8:44 PM in response to luchi93
    Level 7 (23,878 points)
    Safari
    Aug 7, 2016 8:44 PM in response to luchi93

    You can remove the Hybrid MBR using the following sequence of Gdisk commands.

     

    sudo gdisk /dev/disk0

    x (Expert Menu)

    o (print the current MBR)

    n (create a protective MBR and remove Hybrid MBR)

    o (print the current MBR)

    p (print partition table)

    w (Write)

    y (Confirm Write)

     

    Here is an example, without the last three commands.

     

    sudo gdisk /dev/disk0

    GPT fdisk (gdisk) version 1.0.0

     

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

     

    Expert command (? for help): ?

    a set attributes

    c change partition GUID

    d display the sector alignment value

    e relocate backup data structures to the end of the disk

    g change disk GUID

    h recompute CHS values in protective/hybrid MBR

    i show detailed information on a partition

    l set the sector alignment value

    m return to main menu

    n create a new protective MBR

    o print protective MBR data

    p print the partition table

    q quit without saving changes

    r recovery and transformation options (experts only)

    s resize partition table

    t transpose two partition table entries

    u replicate partition table on new device

    v verify disk

    w write table to disk and exit

    z zap (destroy) GPT data structures and exit

    ? print this menu

     

    Expert command (? for help): p

    Disk /dev/disk0: 1000215216 sectors, 476.9 GiB

    Logical sector size: 512 bytes

    Disk identifier (GUID): 27F1F78B-B899-41D8-BA3C-37843C1662D8

    Partition table holds up to 128 entries

    First usable sector is 34, last usable sector is 1000215182

    Partitions will be aligned on 8-sector boundaries

    Total free space is 701 sectors (350.5 KiB)

     

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

       1              40          409639   200.0 MiB   EF00  EFI System Partition

       2          409640       743086263   354.1 GiB   AF00  OSX-MBP13

       3       743086264       744355799   619.9 MiB   AB00  Recovery HD

       4       744355840      1000214527   122.0 GiB   0700  BOOTCAMP

     

    Expert command (? for help): o

     

    Disk size is 1000215216 sectors (476.9 GiB)

    MBR disk identifier: 0x028A47A7

    MBR partitions:

     

    Number  Boot  Start Sector   End Sector   Status      Code

       1                     1       409639   primary     0xEE

       2                409640    743086263   primary     0xAF

       3             743086264    744355799   primary     0xAB

       4      *      744355840   1000214527   primary     0x07

     

     

    We should test this, before you remove Windows and re-install it.

  • by luchi93,

    luchi93 luchi93 Aug 16, 2016 5:35 AM in response to Loner T
    Level 1 (5 points)
    Windows Software
    Aug 16, 2016 5:35 AM in response to Loner T

    I'm trying right now the sequence, if I write the changing this will delete some data?

     

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

       1              40          409639   200.0 MiB   EF00  EFI System Partition

       2          409640       778442975   371.0 GiB   AF05  Customer

       3       778442976       779712511   619.9 MiB   AB00  Recovery HD

       4       779712512       977104895   94.1 GiB    0700  BOOTCAMP

     

    Expert command (? for help): w

     

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

    PARTITIONS!!

Page 1 Next