JrCs / gptsync

Enhanced gptsync tool
15 stars 5 forks source link

gptsync not working in Mac OS x El capitan #3

Open dani-sanchez-dorado opened 8 years ago

dani-sanchez-dorado commented 8 years ago

I have use gptsync in Mac OS X Yosemite for a week to syncronize a complex installation of Mac OS X, Windows and Linux. Now, I have updated MAC OS to El Capitan, and I doesn't work now.

I downloaded gptsync 0.3 binary version from insanelymac here http://www.insanelymac.com/forum/topic/177505-enhanced-gptsync-tool/ and now, the installation process says that it will not work in my system. If I run and anterior version of the binary, it gets me and error.

To get a fresh copy of the binary, I have compiled from the sources, but, when I execute it, I get the same error:

(root) ./gptsync /dev/disk0 ERROR: Can't open /dev/disk0: Operation not permitted

Any idea?

dani-sanchez-dorado commented 8 years ago

More info: if I execute gptsync in a terminal in the OS X Recovery Mode, it works!

Current GPT partition table:
 #      Start LBA      End LBA  Type
 1             40       409639  EFI System (FAT)
 2         413696    488694943  Mac OS X HFS+
 3      488694944    597968895  Basic Data
 4     1519575040   1729290239  Basic Data
 6     1752678400   1857535999  Basic Data
 7     1857536000   1858805759  Mac OS X Boot
 8     1946720256   1953523711  Linux Swap
Current MBR partition table:
 # A    Start LBA      End LBA  Type
 1              1       409639  ee  EFI Protective
 2         413696    488694943  af  Mac OS X HFS+
 3      488694944    597968895  07  NTFS/HPFS
 4 *   1519575040   1729290239  07  NTFS/HPFS
Status: MBR table must be updated.
Proposed new MBR partition table:
 # A    Start LBA      End LBA  Type
 1              1       413695  ee  EFI Protective
 2         413696    488694943  af  Mac OS X HFS+
 3      488694944    597968895  07  NTFS/HPFS
 4     1519575040   1729290239  07  NTFS/HPFS
May I update the MBR as printed above? [y/N] Yes
Writing new MBR...
MBR updated successfully!
dani-sanchez-dorado commented 8 years ago

I have found the source of the problem! Apple Mac OS X El Capitan has a new feature called "System Integrity Protection". This process blocks access to many filesystems and directories for security reasons. I think that the problem is here.

More info: http://www.howtogeek.com/230424/how-to-disable-system-integrity-protection-on-a-mac-and-why-you-shouldnt/

TG17 commented 8 years ago

Hi,

I have the same problem with gptsync and el capitan. It doesn't work. I use gptsync for a long time with deploystudio to boot on WinPE at the end of my worflow. All was ok before. I know the issue with SIP and I do the modification. I have no problem with rights.

This is the result before (NetBoot 10.9.5 and an old gptsync) witch working

/usr/bin/printf Y\n | /private/var/tmp/DSNetworkRepository/Files/gptsync /dev/disk0
Current GPT partition table:
#      Start LBA      End LBA  Type
1             40       409639  EFI System (FAT)
2         411648      2363391  Basic Data
3        2363392    490382503  Mac OS X HFS+
4      490645504    976773119  Basic Data
Current MBR partition table:
# A    Start LBA      End LBA  Type
1              1       409639  ee  EFI Protective
2 *       411648      2363391  0b  FAT32 (CHS)
3        2363392    490382503  af  Mac OS X HFS+
4      490645504    976773119  0b  FAT32 (CHS)
Status: MBR table must be updated.
Proposed new MBR partition table:
# A    Start LBA      End LBA  Type
1              1       409639  ee  EFI Protective
2 *       411648      2363391  07  NTFS/HPFS
3        2363392    490382503  af  Mac OS X HFS+
4      490645504    976773119  0c  FAT32 (LBA)
May I update the MBR as printed above? [y/N] Yes
Writing new MBR...
MBR updated successfully!

The result with Netboot 10.11.1 and gptsync (process is killed)

/usr/bin/printf Y\n | /private/var/tmp/DSNetworkRepository/Files/gptsync /dev/disk0
Killed: 9

so I download the last gptsync (0.3) like you, here http://www.insanelymac.com/forum/topic/177505-enhanced-gptsync-tool/

the new result with Netboot 10.11.1 and gptsync 0.3

/usr/bin/printf Y\n | /private/var/tmp/DSNetworkRepository/Files/gptsync-0.3 /dev/disk0 2+07 3 4
Current GPT partition table:
#      Start LBA      End LBA  Type
1             40       409639  EFI System (FAT)
2         411648      2363391  Basic Data
3        2363392    490382503  Mac OS X HFS+
4      490645504    976773119  Basic Data
Current MBR partition table:
# A    Start LBA      End LBA  Type
1              1       411647  ee  EFI Protective
2 *       411648      2363391  07  NTFS/HPFS
3        2363392    490382503  af  Mac OS X HFS+
4      490645504    976773119  0c  FAT32 (LBA)
Status: MBR table must be updated.
Proposed new MBR partition table:
# A    Start LBA      End LBA  Type
1              1       411647  ee  EFI Protective
2 *       411648      2363391  0c  NTFS/HPFS
3        2363392    490382503  af  Mac OS X HFS+
4      490645504    976773119  0c  FAT32 (LBA)
May I update the MBR as printed above? [y/N] Yes
Writing new MBR...
MBR updated successfully!

It seem ok , but no. When I reboot, I have a black screen blinking cursor.

I do a lot of tests, trying to sync table with gdisk, but no success ....

If someone success to use gptsync with el capitan .... Thank's