Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -bash-3.2# fsck
- ** /dev/rdisk0s2
- ** Root file system
- Executing fsck_hfs (version diskdev_cmds-557.3.1~5).
- ** Checking non-journaled HFS Plus Volume.
- The volume name is Mac OS X Base System
- ** 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 Mac OS X Base System appears to be OK.
- -bash-3.2# ls
- .forward Library
- -bash-3.2# diskutil info
- Usage: diskutil info[rmation] [-plist]
- MountPoint|DiskIdentifier|DeviceNode|UUID
- Display detailed information about a disk or partition.
- Root access is not required.
- -bash-3.2# diskutil info/
- diskutil: did not recognize verb "info/"; type "diskutil" for a list
- -bash-3.2# diskutil info /
- Device Identifier: disk0s2
- Device Node: /dev/disk0s2
- Part of Whole: disk0
- Device / Media Name: disk image
- Volume Name: Mac OS X Base System
- Escaped with Unicode: Mac%FF%FE%20%00OS%FF%FE%20%00X%FF%FE%20%00Base%FF%FE%20%00System
- Mounted: Yes
- Mount Point: /
- Escaped with Unicode: /
- File System Personality: HFS+
- Type (Bundle): hfs
- Name (User Visible): Mac OS Extended
- Owners: Enabled
- Partition Type: Apple_HFS
- OS Can Be Installed: No
- Media Type: Generic
- Protocol: Disk Image
- SMART Status: Not Supported
- Volume UUID: 5E5715B9-34D8-3CFA-B0A3-9CC4A8B62130
- Total Size: 1.2 GB (1193177088 Bytes) (exactly 2330424 512-Byte-Blocks)
- Volume Free Space: 38.3 MB (38256640 Bytes) (exactly 74720 512-Byte-Blocks)
- Device Block Size: 512 Bytes
- Read-Only Media: No
- Read-Only Volume: Yes
- Ejectable: Yes
- Whole: No
- Internal: No
- -bash-3.2# /sbin/fsck -fy
- ** /dev/rdisk0s2
- Using cacheBlockSize=32K cacheTotalBlock=98304 cacheSize=3145728K.
- ** Root file system
- Executing fsck_hfs (version diskdev_cmds-557.3.1~5).
- ** Checking non-journaled HFS Plus Volume.
- The volume name is Mac OS X Base System
- ** 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 Mac OS X Base System appears to be OK.
- -bash-3.2# df -hl
- Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
- /dev/disk0s2 1.1Gi 1.1Gi 36Mi 97% 281961 9340 97% /
- /dev/disk2 512Ki 144Ki 368Ki 29% 34 92 27% /Volumes
- /dev/disk3 512Ki 140Ki 372Ki 28% 33 93 26% /private/var/tmp
- /dev/disk4 512Ki 156Ki 356Ki 31% 37 89 29% /private/var/run
- /dev/disk5 512Ki 140Ki 372Ki 28% 33 93 26% /System/Installation
- /dev/disk6 512Ki 264Ki 248Ki 52% 64 62 51% /private/var/db
- /dev/disk7 6.0Mi 5.9Mi 68Ki 99% 1517 17 99% /private/var/folders
- /dev/disk8 2.0Mi 1.3Mi 732Ki 65% 327 183 64% /private/var/root/Library
- /dev/disk9 1.0Mi 148Ki 876Ki 15% 35 219 14% /Library/ColorSync/Profiles/Displays
- /dev/disk10 512Ki 168Ki 344Ki 33% 40 86 32% /Library/Preferences
- /dev/disk11 512Ki 152Ki 360Ki 30% 36 90 29% /Library/Preferences/SystemConfiguration
- /dev/disk12 1.0Mi 140Ki 884Ki 14% 33 221 13% /Library/Keychains
- -bash-3.2# diskutil list
- /dev/disk0
- #: TYPE NAME SIZE IDENTIFIER
- 0: Apple_partition_scheme *1.2 GB disk0
- 1: Apple_partition_map 30.7 KB disk0s1
- 2: Apple_HFS Mac OS X Base System 1.2 GB disk0s2
- /dev/disk1
- #: TYPE NAME SIZE IDENTIFIER
- 0: FDisk_partition_scheme *121.3 GB disk1
- 1: Windows_LDM 99.3 GB disk1s1
- 2: Windows_LDM 22.0 GB disk1s2
- /dev/disk2
- #: TYPE NAME SIZE IDENTIFIER
- 0: untitled *524.3 KB disk2
- /dev/disk3
- #: TYPE NAME SIZE IDENTIFIER
- 0: untitled *524.3 KB disk3
- /dev/disk4
- #: TYPE NAME SIZE IDENTIFIER
- 0: untitled *524.3 KB disk4
- /dev/disk5
- #: TYPE NAME SIZE IDENTIFIER
- 0: untitled *524.3 KB disk5
- /dev/disk6
- #: TYPE NAME SIZE IDENTIFIER
- 0: untitled *524.3 KB disk6
- /dev/disk7
- #: TYPE NAME SIZE IDENTIFIER
- 0: untitled *6.3 MB disk7
- /dev/disk8
- #: TYPE NAME SIZE IDENTIFIER
- 0: untitled *2.1 MB disk8
- /dev/disk9
- #: TYPE NAME SIZE IDENTIFIER
- 0: untitled *1.0 MB disk9
- /dev/disk10
- #: TYPE NAME SIZE IDENTIFIER
- 0: untitled *524.3 KB disk10
- /dev/disk11
- #: TYPE NAME SIZE IDENTIFIER
- 0: untitled *524.3 KB disk11
- /dev/disk12
- #: TYPE NAME SIZE IDENTIFIER
- 0: untitled *1.0 MB disk12
- -bash-3.2# /dev/disk1
- -bash: /dev/disk1: Permission denied
- -bash-3.2# sudo /dev/disk1
- -bash: sudo: command not found
- -bash-3.2# su /dev/disk1
- -bash: su: command not found
- -bash-3.2# cd /dev/disk1
- -bash: cd: /dev/disk1: Not a directory
- -bash-3.2# diskutil
- Disk Utility Tool
- Utility to manage local disks and volumes
- Most options require root access to the device
- Usage: diskutil [quiet] <verb> <options>, where <verb> is as follows:
- list (List the partitions of a disk)
- info[rmation] (Get information on a specific disk or partition)
- listFilesystems (List file systems available for formatting)
- activity (Continuous log of system-wide disk arbitration)
- u[n]mount (Unmount a single volume)
- unmountDisk (Unmount an entire disk (all volumes))
- eject (Eject a disk)
- mount (Mount a single volume)
- mountDisk (Mount an entire disk (all mountable volumes))
- enableJournal (Enable HFS+ journaling on a mounted HFS+ volume)
- disableJournal (Disable HFS+ journaling on a mounted HFS+ volume)
- moveJournal (Move the HFS+ journal onto another volume)
- enableOwnership (Treat as exact User/Group IDs for a mounted volume)
- disableOwnership (Ignore on-disk User/Group IDs for a mounted volume)
- rename[Volume] (Rename a volume)
- verifyVolume (Verify the file system data structures of a volume)
- repairVolume (Repair the file system data structures of a volume)
- verifyDisk (Verify the components of a partition map of a disk)
- repairDisk (Repair the components of a partition map of a disk)
- verifyPermissions (Verify the permissions of a Mac OS X volume)
- repairPermissions (Repair the permissions of a Mac OS X volume)
- eraseDisk (Erase an existing disk, removing all volumes)
- eraseVolume (Erase an existing volume)
- reformat (Erase an existing volume with same name and type)
- eraseOptical (Erase optical media (CD/RW, DVD/RW, etc.))
- zeroDisk (Erase a disk, writing zeros to the media)
- randomDisk (Erase a disk, writing random data to the media)
- secureErase (Securely erase a disk or freespace on a volume)
- partitionDisk ((re)Partition a disk, removing all volumes)
- resizeVolume (Resize a volume, increasing or decreasing its size)
- splitPartition (Split an existing partition into two or more)
- mergePartitions (Combine two or more existing partitions into one)
- appleRAID <verb> (Perform additional verbs related to AppleRAID)
- coreStorage <verb> (Perform additional verbs related to CoreStorage)
- diskutil <verb> with no options will provide help on that verb
- -bash-3.2# diskutil info
- Usage: diskutil info[rmation] [-plist]
- MountPoint|DiskIdentifier|DeviceNode|UUID
- Display detailed information about a disk or partition.
- Root access is not required.
- -bash-3.2# diskutil info disk1s1
- Device Identifier: disk1s1
- Device Node: /dev/disk1s1
- Part of Whole: disk1
- Device / Media Name: Untitled 1
- Volume Name: Not applicable (no file system)
- Mounted: Not applicable (no file system)
- File System: None
- Partition Type: Windows_LDM
- OS Can Be Installed: No
- Media Type: Generic
- Protocol: PCI
- SMART Status: Verified
- Total Size: 99.3 GB (99333701120 Bytes) (exactly 194011135 512-Byte-Blocks)
- Volume Free Space: Not applicable (no file system)
- Device Block Size: 512 Bytes
- Read-Only Media: No
- Read-Only Volume: Not applicable (no file system)
- Ejectable: No
- Whole: No
- Internal: Yes
- Solid State: Yes
- -bash-3.2# diskutil info disk1s2
- Device Identifier: disk1s2
- Device Node: /dev/disk1s2
- Part of Whole: disk1
- Device / Media Name: Untitled 2
- Volume Name: Not applicable (no file system)
- Mounted: Not applicable (no file system)
- File System: None
- Partition Type: Windows_LDM
- OS Can Be Installed: No
- Media Type: Generic
- Protocol: PCI
- SMART Status: Verified
- Total Size: 22.0 GB (21998075904 Bytes) (exactly 42964992 512-Byte-Blocks)
- Volume Free Space: Not applicable (no file system)
- Device Block Size: 512 Bytes
- Read-Only Media: No
- Read-Only Volume: Not applicable (no file system)
- Ejectable: No
- Whole: No
- Internal: Yes
- Solid State: Yes
- -bash-3.2# diskutil listFilesystems
- Formattable file systems
- These file system personalities can be used for erasing and partitioning.
- When specifying a personality as a parameter to a verb, case is not considered.
- Certain common aliases (also case-insensitive) are listed below as well.
- -------------------------------------------------------------------------------
- PERSONALITY USER VISIBLE NAME
- -------------------------------------------------------------------------------
- ExFAT ExFAT
- Free Space Free Space
- (or) free
- MS-DOS MS-DOS (FAT)
- MS-DOS FAT12 MS-DOS (FAT12)
- MS-DOS FAT16 MS-DOS (FAT16)
- MS-DOS FAT32 MS-DOS (FAT32)
- (or) fat32
- HFS+ Mac OS Extended
- Case-sensitive HFS+ Mac OS Extended (Case-sensitive)
- (or) hfsx
- Case-sensitive Journaled HFS+ Mac OS Extended (Case-sensitive, Journaled)
- (or) jhfsx
- Journaled HFS+ Mac OS Extended (Journaled)
- (or) jhfs+
- -bash-3.2# diskutil mount disk1s1
- Volume on disk1s1 failed to mount
- -bash-3.2# diskutil mount disk1
- Volume on disk1 failed to mount; if it has a partitioning scheme, use "diskutil mountDisk"
- -bash-3.2# diskutil mountDisk
- Usage: diskutil mountDisk DiskIdentifier|DeviceNode
- MountDisk and unmountDisk will operate on all partitions of that disk, and
- will do so whether a whole disk or a partition was specified.
- -bash-3.2# diskutil mountDisk disk1
- Volume(s) mounted successfully
- -bash-3.2# diskutil info disk1
- Device Identifier: disk1
- Device Node: /dev/disk1
- Part of Whole: disk1
- Device / Media Name: APPLE SSD SD0128F Media
- Volume Name: Not applicable (no file system)
- Mounted: Not applicable (no file system)
- File System: None
- Content (IOContent): FDisk_partition_scheme
- OS Can Be Installed: No
- Media Type: Generic
- Protocol: PCI
- SMART Status: Verified
- Total Size: 121.3 GB (121332826112 Bytes) (exactly 236978176 512-Byte-Blocks)
- Volume Free Space: Not applicable (no file system)
- Device Block Size: 512 Bytes
- Read-Only Media: No
- Read-Only Volume: Not applicable (no file system)
- Ejectable: No
- Whole: Yes
- Internal: Yes
- Solid State: Yes
- OS 9 Drivers: No
- Low Level Format: Not supported
- -bash-3.2# diskutil verifyvolume
- Usage: diskutil verifyVolume MountPoint|DiskIdentifier|DeviceNode
- Verify the file system data structures of a volume.
- Ownership of the affected disk is required.
- -bash-3.2# diskutil verifyvolume disk1
- Error starting file system verification for disk1: Invalid request (-69886)
- -bash-3.2# diskutil verifyvolume disk1s1
- Error starting file system verification for disk1s1: Unrecognized file system (-69846)
- -bash-3.2# diskutil repairVolume disk1
- Error starting file system repair for disk1: Invalid request (-69886)
- -bash-3.2# diskutil repairVolume disk1s1
- Error starting file system repair for disk1s1: Unrecognized file system (-69846)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement