OMG!! Please Help!!, disk utility does not see free space. 700 GB have disappeared !! After...

After I erased the Macintosh HD in recovery mode and wrote down to it the OS X base system. Why did I do this? Here's how it started, I wanted to delete the windows through bootcamp, clicked to restore to one partition then popped out a bug, I do not remember which one. Then I launched disk utility and I see free 700 gb space. But I can't combine free space and system 256gb. Then I enter to recovery mode, and I did something written above. Later this system was not loaded at all, I restored the system with this post https://discussions.apple.com/thread/7860429. But now Macintosh HD have only 256GB (( WHERE THE OTHER SPACE?? Please help me guys, its my first Mac.


Sorry for my eng, I am from Russia.

Posted on Feb 24, 2018 9:34 AM

Reply
Question marked as Top-ranking reply

Posted on Feb 25, 2018 5:55 AM

Belich88 wrote:


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

gpt show: /dev/disk0: mediasize=1000204886016; sectorsize=512; blocks=1953525168

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 1953525167

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 447979704 2 GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

448389344 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

449658880 1503866255

1953525135 32 Sec GPT table

1953525167 1 Sec GPT header

The following commands in Recovery create a GPT4 entry using this space.


gpt add -i 4 -b 449658880 -s 1503866255 -t windows /dev/disk0


and


diskutil repairDisk disk0


If you want to do this in normal mode, using the same command, you will get device busy. You will need to use the GPT Fdisk utility after disabling SIP. The commands are (you need to ensure that if reboot changes the disk numbering, you use the correct disk - disk0 or disk1 - as necessary). (Do not type text like this, it is informational).


sudo gdisk /dev/disk0

x (Experts Menu)

l (set alignment...)

1 (... to one sector)

m (Main menu)

p (print)

n (New)

4 (GPT 4)

449658880 (Start)

+1503866255 (Size, notice the '+' sign)

0700 (Microsoft Basic Data)

p (print)

w (write)

y (Confirm write)


Reboot and try BC Assistant and click on Remove/Restore.

Similar questions

28 replies
Question marked as Top-ranking reply

Feb 25, 2018 5:55 AM in response to Belich88

Belich88 wrote:


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

gpt show: /dev/disk0: mediasize=1000204886016; sectorsize=512; blocks=1953525168

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 1953525167

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 447979704 2 GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

448389344 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

449658880 1503866255

1953525135 32 Sec GPT table

1953525167 1 Sec GPT header

The following commands in Recovery create a GPT4 entry using this space.


gpt add -i 4 -b 449658880 -s 1503866255 -t windows /dev/disk0


and


diskutil repairDisk disk0


If you want to do this in normal mode, using the same command, you will get device busy. You will need to use the GPT Fdisk utility after disabling SIP. The commands are (you need to ensure that if reboot changes the disk numbering, you use the correct disk - disk0 or disk1 - as necessary). (Do not type text like this, it is informational).


sudo gdisk /dev/disk0

x (Experts Menu)

l (set alignment...)

1 (... to one sector)

m (Main menu)

p (print)

n (New)

4 (GPT 4)

449658880 (Start)

+1503866255 (Size, notice the '+' sign)

0700 (Microsoft Basic Data)

p (print)

w (write)

y (Confirm write)


Reboot and try BC Assistant and click on Remove/Restore.

Feb 24, 2018 10:16 AM in response to Belich88

Boot into Internet Recovery by holding Command+Opt+R during boot. Click on Utilities -> Terminal in Recover Console, and post the output of


diskutil list

gpt -vv -r show /dev/disk0


For the next command, find out the value of N that points to the HDD, before you run the command.


gpt -vv -r show /dev/diskN


Select and Copy(Command+C) the output, quit Terminal, start Safari (Get Help Online) and Paste (Command+V) the output as a reply to this discussion.

Feb 25, 2018 6:34 AM in response to Loner T

-bash-3.2# gpt add -i 4 -b 449658880 -s 1503866255 -t windows /dev/disk0

gpt add: unable to open device '/dev/disk0': Resource busy

