Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -bash-3.2# date
- Sun Feb 26 02:42:09 PST 2012
- -bash-3.2# sw_vers
- ProductName: Mac OS X
- ProductVersion: 10.7.2
- BuildVersion: 11C74
- -bash-3.2# uname -a
- -bash: uname: command not found
- -bash-3.2# mount
- /dev/disk1s3 on / (hfs, local, read-only)
- devfs on /dev (devfs, local, nobrowse)
- /dev/disk2 on /Volumes (hfs, local, union, nobrowse)
- /dev/disk3 on /private/var/tmp (hfs, local, union, nobrowse)
- /dev/disk4 on /private/var/run (hfs, local, union, nobrowse)
- /dev/disk5 on /System/Installation (hfs, local, union, nobrowse)
- /dev/disk6 on /private/var/db (hfs, local, union, nobrowse)
- /dev/disk7 on /private/var/folders (hfs, local, union, nobrowse)
- /dev/disk8 on /private/var/root/Library (hfs, local, union, nobrowse)
- /dev/disk9 on /Library/ColorSync/Profiles/Displays (hfs, local, union, nobrowse)
- /dev/disk10 on /Library/Preferences (hfs, local, union, nobrowse)
- /dev/disk11 on /Library/Preferences/SystemConfiguration (hfs, local, union, nobrowse)
- /dev/disk12 on /Library/Keychains (hfs, local, union, nobrowse)
- /dev/disk0s2 on /Volumes/11D50 (hfs, local, journaled)
- /dev/disk0s5 on /Volumes/Image Volume (hfs, local, read-only, journaled)
- -bash-3.2# diskutil list
- /dev/disk0
- #: TYPE NAME SIZE IDENTIFIER
- 0: GUID_partition_scheme *160.0 GB disk0
- 1: EFI 209.7 MB disk0s1
- 2: Apple_HFS 11D50 25.0 GB disk0s2
- 3: Apple_Boot Recovery HD 650.0 MB disk0s3
- 4: Apple_CoreStorage 25.0 GB disk0s4
- 5: Apple_Boot Recovery HD 650.0 MB disk0s5
- /dev/disk1
- #: TYPE NAME SIZE IDENTIFIER
- 0: Apple_partition_scheme *1.4 GB disk1
- 1: Apple_partition_map 30.7 KB disk1s1
- 2: Apple_Driver_ATAPI 2.0 KB disk1s2
- 3: Apple_HFS Mac OS X Base System 1.4 GB disk1s3
- /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# cd /usr/sbin
- -bash-3.2# systemsetup
- load: 0.28 cmd: systemsetup 366 waiting 0.13u 0.15s
- > systemsetup
- > type -help for help.
- > load: 0.23 cmd: systemsetup 366 waiting 0.32u 0.51s
- load: 0.28 cmd: systemsetup 366 waiting 0.32u 0.51s
- load: 0.28 cmd: systemsetup 366 waiting 0.32u 0.51s
- load: 0.25 cmd: systemsetup 366 waiting 0.32u 0.51s
- load: 0.25 cmd: systemsetup 366 waiting 0.32u 0.51s
- -help
- systemsetup Help Information
- -------------------------------------
- Usage: systemsetup -getdate
- Display current date.
- Usage: systemsetup -setdate <mm:dd:yy>
- Set current date to <mm:dd:yy>.
- Usage: systemsetup -gettime
- Display current time.
- Usage: systemsetup -settime <hh:mm:ss>
- Set current time to <hh:mm:ss>.
- Usage: systemsetup -gettimezone
- Display current time zone.
- Usage: systemsetup -settimezone <timezone>
- Set current time zone to <timezone>. Use "-listtimezones" to list time zones.
- Usage: systemsetup -listtimezones
- List time zones supported by this machine.
- Usage: systemsetup -getusingnetworktime
- Display whether network time is on or off.
- Usage: systemsetup -setusingnetworktime <on off>
- Set using network time to either <on> or <off>.
- Usage: systemsetup -getnetworktimeserver
- Display network time server.
- Usage: systemsetup -setnetworktimeserver <timeserver>
- Set network time server to <timeserver>.
- Usage: systemsetup -getsleep
- Display amount of idle time until computer, display and hard disk sleep.
- Usage: systemsetup -setsleep <minutes>
- Set amount of idle time until computer, display and hard disk sleep to <minutes>.
- Specify "Never" or "Off" for never.
- Usage: systemsetup -getcomputersleep
- Display amount of idle time until computer sleeps.
- Usage: systemsetup -setcomputersleep <minutes>
- Set amount of idle time until compputer sleeps to <minutes>.
- Specify "Never" or "Off" for never.
- Usage: systemsetup -getdisplaysleep
- Display amount of idle time until display sleeps.
- Usage: systemsetup -setdisplaysleep <minutes>
- Set amount of idle time until display sleeps to <minutes>.
- Specify "Never" or "Off" for never.
- Usage: systemsetup -getharddisksleep
- Display amount of idle time until hard disk sleeps.
- Usage: systemsetup -setharddisksleep <minutes>
- Set amount of idle time until hard disk sleeps to <minutes>.
- Specify "Never" or "Off" for never.
- Usage: systemsetup -getwakeonmodem
- Display whether wake on modem is on or off.
- Usage: systemsetup -setwakeonmodem <on off>
- Set wake on modem to either <on> or <off>.
- Usage: systemsetup -getwakeonnetworkaccess
- Display whether wake on network access is on or off.
- Usage: systemsetup -setwakeonnetworkaccess <on off>
- Set wake on network access to either <on> or <off>.
- Usage: systemsetup -getrestartpowerfailure
- Display whether restart on power failure is on or off.
- Usage: systemsetup -setrestartpowerfailure <on off>
- Set restart on power failure to either <on> or <off>.
- Usage: systemsetup -getrestartfreeze
- Display whether restart on freeze is on or off.
- Usage: systemsetup -setrestartfreeze <on off>
- Set restart on freeze to either <on> or <off>.
- Usage: systemsetup -getallowpowerbuttontosleepcomputer
- Display whether the power button is able to sleep the computer.
- Usage: systemsetup -setallowpowerbuttontosleepcomputer <on off>
- Enable or disable whether the power button can sleep the computer.
- Usage: systemsetup -getremotelogin
- Display whether remote login is on or off.
- Usage: systemsetup -setremotelogin <on off>
- Set remote login to either <on> or <off>. Use "systemsetup -f -setremotelogin off" to suppress prompting when turning remote login off.
- Usage: systemsetup -getremoteappleevents
- Display whether remote apple events are on or off.
- Usage: systemsetup -setremoteappleevents <on off>
- Set remote apple events to either <on> or <off>.
- Usage: systemsetup -getcomputername
- Display computer name.
- Usage: systemsetup -setcomputername <computername>
- Set computer name to <computername>.
- Usage: systemsetup -getlocalsubnetname
- Display local subnet name.
- Usage: systemsetup -setlocalsubnetname <name>
- Set local subnet name to <name>.
- Usage: systemsetup -getstartupdisk
- Display current startup disk.
- Usage: systemsetup -setstartupdisk <disk>
- Set current startup disk to <disk>.
- Usage: systemsetup -liststartupdisks
- List startup disks on this machine.
- Usage: systemsetup -getwaitforstartupafterpowerfailure
- Get the number of seconds after which the computer will start up after a power failure.
- Usage: systemsetup -setwaitforstartupafterpowerfailure <seconds>
- Set the number of seconds after which the computer will start up after a power failure. The <seconds> value must be a multiple of 30 seconds.
- Usage: systemsetup -getdisablekeyboardwhenenclosurelockisengaged
- Get whether or not the keyboard should be disabled when the X Serve enclosure lock is engaged.
- Usage: systemsetup -setdisablekeyboardwhenenclosurelockisengaged <yes no>
- Set whether or not the keyboard should be disabled when the X Serve enclosure lock is engaged.
- Usage: systemsetup -version
- Display version of systemsetup tool.
- Usage: systemsetup -help
- Display help.
- Usage: systemsetup -printCommands
- Display commands.
- > load: 0.27 cmd: systemsetup 366 waiting 0.32u 0.51s
- load: 0.25 cmd: systemsetup 366 waiting 0.32u 0.51s
- exit
- -bash-3.2# systemsetup
- load: 0.39 cmd: systemsetup 367 waiting 0.19u 0.27s
- > systemsetup
- > type -help for help.
- > load: 0.30 cmd: systemsetup 367 waiting 0.32u 0.51s
- exit
- -bash-3.2# systemsetup
- -help
- load: 0.45 cmd: systemsetup 368 waiting 0.10u 0.09s
- load: 0.45 cmd: systemsetup 368 waiting 0.11u 0.12s
- load: 0.41 cmd: systemsetup 368 waiting 0.12u 0.14s
- load: 0.41 cmd: systemsetup 368 waiting 0.13u 0.16s
- load: 0.41 cmd: systemsetup 368 waiting 0.15u 0.19s
- load: 0.38 cmd: systemsetup 368 waiting 0.16u 0.21s
- load: 0.38 cmd: systemsetup 368 waiting 0.17u 0.24s
- load: 0.38 cmd: systemsetup 368 waiting 0.18u 0.25s
- load: 0.38 cmd: systemsetup 368 waiting 0.20u 0.29s
- load: 0.35 cmd: systemsetup 368 waiting 0.23u 0.34s
- load: 0.32 cmd: systemsetup 368 waiting 0.26u 0.40s
- load: 0.32 cmd: systemsetup 368 waiting 0.29u 0.44s
- > systemsetup
- > type -help for help.
- >
- systemsetup Help Information
- -------------------------------------
- Usage: systemsetup -getdate
- Display current date.
- Usage: systemsetup -setdate <mm:dd:yy>
- Set current date to <mm:dd:yy>.
- Usage: systemsetup -gettime
- Display current time.
- Usage: systemsetup -settime <hh:mm:ss>
- Set current time to <hh:mm:ss>.
- Usage: systemsetup -gettimezone
- Display current time zone.
- Usage: systemsetup -settimezone <timezone>
- Set current time zone to <timezone>. Use "-listtimezones" to list time zones.
- Usage: systemsetup -listtimezones
- List time zones supported by this machine.
- Usage: systemsetup -getusingnetworktime
- Display whether network time is on or off.
- Usage: systemsetup -setusingnetworktime <on off>
- Set using network time to either <on> or <off>.
- Usage: systemsetup -getnetworktimeserver
- Display network time server.
- Usage: systemsetup -setnetworktimeserver <timeserver>
- Set network time server to <timeserver>.
- Usage: systemsetup -getsleep
- Display amount of idle time until computer, display and hard disk sleep.
- Usage: systemsetup -setsleep <minutes>
- Set amount of idle time until computer, display and hard disk sleep to <minutes>.
- Specify "Never" or "Off" for never.
- Usage: systemsetup -getcomputersleep
- Display amount of idle time until computer sleeps.
- Usage: systemsetup -setcomputersleep <minutes>
- Set amount of idle time until compputer sleeps to <minutes>.
- Specify "Never" or "Off" for never.
- Usage: systemsetup -getdisplaysleep
- Display amount of idle time until display sleeps.
- Usage: systemsetup -setdisplaysleep <minutes>
- Set amount of idle time until display sleeps to <minutes>.
- Specify "Never" or "Off" for never.
- Usage: systemsetup -getharddisksleep
- Display amount of idle time until hard disk sleeps.
- Usage: systemsetup -setharddisksleep <minutes>
- Set amount of idle time until hard disk sleeps to <minutes>.
- Specify "Never" or "Off" for never.
- Usage: systemsetup -getwakeonmodem
- Display whether wake on modem is on or off.
- Usage: systemsetup -setwakeonmodem <on off>
- Set wake on modem to either <on> or <off>.
- Usage: systemsetup -getwakeonnetworkaccess
- Display whether wake on network access is on or off.
- Usage: systemsetup -setwakeonnetworkaccess <on off>
- Set wake on network access to either <on> or <off>.
- Usage: systemsetup -getrestartpowerfailure
- Display whether restart on power failure is on or off.
- Usage: systemsetup -setrestartpowerfailure <on off>
- Set restart on power failure to either <on> or <off>.
- Usage: systemsetup -getrestartfreeze
- Display whether restart on freeze is on or off.
- Usage: systemsetup -setrestartfreeze <on off>
- Set restart on freeze to either <on> or <off>.
- Usage: systemsetup -getallowpowerbuttontosleepcomputer
- Display whether the power button is able to sleep the computer.
- Usage: systemsetup -setallowpowerbuttontosleepcomputer <on off>
- Enable or disable whether the power button can sleep the computer.
- Usage: systemsetup -getremotelogin
- Display whether remote login is on or off.
- Usage: systemsetup -setremotelogin <on off>
- Set remote login to either <on> or <off>. Use "systemsetup -f -setremotelogin off" to suppress prompting when turning remote login off.
- Usage: systemsetup -getremoteappleevents
- Display whether remote apple events are on or off.
- Usage: systemsetup -setremoteappleevents <on off>
- Set remote apple events to either <on> or <off>.
- Usage: systemsetup -getcomputername
- Display computer name.
- Usage: systemsetup -setcomputername <computername>
- Set computer name to <computername>.
- Usage: systemsetup -getlocalsubnetname
- Display local subnet name.
- Usage: systemsetup -setlocalsubnetname <name>
- Set local subnet name to <name>.
- Usage: systemsetup -getstartupdisk
- Display current startup disk.
- Usage: systemsetup -setstartupdisk <disk>
- Set current startup disk to <disk>.
- Usage: systemsetup -liststartupdisks
- List startup disks on this machine.
- Usage: systemsetup -getwaitforstartupafterpowerfailure
- Get the number of seconds after which the computer will start up after a power failure.
- Usage: systemsetup -setwaitforstartupafterpowerfailure <seconds>
- Set the number of seconds after which the computer will start up after a power failure. The <seconds> value must be a multiple of 30 seconds.
- Usage: systemsetup -getdisablekeyboardwhenenclosurelockisengaged
- Get whether or not the keyboard should be disabled when the X Serve enclosure lock is engaged.
- Usage: systemsetup -setdisablekeyboardwhenenclosurelockisengaged <yes no>
- Set whether or not the keyboard should be disabled when the X Serve enclosure lock is engaged.
- Usage: systemsetup -version
- Display version of systemsetup tool.
- Usage: systemsetup -help
- Display help.
- Usage: systemsetup -printCommands
- Display commands.
- > load: 0.29 cmd: systemsetup 368 waiting 0.32u 0.51s
- exit
- -bash-3.2# diskutil coreStorage list
- CoreStorage logical volume groups (1 found)
- |
- +-- Logical Volume Group ED97CA61-2077-45CE-9CBB-8AA0A7600CB5
- =========================================================
- Name: b
- Sequence: 1
- Free Space: 0 B (0 B)
- |
- +-< Physical Volume 5C79B2B6-CE01-4F02-9222-2AD898791AC5
- | ----------------------------------------------------
- | Index: 0
- | Disk: disk0s4
- | Status: Online
- | Size: 24999997440 B (25.0 GB)
- |
- +-> Logical Volume Family 7A9C5B98-287F-4F6B-9F9C-9641EFBC16E1
- ----------------------------------------------------------
- Sequence: 10
- Encryption Status: Locked
- Encryption Type: AES-XTS
- Encryption Context: Present
- Conversion Status: Complete
- Has Encrypted Extents: Yes
- Conversion Direction: -none-
- |
- +-> Logical Volume 3A130C9E-63AE-4F00-A1C3-E750B1570381
- ---------------------------------------------------
- Disk: -none-
- Status: Locked
- Sequence: 4
- Size (Total): 24681226240 B (24.7 GB)
- Size (Converted): -none-
- Revertible: Yes (unlock and decryption required)
- LV Name: b
- Content Hint: Apple_HFS
- -bash-3.2# systemsetup -getstartupdisk
- load: 0.33 cmd: systemsetup 405 waiting 0.12u 0.13s
- load: 0.39 cmd: systemsetup 405 waiting 0.18u 0.24s
- load: 0.33 cmd: systemsetup 405 waiting 0.24u 0.34s
- load: 0.38 cmd: systemsetup 405 running 0.28u 0.43s
- load: 0.35 cmd: systemsetup 405 uninterruptible 0.34u 0.52s
- (null)
- -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 coreStorage
- Usage: diskutil [quiet] coreStorage|CS <verb> <options>,
- where <verb> is as follows:
- list (Show status of CoreStorage volumes)
- info[rmation] (Get CoreStorage information by UUID or disk)
- convert (Convert a volume into a CoreStorage volume)
- revert (Revert a CoreStorage volume to its native type)
- create (Create a new CoreStorage logical volume group)
- delete (Delete a CoreStorage logical volume group)
- createVolume (Create a new CoreStorage logical volume)
- unlockVolume (Attach/mount a locked CoreStorage logical volume)
- changeVolumePassphrase (Change a CoreStorage logical volume's passphrase)
- diskutil coreStorage <verb> with no options will provide help on that verb
- -bash-3.2# diskutil coreStorage unlockVolume 3A130C9E-63AE-4F00-A1C3-E750B1570381
- Passphrase:
- Started CoreStorage operation
- Logical Volume successfully unlocked
- Logical Volume successfully attached as disk13
- Logical Volume successfully mounted as /Volumes/b
- Core Storage disk: disk13
- Finished CoreStorage operation
- -bash-3.2# systemsetup -getstartupdisk
- load: 0.39 cmd: systemsetup 421 waiting 0.16u 0.20s
- load: 0.36 cmd: systemsetup 421 waiting 0.21u 0.30s
- load: 0.33 cmd: systemsetup 421 waiting 0.26u 0.39s
- load: 0.46 cmd: systemsetup 421 waiting 0.28u 0.42s
- load: 0.46 cmd: systemsetup 421 waiting 0.29u 0.44s
- load: 0.46 cmd: systemsetup 421 waiting 0.30u 0.46s
- load: 0.46 cmd: systemsetup 421 waiting 0.30u 0.47s
- load: 0.50 cmd: systemsetup 421 waiting 0.31u 0.48s
- load: 0.50 cmd: systemsetup 421 waiting 0.31u 0.48s
- load: 0.50 cmd: systemsetup 421 waiting 0.31u 0.49s
- load: 0.50 cmd: systemsetup 421 waiting 0.32u 0.49s
- load: 0.50 cmd: systemsetup 421 waiting 0.32u 0.50s
- load: 0.50 cmd: systemsetup 421 waiting 0.32u 0.50s
- load: 0.50 cmd: systemsetup 421 waiting 0.32u 0.50s
- load: 0.50 cmd: systemsetup 421 waiting 0.32u 0.50s
- load: 0.50 cmd: systemsetup 421 waiting 0.32u 0.50s
- load: 0.50 cmd: systemsetup 421 waiting 0.32u 0.50s
- load: 0.50 cmd: systemsetup 421 waiting 0.32u 0.50s
- load: 0.50 cmd: systemsetup 421 waiting 0.32u 0.50s
- load: 0.50 cmd: systemsetup 421 waiting 0.32u 0.50s
- load: 0.50 cmd: systemsetup 421 waiting 0.32u 0.51s
- load: 0.50 cmd: systemsetup 421 waiting 0.33u 0.51s
- load: 0.50 cmd: systemsetup 421 waiting 0.33u 0.51s
- load: 0.50 cmd: systemsetup 421 waiting 0.33u 0.51s
- load: 0.50 cmd: systemsetup 421 waiting 0.33u 0.51s
- load: 0.50 cmd: systemsetup 421 waiting 0.33u 0.51s
- load: 0.50 cmd: systemsetup 421 running 0.33u 0.51s
- load: 0.50 cmd: systemsetup 421 uninterruptible 0.34u 0.52s
- load: 0.50 cmd: systemsetup 421 uninterruptible 0.34u 0.52s
- load: 0.50 cmd: systemsetup 421 uninterruptible 0.34u 0.52s
- load: 0.50 cmd: systemsetup 421 uninterruptible 0.34u 0.52s
- load: 0.50 cmd: systemsetup 421 uninterruptible 0.34u 0.52s
- load: 0.50 cmd: systemsetup 421 waiting 0.34u 0.55s
- load: 0.50 cmd: systemsetup 421 waiting 0.34u 0.55s
- load: 0.50 cmd: systemsetup 421 waiting 0.34u 0.55s
- /Volumes/b/System/Library/CoreServices
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement