cannot launch gdisk on terminal

I have macbook pro OS X El Capitan and trying to launch gdisk on terminal but it gives me this error:


GPT fdisk (gdisk) version 1.0.1



Problem opening /dev/disk1 for reading! Error is 16.


I disabled the System Integrity Protection and checked it after booting and found it disabled. I'm using gdisk to overcome the partitioning problem "Windows detects GPT disk as MBR in EFI boot"


I also have another problem which is when I reboot my laptop after adding windows 10 by Boot Camp Assaistant I get this error unless I hit "alt" key, the error is:


"no bootable device. insert boot disk and press any key"



Any suggestions?

MacBook Pro, OS X El Capitan (10.11.5)

Posted on Jun 5, 2016 8:11 PM

Reply
20 replies

Oct 16, 2017 2:40 AM in response to Loner T

Hi,


My MBP retina is mid 2014 model, MacOS Sierra 10.12.6. Model identifier 11,3.


I can't use straight Bootcamp so I am using gdisk. This is the error I am getting and any inputs are appreciated.

blue$ sudo gdisk -l /dev/disk0s4

Password:

GPT fdisk (gdisk) version 1.0.3


Problem opening /dev/disk0s4 for reading! Error is 16.


diskutil list


$ diskutil list

/dev/disk0 (internal, physical):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *500.3 GB
disk0

1: EFI EFI 209.7 MB
disk0s1

2: Apple_CoreStorage Untitled 380.2 GB
disk0s2

3: Apple_Boot Recovery HD 650.0 MB
disk0s3

4: Microsoft Basic Data BOOTCAMP 119.1 GB
disk0s4


/dev/disk1 (internal, virtual):

#: TYPE NAME SIZE IDENTIFIER

0: Apple_HFS Untitled +379.8 GB
disk1

Logical Volume on disk0s2

6C772FED-CFAC-4206-B520-2E353D584D20

Unencrypted



Please let me know what I need to do next?


Thanks,

Oct 17, 2017 2:19 AM in response to Loner T

SIP has been already disabled before I installed gdisk. I just forgot to paste it here.


What I did is follow these steps:
-Start Bootcamp in Mac OS

-Choose to create windows bootable or start disk and point it to the windows ISO image I have on my HD. By default, the windows support is ticked and cannot be unticked.

-Have a tea and wait to finish

-Boot and press ALT and Choose EFI

-And have more tea while Windows install...

-BE PATIENT IF YOU SEE A BLANK SCREEN, IT WILL EVENTUALLY SHOW THE WINDOWS small circle icons circling as if thinking...


Windows is working now, but every time I boot it goes straight to windows and no option to boot to MAC.


Any suggestions?

Jun 12, 2016 7:57 PM in response to Loner T

diskutil list

/dev/disk0 (internal, physical):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *320.1 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_HFS Macintosh HD 229.9 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Microsoft Basic Data BOOT CAMP 89.2 GB disk0s4

/dev/disk1 (external, physical):

#: TYPE NAME SIZE IDENTIFIER

0: FDisk_partition_scheme *8.0 GB disk1

1: DOS_FAT_32 WININSTALL 8.0 GB disk1s1


diskutil cs list

No CoreStorage logical volume groups found



Thanks for your reply, and I already solved the issue of "no bootable device. insert boot disk and press any key" but still have the first one.

Jun 13, 2016 3:29 PM in response to Loner T

I think the Gdisk was installed properly because it did not complain when installing and it was done successfully. Also, I'm not sure if the symbol after the dash is a bar ' | ' or the letter ' l ' so I typed both and I got the following for each:

1-

-|/dev/disk0

-bash: /dev/disk0: Permission denied


2-

sudo gdisk -l/dev/disk0

GPT fdisk (gdisk) version 1.0.1


Problem opening -l/dev/disk0 for reading! Error is 2.

The specified file does not exist!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

cannot launch gdisk on terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.