-bash-3.2# diskutil repairDisk disk0

Repairing the partition map might erase disk0s1, proceed? (y/N) y

Started partition map repair on disk0

Checking prerequisites

Checking the partition list

Adjusting partition map to fit whole disk as required

Checking for an EFI system partition

Checking the EFI system partition's size

Checking the EFI system partition's file system

Checking the EFI system partition's folder content

Checking all HFS data partition loader spaces

Checking booter partitions

Checking booter partition disk0s3

Verifying file system

Volume is already unmounted

Performing fsck_hfs -fn -x /dev/rdisk0s3

Checking Journaled HFS Plus volume

Checking extents overflow file

Checking catalog file

Checking multi-linked files

Checking catalog hierarchy

Checking extended attributes file

Checking volume bitmap

Checking volume information

The volume Recovery HD appears to be OK

File system check exit code is 0

Restoring the original state found as unmounted

Reviewing boot support loaders

Checking Core Storage Physical Volume partitions

Verifying storage system

Performing fsck_cs -n -x --lv --uuid 3E5D2CA4-519B-4597-B571-321B0378FEEF

Checking volume

disk0s2: Scan for Volume Headers

disk1s2: Scan for Volume Headers

disk0s2: Scan for Disk Labels

disk1s2: Scan for Disk Labels

Logical Volume Group 3E5D2CA4-519B-4597-B571-321B0378FEEF spans 2 devices

disk1s2+disk0s2: Scan for Metadata Volume

Logical Volume Group has a 62 MB Metadata Volume with no redundancy

Start scanning metadata for a valid checkpoint

Load and verify Segment Headers

Load and verify Checkpoint Payload

Load and verify Transaction Segment

Incorporate 0 newer non-checkpoint transactions

Load and verify Virtual Address Table

Load and verify Segment Usage Table

Load and verify Metadata Superblock

Load and verify Logical Volumes B-Trees

Logical Volume Group contains 1 Logical Volume

Load and verify 5331F251-3387-422C-AA0E-55367C9B7758

Load and verify D03B5772-7B33-4521-BEA0-2B972B6362B4

Load and verify Freespace Summary

Load and verify Block Accounting

Load and verify Live Virtual Addresses

Newest transaction commit checkpoint is valid

Load and verify Segment Cleaning

The volume 3E5D2CA4-519B-4597-B571-321B0378FEEF appears to be OK

Storage system check exit code is 0

Repairing storage system

Performing fsck_cs -y -x --lv --uuid 3E5D2CA4-519B-4597-B571-321B0378FEEF

The volume disk0s2+disk1s2 cannot be repaired when it is in use

Checking volume

disk0s2: Scan for Volume Headers

disk1s2: Scan for Volume Headers

disk0s2: Scan for Disk Labels

disk1s2: Scan for Disk Labels

Logical Volume Group 3E5D2CA4-519B-4597-B571-321B0378FEEF spans 2 devices

disk1s2+disk0s2: Scan for Metadata Volume

Logical Volume Group has a 62 MB Metadata Volume with no redundancy

Start scanning metadata for a valid checkpoint

Load and verify Segment Headers

Load and verify Checkpoint Payload

Load and verify Transaction Segment

Incorporate 0 newer non-checkpoint transactions

Load and verify Virtual Address Table

Load and verify Segment Usage Table

Load and verify Metadata Superblock

Load and verify Logical Volumes B-Trees

Logical Volume Group contains 1 Logical Volume

Load and verify 5331F251-3387-422C-AA0E-55367C9B7758

Load and verify D03B5772-7B33-4521-BEA0-2B972B6362B4

Load and verify Freespace Summary

Load and verify Block Accounting

Load and verify Live Virtual Addresses

Newest transaction commit checkpoint is valid

Load and verify Segment Cleaning

The volume 3E5D2CA4-519B-4597-B571-321B0378FEEF appears to be OK

Storage system check exit code is 0

The partition map appears to be OK

Finished partition map repair on disk0



Lets see what happened, now i restarting

Feb 25, 2018 12:54 PM in response to Belich88

A reboot can renumber disks, so disk0 and disk1 can change. In Internet Recovery, before you execute any commands, find which the correct disk - 1TB HDD - is. I will use 'N' to denote the 1TB HDD. Please pick the correct number.


The command sequence in Internet Recovery -> Utilities -> Terminal, should be


diskutil unmountDisk diskN

gpt add -i 4 -b 449658880 -s 1503866255 -t windows /dev/diskN

gpt -vv -r show /dev/diskN

diskutil repairDisk diskN


Please post the output of the entire terminal session so we can check for errors.

Feb 25, 2018 5:43 AM in response to Loner T

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

gpt show: /dev/disk0: mediasize=1000204886016; sectorsize=512; blocks=1953525168

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 1953525167

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 447979704 2 GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

448389344 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

449658880 1503866255

1953525135 32 Sec GPT table

1953525167 1 Sec GPT header

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

gpt show: /dev/disk1: mediasize=28000002048; sectorsize=4096; blocks=6835938

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

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

gpt show: /dev/disk1: Sec GPT at sector 6835937

start size index contents

0 1 PMBR

1 1 Pri GPT header

2 4 Pri GPT table

6 76800 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

76806 6726359 2 GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

6803165 32768 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

6835933 4 Sec GPT table

6835937 1 Sec GPT header


Hello again my freand, whats next i need to do?

Feb 24, 2018 10:46 AM in response to Loner T

What is this?


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

Usage: diskutil list [-plist] [Filter] [MountPoint|DiskIdentifier|DeviceNode]

Display complete or partial list of whole, partition, and Storage System disks.

Filter is a combination of "internal", "external", "physical", or "virtual".

Root or administrator access is not required.

-bash-3.2#

Feb 24, 2018 11:01 AM in response to Loner T

I copy whole command

-bash-3.2# diskutil list

/dev/disk0 (internal, physical):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *1.0 TB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_CoreStorage Macintosh HD 229.4 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3


/dev/disk1 (internal):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme 28.0 GB disk1

1: EFI EFI 314.6 MB disk1s1

2: Apple_CoreStorage Macintosh HD 27.6 GB disk1s2

3: Apple_Boot Boot OS X 134.2 MB disk1s3


/dev/disk2 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme +2.1 GB disk2

1: Apple_HFS OS X Base System 2.0 GB disk2s1


/dev/disk3 (internal, virtual):

#: TYPE NAME SIZE IDENTIFIER

0: Apple_HFS Macintosh HD +256.0 GB disk3

Logical Volume on disk1s2, disk0s2

D03B5772-7B33-4521-BEA0-2B972B6362B4

Unencrypted Fusion Drive


/dev/disk4 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +5.2 MB disk4


/dev/disk5 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +524.3 KB disk5


/dev/disk6 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +524.3 KB disk6


/dev/disk7 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +524.3 KB disk7


/dev/disk8 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +2.1 MB disk8


/dev/disk9 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +524.3 KB disk9


/dev/disk10 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +524.3 KB disk10


/dev/disk11 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +12.6 MB disk11


/dev/disk12 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +2.1 MB disk12


/dev/disk13 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +1.0 MB disk13


/dev/disk14 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +2.1 MB disk14


/dev/disk15 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +524.3 KB disk15


/dev/disk16 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +524.3 KB disk16


/dev/disk17 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +1.0 MB disk17


/dev/disk18 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +6.3 MB disk18


/dev/disk19 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +6.3 MB disk19


/dev/disk20 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +524.3 KB disk20


/dev/disk21 (disk image):

#: TYPE NAME SIZE IDENTIFIER

0: untitled +2.1 MB disk21


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

gpt show: /dev/disk0: mediasize=1000204886016; sectorsize=512; blocks=1953525168

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 1953525167

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 447979704 2 GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

448389344 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

449658880 1503866255

1953525135 32 Sec GPT table

1953525167 1 Sec GPT header

what i need to do next?

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.

OMG!! Please Help!!, disk utility does not see free space. 700 GB have disappeared !! After...

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