Advertisement
grahamperrin

Untitled

Apr 13th, 2011
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.27 KB | None | 0 0
  1. -bash-3.2# diskutil list disk14
  2. /dev/disk14
  3. #: TYPE NAME SIZE IDENTIFIER
  4. 0: GUID_partition_scheme *1.0 TB disk14
  5. 1: EFI 209.7 MB disk14s1
  6. 2: Apple_HFS Perrin 217.9 GB disk14s2
  7. 3: Apple_HFS extreme 338.2 GB disk14s3
  8. 4: Apple_HFS clone-MBP 432.4 GB disk14s4
  9. 5: Apple_Boot Boot OS X 134.2 MB disk14s5
  10. 6: Apple_Journal 536.9 MB disk14s6
  11. -bash-3.2# diskutil coreStorage convert
  12. Usage: diskutil coreStorage convert
  13. MountPoint|DiskIdentifier|DeviceNode
  14. [-stdinpassphrase | -passphrase [passphrase]]
  15. Convert a regular JHFS+ partition into a CoreStorage logical volume.
  16. The file system must be mounted and resizable (i.e. Journaled HFS+).
  17. Ownership of the affected disk is required.
  18. -bash-3.2# pwd
  19. /System/Library/Filesystems/hfs.fs
  20. -bash-3.2# ls -l
  21. total 96
  22. drwxr-xr-x 6 root wheel 204 Mar 29 13:37 Contents
  23. drwxr-xr-x 16 root wheel 544 Mar 29 13:23 Encodings
  24. -rwxr-xr-x 1 root wheel 47712 Mar 21 15:40 hfs.util
  25. -bash-3.2# ./hfs.util
  26. usage: ./hfs.util action_arg device_arg [mount_point_arg] [Flags]
  27. action_arg:
  28. -p (Probe for mounting)
  29. -m (Mount)
  30. -u (Unmount)
  31. -M (Force Mount)
  32. -a (Adopt permissions)
  33. -J (Make a file system journaled)
  34. -U (Turn off journaling on a file system)
  35. -N (Turn off journaling on a raw device)
  36. -e (Disable use of an external journal on a raw device)
  37. -E (Enable the use of an external journal on a raw device)
  38. -I (Get size & location of journaling on a file system)
  39. device_arg:
  40. device we are acting upon (for example, 'disk0s2')
  41. if '-J' or '-U' is specified, this should be the
  42. name of the file system we're to act on (for example, '/Volumes/foo' or '/')
  43. mount_point_arg:
  44. required for Mount and Force Mount
  45. Flags:
  46. required for Mount, Force Mount and Probe
  47. indicates removable or fixed (for example 'fixed')
  48. indicates readonly or writable (for example 'readonly')
  49. indicates suid or nosuid (for example 'suid')
  50. indicates dev or nodev (for example 'dev')
  51. Examples:
  52. ./hfs.util -p disk0s2 fixed writable
  53. ./hfs.util -m disk0s2 /my/hfs removable readonly nosuid nodev
  54. -bash-3.2# ./hfs.util -I /Volumes/Perrin/
  55. /Volumes/Perrin/ : journal size 24576 k at offset 0x74678000
  56. -bash-3.2# ./hfs.util -I /Volumes/extreme/
  57. /Volumes/extreme/ : journal size 32768 k at offset 0xd4b000
  58. -bash-3.2# ./hfs.util -I /Volumes/clone-MBP
  59. /Volumes/clone-MBP : journal size 40960 k at offset 0xcd9000
  60. -bash-3.2# diskutil coreStorage convert /Volumes/clone-MBP -passphrase
  61. New passphrase for converted volume:
  62. Confirm new passphrase:
  63. Started CoreStorage operation on disk14s4 clone-MBP
  64. Resizing disk to fit Core Storage headers
  65. Creating Core Storage Logical Volume Group
  66. Attempting to unmount disk14s4
  67. Switching disk14s4 to Core Storage
  68. Waiting for Logical Volume to appear
  69. A problem occurred; undoing all changes
  70. Undoing creation of Logical Volume Group
  71. Switching partition from Core Storage type to original type
  72. Reclaiming space formerly used by Core Storage metadata
  73. Error: -69774: Couldn't bring the new Core Storage Logical Volume online
  74. -bash-3.2# diskutil list disk14
  75. /dev/disk14
  76. #: TYPE NAME SIZE IDENTIFIER
  77. 0: GUID_partition_scheme *1.0 TB disk14
  78. 1: EFI 209.7 MB disk14s1
  79. 2: Apple_HFS Perrin 217.9 GB disk14s2
  80. 3: Apple_HFS extreme 338.2 GB disk14s3
  81. 4: Apple_HFS 432.4 GB disk14s4
  82. 5: Apple_Boot Boot OS X 134.2 MB disk14s5
  83. 6: Apple_Journal 536.9 MB disk14s6
  84. -bash-3.2# diskutil info disk14s4
  85. Device Identifier: disk14s4
  86. Device Node: /dev/disk14s4
  87. Part of Whole: disk14
  88. Device / Media Name: clone-MBP
  89.  
  90. Volume Name:
  91. Escaped with Unicode:
  92.  
  93. Mounted: No
  94.  
  95. File System Personality: Journaled HFS+
  96. Type (Bundle): hfs
  97. Name (User Visible): Mac OS Extended (Journaled)
  98. Journal: Unknown (not mounted)
  99. Owners: Disabled
  100.  
  101. Partition Type: Apple_HFS
  102. OS Can Be Installed: No
  103. Media Type: Generic
  104. Protocol: FireWire
  105. SMART Status: Not Supported
  106.  
  107. Total Size: 432.4 GB (432435835392 Bytes) (exactly 844601241 512-Byte-Blocks)
  108. Volume Free Space: 0 B (0 Bytes) (exactly 0 512-Byte-Blocks)
  109. Device Block Size: 512 Bytes
  110.  
  111. Read-Only Media: No
  112. Read-Only Volume: Not applicable (not mounted)
  113. Ejectable: Yes
  114.  
  115. Whole: No
  116. Internal: No
  117.  
  118. -bash-3.2# date
  119. Wed Apr 13 01:11:35 PDT 2011
  120. -bash-3.2# ## that is, 09:11 in the UK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement