Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Returning Partition Table

Hi all,


it looks like this is the best place to ask a question on partitioning. I'm not that experience on this front hence getting myself into this pickle.


I used to have the standard MBR bootcamp partition, with Windows and OSX, also had rEFInd setup nicely for boot options, but wanted to slightly expand the Windows partition. I booted in recovery mode, used disk utility to shrink the OSX partition, this is when I found out that I wouldn't simply be able to boot restart the laptop and expand the Windows partition into the now free space. I finally managed to follow a guide that helped me fix the issue by rebuilding the partition table, for the current state of the volume, but I would like to just return it to my previous clean setup.


So I'd like to re-expand my OSX partition back to how it was and restore the previous partition table with EFI.


Could someone please instruct me on how to do this. I know I'll have to expand the OSX partition which will cause it to break again, but instructions from that point onwards would be really appreciated.


The output from "sudo gdisk /dev/disk0" is:


MBR: hybrid


BSD: not present


APM: not present


GPT: present

The output from "diskutil list" is:

/dev/disk0 (internal, physical):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *240.1 GB
disk0

1: EFI EFI 209.7 MB
disk0s1

2: Apple_HFS Macintosh HD 90.0 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB
disk0s3

4: Apple_HFS Untitled 34.1 GB disk0s4

5: Microsoft Basic Data BOOTCAMP 115.0 GB
disk0s5


/dev/disk1 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: Apple_partition_scheme +20.4 MB disk1

1: Apple_partition_map 32.3 KB disk1s1

2: Apple_HFS Flash Player 20.4 MB disk1s2

Thanks so much for your help in advance,

Seb

Posted on Mar 9, 2018 12:27 PM

Reply

Similar questions

41 replies

Mar 12, 2018 3:42 PM in response to Loner T

Reboot seems to be fine:


sudo gpt -vv -r show /dev/disk0


gpt show: /dev/disk0: mediasize=240057409536; sectorsize=512; blocks=468862128

gpt show: /dev/disk0: Suspicious MBR at sector 0

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

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

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


177460424 824


177461248
291399680 3
GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7


468860928 1167


468862095 32 Sec GPT table


468862127 1 Sec GPT header


sudo fdisk /dev/disk0

Disk: /dev/disk0 geometry: 29185/255/63 [468862128 sectors]

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: FF
25 127
15 - 1023 254
63 [ 409640 -
177050784] Xenix BBT

*3: 07 1023 254
63 - 1023 254
63 [ 177461248 -
291399680] HPFS/QNX/AUX

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

Returning Partition Table

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