Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -bash-3.2# diskutil list disk14
- /dev/disk14
- #: TYPE NAME SIZE IDENTIFIER
- 0: GUID_partition_scheme *1.0 TB disk14
- 1: EFI 209.7 MB disk14s1
- 2: Apple_HFS Perrin 217.9 GB disk14s2
- 3: Apple_HFS extreme 338.2 GB disk14s3
- 4: Apple_HFS clone-MBP 432.4 GB disk14s4
- 5: Apple_Boot Boot OS X 134.2 MB disk14s5
- 6: Apple_Journal 536.9 MB disk14s6
- -bash-3.2# diskutil coreStorage convert
- Usage: diskutil coreStorage convert
- MountPoint|DiskIdentifier|DeviceNode
- [-stdinpassphrase | -passphrase [passphrase]]
- Convert a regular JHFS+ partition into a CoreStorage logical volume.
- The file system must be mounted and resizable (i.e. Journaled HFS+).
- Ownership of the affected disk is required.
- -bash-3.2# pwd
- /System/Library/Filesystems/hfs.fs
- -bash-3.2# ls -l
- total 96
- drwxr-xr-x 6 root wheel 204 Mar 29 13:37 Contents
- drwxr-xr-x 16 root wheel 544 Mar 29 13:23 Encodings
- -rwxr-xr-x 1 root wheel 47712 Mar 21 15:40 hfs.util
- -bash-3.2# ./hfs.util
- usage: ./hfs.util action_arg device_arg [mount_point_arg] [Flags]
- action_arg:
- -p (Probe for mounting)
- -m (Mount)
- -u (Unmount)
- -M (Force Mount)
- -a (Adopt permissions)
- -J (Make a file system journaled)
- -U (Turn off journaling on a file system)
- -N (Turn off journaling on a raw device)
- -e (Disable use of an external journal on a raw device)
- -E (Enable the use of an external journal on a raw device)
- -I (Get size & location of journaling on a file system)
- device_arg:
- device we are acting upon (for example, 'disk0s2')
- if '-J' or '-U' is specified, this should be the
- name of the file system we're to act on (for example, '/Volumes/foo' or '/')
- mount_point_arg:
- required for Mount and Force Mount
- Flags:
- required for Mount, Force Mount and Probe
- indicates removable or fixed (for example 'fixed')
- indicates readonly or writable (for example 'readonly')
- indicates suid or nosuid (for example 'suid')
- indicates dev or nodev (for example 'dev')
- Examples:
- ./hfs.util -p disk0s2 fixed writable
- ./hfs.util -m disk0s2 /my/hfs removable readonly nosuid nodev
- -bash-3.2# ./hfs.util -I /Volumes/Perrin/
- /Volumes/Perrin/ : journal size 24576 k at offset 0x74678000
- -bash-3.2# ./hfs.util -I /Volumes/extreme/
- /Volumes/extreme/ : journal size 32768 k at offset 0xd4b000
- -bash-3.2# ./hfs.util -I /Volumes/clone-MBP
- /Volumes/clone-MBP : journal size 40960 k at offset 0xcd9000
- -bash-3.2# diskutil coreStorage convert /Volumes/clone-MBP -passphrase
- New passphrase for converted volume:
- Confirm new passphrase:
- Started CoreStorage operation on disk14s4 clone-MBP
- Resizing disk to fit Core Storage headers
- Creating Core Storage Logical Volume Group
- Attempting to unmount disk14s4
- Switching disk14s4 to Core Storage
- Waiting for Logical Volume to appear
- A problem occurred; undoing all changes
- Undoing creation of Logical Volume Group
- Switching partition from Core Storage type to original type
- Reclaiming space formerly used by Core Storage metadata
- Error: -69774: Couldn't bring the new Core Storage Logical Volume online
- -bash-3.2# diskutil list disk14
- /dev/disk14
- #: TYPE NAME SIZE IDENTIFIER
- 0: GUID_partition_scheme *1.0 TB disk14
- 1: EFI 209.7 MB disk14s1
- 2: Apple_HFS Perrin 217.9 GB disk14s2
- 3: Apple_HFS extreme 338.2 GB disk14s3
- 4: Apple_HFS 432.4 GB disk14s4
- 5: Apple_Boot Boot OS X 134.2 MB disk14s5
- 6: Apple_Journal 536.9 MB disk14s6
- -bash-3.2# diskutil info disk14s4
- Device Identifier: disk14s4
- Device Node: /dev/disk14s4
- Part of Whole: disk14
- Device / Media Name: clone-MBP
- Volume Name:
- Escaped with Unicode:
- Mounted: No
- File System Personality: Journaled HFS+
- Type (Bundle): hfs
- Name (User Visible): Mac OS Extended (Journaled)
- Journal: Unknown (not mounted)
- Owners: Disabled
- Partition Type: Apple_HFS
- OS Can Be Installed: No
- Media Type: Generic
- Protocol: FireWire
- SMART Status: Not Supported
- Total Size: 432.4 GB (432435835392 Bytes) (exactly 844601241 512-Byte-Blocks)
- Volume Free Space: 0 B (0 Bytes) (exactly 0 512-Byte-Blocks)
- Device Block Size: 512 Bytes
- Read-Only Media: No
- Read-Only Volume: Not applicable (not mounted)
- Ejectable: Yes
- Whole: No
- Internal: No
- -bash-3.2# date
- Wed Apr 13 01:11:35 PDT 2011
- -bash-3.2# ## that is, 09:11 in the UK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement