osx

How to enable the root user in OS X 10.5 (Leopard)

Mac OS X 10.5 or later

  1. From the Finder’s Go menu, choose Utilities.
  2. Open Directory Utility.
  3. Click the lock in the Directory Utility window.
  4. Enter an administrator account name and password, then click OK.
  5. Choose Enable Root User from the Edit menu
  6. Enter the root password you wish to use in both the Password and Verify fields, then click OK.

List of open files on a volume

in

A Useful and Interesting Terminal Command

System Message: WARNING/2 (<stdin>, line 2)

Title underline too short.

A Useful and Interesting Terminal Command
================================

lsof and fstat

lsof and fstat list open files. This can be very handy for overcoming the "Cannot eject disk X because it is in use" error.

Try:

fstat | grep volumeName

to get the list of files open on that volume.

How to use your PowerBook G4, MacBook Pro or MacBook with the display closed

If you use an external display or projector with any MacBook Pro or PowerBook G4 and a USB mouse or keyboard, you can close the display and still use the computer. Here's how.

  1. Make sure the computer is plugged in to an outlet using the AC power adapter.
  2. Connect a USB keyboard and mouse to your computer.
  3. Connect the Apple video (VGA or DVI) adapter that came with your computer to the appropriate port on the external display or projector and turn the display or projector on.

OS X boot keys

Startup Keystroke Description

Command-S Boot into Single User Mode

Command-V Boot using "Verbose" mode (shows all kernel and startup console messages)

X Reset startup disk selection and boot into Mac OS X Server

Shift Boot into "Safe Boot" mode, which runs Disk First Aid. A reboot will be required afterward.

Option Boot into Open Firmware to select a boot device

Command-Option-Shift-Delete Bypass internal harddrive on boot

T Boot into Firewire target disk mode

Syndicate content