Skip to content

Instantly share code, notes, and snippets.

@ELLIOTTCABLE
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ELLIOTTCABLE/feb53a127e1cc77d7b8a to your computer and use it in GitHub Desktop.
Save ELLIOTTCABLE/feb53a127e1cc77d7b8a to your computer and use it in GitHub Desktop.
> sudo fdisk /dev/disk0
Disk: /dev/disk0 geometry: 121643/255/63 [1954210120 sectors]
Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
1: EE 1023 254 63 - 1023 254 63 [ 1 - 1954210119] <Unknown ID>
2: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
> sudo gpt -r -vv show disk0
Password:
gpt show: disk0: mediasize=1000555581440; sectorsize=512; blocks=1954210120
gpt show: disk0: PMBR at sector 0
gpt show: disk0: Pri GPT at sector 1
gpt show: disk0: Sec GPT at sector 1954210119
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 975425848 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
975835488 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
977105024 977105063
1954210087 32 Sec GPT table
1954210119 1 Sec GPT header
===== Saturday, January 17, 2015 at 10:20:38 PM Central Standard Time =====
calculateTabs: (R.1: 112, L.2: 117, R.3: 409, L.4: 414)
calculateTabs: (R.1: 112, L.2: 117, R.3: 409, L.4: 414)
2015-01-17 22:20:41 -0600: Preparing to partition disk: “APPLE SSD SM1024F Media”
Checking partitions for bounds... existing partition disk0s2: 1000 GB (1,000,211,628,032 bytes)
StartLoc: 209,735,680 EndLoc: 1,000,421,363,712 Done checking for zero size
Building partition map existing partition disk0s2: 1000 GB (1,000,211,628,032 bytes)
StartLoc: 209,735,680 EndLoc: 1,000,421,363,712 - requestZeroSize = Yes Total size of disk 1001 GB (1,000,555,581,440 bytes)
newPartitionMap = {
Partitions = (
{
Erase = 0;
Existed = 1;
FilesystemName = "Journaled HFS+";
Name = "Fannie's HD";
Newfs = 1;
Size = 0;
SliceName = disk0s2;
}
);
SchemeType = 2;
}2015-01-17 22:20:41 -0600: Partition Scheme: GUID Partition Table
2015-01-17 22:20:41 -0600: 1 partition will be created
2015-01-17 22:20:41 -0600:
2015-01-17 22:20:41 -0600: Partition 1
2015-01-17 22:20:41 -0600: Name : “Fannie's HD”
2015-01-17 22:20:41 -0600: Size : 1 TB (1,000,211,628,032)
2015-01-17 22:20:41 -0600: Requested : 1 TB (1,000,211,628,032)
2015-01-17 22:20:41 -0600: Start Loc : 209,735,680
2015-01-17 22:20:41 -0600: File system : Mac OS Extended (Journaled)
2015-01-17 22:20:41 -0600: Partition already exists
2015-01-17 22:20:41 -0600: Do not erase contents
2015-01-17 22:20:41 -0600:
Estimated end of last partition: 1,000,421,363,712
Estimated end of disk: 1,000,555,581,440
Requesting Partition with this partitionMap: {
Partitions = (
{
Erase = 0;
Existed = 1;
FilesystemName = "Journaled HFS+";
Name = "Fannie's HD";
Newfs = 1;
Size = 0;
SliceName = disk0s2;
}
);
SchemeType = 2;
}started partition disk0
2015-01-17 22:20:41 -0600: Beginning partition operations
2015-01-17 22:20:41 -0600: Unmounting disk
2015-01-17 22:20:41 -0600: Finishing partition modifications
2015-01-17 22:20:41 -0600: Waiting for the disks to reappear
2015-01-17 22:20:41 -0600: Partition complete.
2015-01-17 22:20:41 -0600:
finished partition disk0
calculateTabs: (R.1: 112, L.2: 117, R.3: 409, L.4: 414)
calculateTabs: (R.1: 112, L.2: 117, R.3: 409, L.4: 414)
updateMasterDiskListWithDisk - disk0 updatedDisk = 0x7fa0e3639be0 DUDiskDMDisk (type=1)
2015-01-17 22:20:42 -0600: ** diskChanged ** APPLE SSD SM1024F Media
calculateTabs: (R.1: 112, L.2: 117, R.3: 409, L.4: 414)
**********************************
2015-01-17 22:20:42 -0600: Disk: disk0 (APPLE SSD SM1024F Media) - 0x7fa0e3639be0
Object Type = DUDiskDMDisk
Object reference = 0x7fa0e3639be0
wholeDiskName = disk0
diskIdentifier = disk0
DADiskRef = <DADisk 0x608000448f70 [0x7fff7d8bbcf0]>{id = /dev/disk0}
partitionID = 0
partitionNumber 0
diskNumber 0
deviceNode = /dev/disk0
rawDeviceNode = /dev/rdisk0
mountPoint =
volumeName = (null)
filesystem = NULL
ioContent = GUID_partition_scheme
deviceTreePath = IODeviceTree:/PCI0@0/RP06@1C,5/SSD0@0/PRT0@0/PMP@0
bayName = (null)
UUID = (null)
mediaName = APPLE SSD SM1024F Media
directChildrenOfDisk = 3
isWritableMedia Yes
isWritableVolume Yes
isEjectable No
isWhole Yes
isNetworkDisk No
isLeaf No
isCDROM No
isDVDROM No
isOpticalDisc No
isXsanDisk No
isZFSDisk No
isJournaled No
isErasableOpticalMedia No
opticalMediaType = (null)
opticalDeviceType = (null)
deviceName = (null)
isInternal Yes
isSolidStateDisk Yes
isRAIDMaster (DM=No) (DU=No)
isRAIDSlice (DM=No) (DU=No)
isRAIDSpare (DM=No) (DU=No)
RAIDSetProperties = (null)
RAIDMemberProperties = (null)
isCoreStorage No
isCoreStorageLogicalVolumeDisk No
isCoreStorageEncryptedLogicalVolumeDisk No
isCoreStorageLogicalVolumeLocked No
isCoreStoragePhysicalVolumeDisk No
ioKitSize 1000555581440
totalSize 1000555581440
freeSpace 0
protocol = PCI
mediaType = Generic
ownersEnabled No
permissionsEnabled No
isSystemImage No
supportsLiveResize No
smartStatus:
Status = "Verified"
children = 3
visibleChildren = 3
RAIDSetUUID (null)
cachedRAIDSetUUID (null)
RAIDMemberUUID (null)
cachedRAIDMemberUUID (null)
RAIDParentUUID (null)
RAIDUUID (null)
diskType kWholeDiskType
isDiskImage No
isNonAppleDiskImage No
isOpticalDevice No
diskImagePath = (null)
isFireWireDisk No
isUSBDisk No
isATADisk No
isSCSIDisk No
isSATADisk No
isSASDisk No
isDVDRAM No
isXsanDisk No
isFibreChannelDisk No
isBootVolume No
containUserHomeDirectory No
needsPseudoPartitionDisk No
isPseudoDisk No
isOfflineDiskImage No
canBeRestoreSource No
canBeRestoreTarget No, with erase No
supportsPacketWriting No
hasBlankOpticalMedia No
isTransientDisk No
diskHasBootPartition Yes
partitionStartLocation 0
busSpecificKeys:
Vendor Name = ""
Product Name = "APPLE SSD SM1024F "
Medium Type = "Solid State"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment