How do I login to my iMac without keyboard and mouse?

28,468

If you can't boot into Safe Mode OR Single-User Mode:

Try this first:
if you have another computer on the same network, or you can physically connect another computer by firewire or Ethernet, and you have file sharing turned on, or screen sharing turned on, you can a) take control using screen sharing and use the other computer's mouse/kb, or go into the filesystem of your iMac from this connected machine and (i imagine you moved a kernel extension, possibly IOUSBFamily.kext?) restore/replace the files you altered.

If that doesn't work...
This is a bit heavy, but should work:

  1. Take out HDD

  2. Put HDD into external enclosure/dock/adapter

  3. turn on iMac and immediately insert the original install disc or a retail install disc that is not older than the system software that shipped with your computer.

  4. plug in mouse/keyboard, wait for command prompt.

  5. plug in hard drive.

  6. now you should be able to go in and edit the files on the HDD you took out that is now plugged in externally, FireWire or USB, by using the Terminal program to turn USB back on (by undoing whatever you did). I'm not going to give you a crash course on Terminal here, but look at This . You'll need at the very least the command mv or cp and you'll likely want to preface these with sudo.

Finally, you could always reinstall once the drive is out or, or install a new copy onto a usb drive, assuming the HDD is out, then plug the HDD back in once you've booted up, and work from my first suggestion.

Share:
28,468
Dray
Author by

Dray

I am an Android Beginner. Interested to get more knowledge in Android

Updated on September 18, 2022

Comments

  • Dray
    Dray over 1 year

    I have turned off the bluetooth in my iMac and disabled the USB ports too.

    Now i am unable to login to my iMac because the keyboard and mouse are not detected.

    • Bluetooth is switched off.

    • USB is disabled.

    I cannot use Bluetooth or USB keyboard or mouse. How shall i get my devices to work and to Login my iMac?

    • JoshP
      JoshP almost 12 years
      How did you disable the USB ports? Which method?
    • Admin
      Admin almost 12 years
      Have you tried booting into Safe Mode?