Advertisement
Guest User

diskutil log

a guest
Nov 3rd, 2013
633
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 14.73 KB | None | 0 0
  1. -bash-3.2# fsck
  2. ** /dev/rdisk0s2
  3. ** Root file system
  4.    Executing fsck_hfs (version diskdev_cmds-557.3.1~5).
  5. ** Checking non-journaled HFS Plus Volume.
  6.    The volume name is Mac OS X Base System
  7. ** Checking extents overflow file.
  8. ** Checking catalog file.
  9. ** Checking multi-linked files.
  10. ** Checking catalog hierarchy.
  11. ** Checking extended attributes file.
  12. ** Checking volume bitmap.
  13. ** Checking volume information.
  14. ** The volume Mac OS X Base System appears to be OK.
  15. -bash-3.2# ls
  16. .forward    Library
  17. -bash-3.2# diskutil info
  18. Usage:  diskutil info[rmation] [-plist]
  19.         MountPoint|DiskIdentifier|DeviceNode|UUID
  20. Display detailed information about a disk or partition.
  21. Root access is not required.
  22. -bash-3.2# diskutil info/
  23. diskutil: did not recognize verb "info/"; type "diskutil" for a list
  24. -bash-3.2# diskutil info /
  25.    Device Identifier:        disk0s2
  26.    Device Node:              /dev/disk0s2
  27.    Part of Whole:            disk0
  28.    Device / Media Name:      disk image
  29.  
  30.    Volume Name:              Mac OS X Base System
  31.    Escaped with Unicode:     Mac%FF%FE%20%00OS%FF%FE%20%00X%FF%FE%20%00Base%FF%FE%20%00System
  32.  
  33.    Mounted:                  Yes
  34.    Mount Point:              /
  35.    Escaped with Unicode:     /
  36.  
  37.    File System Personality:  HFS+
  38.    Type (Bundle):            hfs
  39.    Name (User Visible):      Mac OS Extended
  40.    Owners:                   Enabled
  41.  
  42.    Partition Type:           Apple_HFS
  43.    OS Can Be Installed:      No
  44.    Media Type:               Generic
  45.    Protocol:                 Disk Image
  46.    SMART Status:             Not Supported
  47.    Volume UUID:              5E5715B9-34D8-3CFA-B0A3-9CC4A8B62130
  48.  
  49.    Total Size:               1.2 GB (1193177088 Bytes) (exactly 2330424 512-Byte-Blocks)
  50.    Volume Free Space:        38.3 MB (38256640 Bytes) (exactly 74720 512-Byte-Blocks)
  51.    Device Block Size:        512 Bytes
  52.  
  53.    Read-Only Media:          No
  54.    Read-Only Volume:         Yes
  55.    Ejectable:                Yes
  56.  
  57.    Whole:                    No
  58.    Internal:                 No
  59.  
  60. -bash-3.2# /sbin/fsck -fy
  61. ** /dev/rdisk0s2
  62.     Using cacheBlockSize=32K cacheTotalBlock=98304 cacheSize=3145728K.
  63. ** Root file system
  64.    Executing fsck_hfs (version diskdev_cmds-557.3.1~5).
  65. ** Checking non-journaled HFS Plus Volume.
  66.    The volume name is Mac OS X Base System
  67. ** Checking extents overflow file.
  68. ** Checking catalog file.
  69. ** Checking multi-linked files.
  70. ** Checking catalog hierarchy.
  71. ** Checking extended attributes file.
  72. ** Checking volume bitmap.
  73. ** Checking volume information.
  74. ** The volume Mac OS X Base System appears to be OK.
  75. -bash-3.2# df -hl    
  76. Filesystem     Size   Used  Avail Capacity iused ifree %iused  Mounted on
  77. /dev/disk0s2  1.1Gi  1.1Gi   36Mi    97%  281961  9340   97%   /
  78. /dev/disk2    512Ki  144Ki  368Ki    29%      34    92   27%   /Volumes
  79. /dev/disk3    512Ki  140Ki  372Ki    28%      33    93   26%   /private/var/tmp
  80. /dev/disk4    512Ki  156Ki  356Ki    31%      37    89   29%   /private/var/run
  81. /dev/disk5    512Ki  140Ki  372Ki    28%      33    93   26%   /System/Installation
  82. /dev/disk6    512Ki  264Ki  248Ki    52%      64    62   51%   /private/var/db
  83. /dev/disk7    6.0Mi  5.9Mi   68Ki    99%    1517    17   99%   /private/var/folders
  84. /dev/disk8    2.0Mi  1.3Mi  732Ki    65%     327   183   64%   /private/var/root/Library
  85. /dev/disk9    1.0Mi  148Ki  876Ki    15%      35   219   14%   /Library/ColorSync/Profiles/Displays
  86. /dev/disk10   512Ki  168Ki  344Ki    33%      40    86   32%   /Library/Preferences
  87. /dev/disk11   512Ki  152Ki  360Ki    30%      36    90   29%   /Library/Preferences/SystemConfiguration
  88. /dev/disk12   1.0Mi  140Ki  884Ki    14%      33   221   13%   /Library/Keychains
  89. -bash-3.2# diskutil list
  90. /dev/disk0
  91.    #:                       TYPE NAME                    SIZE       IDENTIFIER
  92.    0:     Apple_partition_scheme                        *1.2 GB     disk0
  93.    1:        Apple_partition_map                         30.7 KB    disk0s1
  94.    2:                  Apple_HFS Mac OS X Base System    1.2 GB     disk0s2
  95. /dev/disk1
  96.    #:                       TYPE NAME                    SIZE       IDENTIFIER
  97.    0:     FDisk_partition_scheme                        *121.3 GB   disk1
  98.    1:                Windows_LDM                         99.3 GB    disk1s1
  99.    2:                Windows_LDM                         22.0 GB    disk1s2
  100. /dev/disk2
  101.    #:                       TYPE NAME                    SIZE       IDENTIFIER
  102.    0:                            untitled               *524.3 KB   disk2
  103. /dev/disk3
  104.    #:                       TYPE NAME                    SIZE       IDENTIFIER
  105.    0:                            untitled               *524.3 KB   disk3
  106. /dev/disk4
  107.    #:                       TYPE NAME                    SIZE       IDENTIFIER
  108.    0:                            untitled               *524.3 KB   disk4
  109. /dev/disk5
  110.    #:                       TYPE NAME                    SIZE       IDENTIFIER
  111.    0:                            untitled               *524.3 KB   disk5
  112. /dev/disk6
  113.    #:                       TYPE NAME                    SIZE       IDENTIFIER
  114.    0:                            untitled               *524.3 KB   disk6
  115. /dev/disk7
  116.    #:                       TYPE NAME                    SIZE       IDENTIFIER
  117.    0:                            untitled               *6.3 MB     disk7
  118. /dev/disk8
  119.    #:                       TYPE NAME                    SIZE       IDENTIFIER
  120.    0:                            untitled               *2.1 MB     disk8
  121. /dev/disk9
  122.    #:                       TYPE NAME                    SIZE       IDENTIFIER
  123.    0:                            untitled               *1.0 MB     disk9
  124. /dev/disk10
  125.    #:                       TYPE NAME                    SIZE       IDENTIFIER
  126.    0:                            untitled               *524.3 KB   disk10
  127. /dev/disk11
  128.    #:                       TYPE NAME                    SIZE       IDENTIFIER
  129.    0:                            untitled               *524.3 KB   disk11
  130. /dev/disk12
  131.    #:                       TYPE NAME                    SIZE       IDENTIFIER
  132.    0:                            untitled               *1.0 MB     disk12
  133. -bash-3.2# /dev/disk1
  134. -bash: /dev/disk1: Permission denied
  135. -bash-3.2# sudo /dev/disk1
  136. -bash: sudo: command not found
  137. -bash-3.2# su /dev/disk1
  138. -bash: su: command not found
  139. -bash-3.2# cd /dev/disk1
  140. -bash: cd: /dev/disk1: Not a directory
  141. -bash-3.2# diskutil
  142. Disk Utility Tool
  143. Utility to manage local disks and volumes
  144. Most options require root access to the device
  145.  
  146. Usage:  diskutil [quiet] <verb> <options>, where <verb> is as follows:
  147.  
  148.      list                  (List the partitions of a disk)
  149.      info[rmation]         (Get information on a specific disk or partition)
  150.      listFilesystems       (List file systems available for formatting)
  151.      activity              (Continuous log of system-wide disk arbitration)
  152.  
  153.      u[n]mount             (Unmount a single volume)
  154.      unmountDisk           (Unmount an entire disk (all volumes))
  155.      eject                 (Eject a disk)
  156.      mount                 (Mount a single volume)
  157.      mountDisk             (Mount an entire disk (all mountable volumes))
  158.  
  159.      enableJournal         (Enable HFS+ journaling on a mounted HFS+ volume)
  160.      disableJournal        (Disable HFS+ journaling on a mounted HFS+ volume)
  161.      moveJournal           (Move the HFS+ journal onto another volume)
  162.      enableOwnership       (Treat as exact User/Group IDs for a mounted volume)
  163.      disableOwnership      (Ignore on-disk User/Group IDs for a mounted volume)
  164.  
  165.      rename[Volume]        (Rename a volume)
  166.  
  167.      verifyVolume          (Verify the file system data structures of a volume)
  168.      repairVolume          (Repair the file system data structures of a volume)
  169.  
  170.      verifyDisk            (Verify the components of a partition map of a disk)
  171.      repairDisk            (Repair the components of a partition map of a disk)
  172.  
  173.      verifyPermissions     (Verify the permissions of a Mac OS X volume)
  174.      repairPermissions     (Repair the permissions of a Mac OS X volume)
  175.  
  176.      eraseDisk             (Erase an existing disk, removing all volumes)
  177.      eraseVolume           (Erase an existing volume)
  178.      reformat              (Erase an existing volume with same name and type)
  179.      eraseOptical          (Erase optical media (CD/RW, DVD/RW, etc.))
  180.      zeroDisk              (Erase a disk, writing zeros to the media)
  181.      randomDisk            (Erase a disk, writing random data to the media)
  182.      secureErase           (Securely erase a disk or freespace on a volume)
  183.  
  184.      partitionDisk         ((re)Partition a disk, removing all volumes)
  185.      resizeVolume          (Resize a volume, increasing or decreasing its size)
  186.      splitPartition        (Split an existing partition into two or more)
  187.      mergePartitions       (Combine two or more existing partitions into one)
  188.  
  189.      appleRAID <verb>      (Perform additional verbs related to AppleRAID)
  190.      coreStorage <verb>    (Perform additional verbs related to CoreStorage)
  191.  
  192. diskutil <verb> with no options will provide help on that verb
  193.  
  194. -bash-3.2# diskutil info
  195. Usage:  diskutil info[rmation] [-plist]
  196.         MountPoint|DiskIdentifier|DeviceNode|UUID
  197. Display detailed information about a disk or partition.
  198. Root access is not required.
  199. -bash-3.2# diskutil info disk1s1
  200.    Device Identifier:        disk1s1
  201.    Device Node:              /dev/disk1s1
  202.    Part of Whole:            disk1
  203.    Device / Media Name:      Untitled 1
  204.  
  205.    Volume Name:              Not applicable (no file system)
  206.  
  207.    Mounted:                  Not applicable (no file system)
  208.  
  209.    File System:              None
  210.  
  211.    Partition Type:           Windows_LDM
  212.    OS Can Be Installed:      No
  213.    Media Type:               Generic
  214.    Protocol:                 PCI
  215.    SMART Status:             Verified
  216.  
  217.    Total Size:               99.3 GB (99333701120 Bytes) (exactly 194011135 512-Byte-Blocks)
  218.    Volume Free Space:        Not applicable (no file system)
  219.    Device Block Size:        512 Bytes
  220.  
  221.    Read-Only Media:          No
  222.    Read-Only Volume:         Not applicable (no file system)
  223.    Ejectable:                No
  224.  
  225.    Whole:                    No
  226.    Internal:                 Yes
  227.    Solid State:              Yes
  228.  
  229. -bash-3.2# diskutil info disk1s2
  230.    Device Identifier:        disk1s2
  231.    Device Node:              /dev/disk1s2
  232.    Part of Whole:            disk1
  233.    Device / Media Name:      Untitled 2
  234.  
  235.    Volume Name:              Not applicable (no file system)
  236.  
  237.    Mounted:                  Not applicable (no file system)
  238.  
  239.    File System:              None
  240.  
  241.    Partition Type:           Windows_LDM
  242.    OS Can Be Installed:      No
  243.    Media Type:               Generic
  244.    Protocol:                 PCI
  245.    SMART Status:             Verified
  246.  
  247.    Total Size:               22.0 GB (21998075904 Bytes) (exactly 42964992 512-Byte-Blocks)
  248.    Volume Free Space:        Not applicable (no file system)
  249.    Device Block Size:        512 Bytes
  250.  
  251.    Read-Only Media:          No
  252.    Read-Only Volume:         Not applicable (no file system)
  253.    Ejectable:                No
  254.  
  255.    Whole:                    No
  256.    Internal:                 Yes
  257.    Solid State:              Yes
  258.  
  259. -bash-3.2# diskutil listFilesystems
  260. Formattable file systems
  261.  
  262. These file system personalities can be used for erasing and partitioning.
  263. When specifying a personality as a parameter to a verb, case is not considered.
  264. Certain common aliases (also case-insensitive) are listed below as well.
  265.  
  266. -------------------------------------------------------------------------------
  267. PERSONALITY                     USER VISIBLE NAME                              
  268. -------------------------------------------------------------------------------
  269. ExFAT                           ExFAT                                          
  270. Free Space                      Free Space                                      
  271.   (or) free
  272. MS-DOS                          MS-DOS (FAT)                                    
  273. MS-DOS FAT12                    MS-DOS (FAT12)                                  
  274. MS-DOS FAT16                    MS-DOS (FAT16)                                  
  275. MS-DOS FAT32                    MS-DOS (FAT32)                                  
  276.   (or) fat32
  277. HFS+                            Mac OS Extended                                
  278. Case-sensitive HFS+             Mac OS Extended (Case-sensitive)                
  279.   (or) hfsx
  280. Case-sensitive Journaled HFS+   Mac OS Extended (Case-sensitive, Journaled)    
  281.   (or) jhfsx
  282. Journaled HFS+                  Mac OS Extended (Journaled)                    
  283.   (or) jhfs+
  284. -bash-3.2# diskutil mount disk1s1
  285. Volume on disk1s1 failed to mount
  286. -bash-3.2# diskutil mount disk1  
  287. Volume on disk1 failed to mount; if it has a partitioning scheme, use "diskutil mountDisk"
  288. -bash-3.2# diskutil mountDisk
  289. Usage:   diskutil mountDisk DiskIdentifier|DeviceNode
  290. MountDisk and unmountDisk will operate on all partitions of that disk, and
  291. will do so whether a whole disk or a partition was specified.
  292. -bash-3.2# diskutil mountDisk disk1
  293. Volume(s) mounted successfully
  294. -bash-3.2# diskutil info disk1
  295.    Device Identifier:        disk1
  296.    Device Node:              /dev/disk1
  297.    Part of Whole:            disk1
  298.    Device / Media Name:      APPLE SSD SD0128F Media
  299.  
  300.    Volume Name:              Not applicable (no file system)
  301.  
  302.    Mounted:                  Not applicable (no file system)
  303.  
  304.    File System:              None
  305.  
  306.    Content (IOContent):      FDisk_partition_scheme
  307.    OS Can Be Installed:      No
  308.    Media Type:               Generic
  309.    Protocol:                 PCI
  310.    SMART Status:             Verified
  311.  
  312.    Total Size:               121.3 GB (121332826112 Bytes) (exactly 236978176 512-Byte-Blocks)
  313.    Volume Free Space:        Not applicable (no file system)
  314.    Device Block Size:        512 Bytes
  315.  
  316.    Read-Only Media:          No
  317.    Read-Only Volume:         Not applicable (no file system)
  318.    Ejectable:                No
  319.  
  320.    Whole:                    Yes
  321.    Internal:                 Yes
  322.    Solid State:              Yes
  323.    OS 9 Drivers:             No
  324.    Low Level Format:         Not supported
  325.  
  326. -bash-3.2# diskutil verifyvolume
  327. Usage:  diskutil verifyVolume MountPoint|DiskIdentifier|DeviceNode
  328. Verify the file system data structures of a volume.
  329. Ownership of the affected disk is required.
  330. -bash-3.2# diskutil verifyvolume disk1
  331. Error starting file system verification for disk1: Invalid request (-69886)
  332. -bash-3.2# diskutil verifyvolume disk1s1
  333. Error starting file system verification for disk1s1: Unrecognized file system (-69846)
  334. -bash-3.2# diskutil repairVolume disk1  
  335. Error starting file system repair for disk1: Invalid request (-69886)
  336. -bash-3.2# diskutil repairVolume disk1s1
  337. Error starting file system repair for disk1s1: Unrecognized file system (-69846)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement