주요 콘텐츠로 건너뛰기

6MB 공유 L3 캐시 2.2 GHz (Turbo Boost 최대 3.4 GHz) 또는 2.5 (Turbo Boost 최대 3.7GHz) GHz 쿼드-코어 Intel Core i7 프로세서.

467 질문 전체 보기

How can I reset my USB ports via Terminal?

So I've made a stupid mistake by messing around with Terminal trying to fix a dodgy USB stick. I entered some commands such as "diskutil eraseDisk HFS+ newdisk disk2" from this website http://hints.macworld.com/article.php?st..., trying a few different options without fully understanding what I was doing. Now anything I plug into either USB 3.0 ports gets the message "The disk you inserted was not readable by this computer". USB drives and hard drives that worked before now no longer work.

I've tried resetting SMC and PRAM to no avail. Would rather not format the whole system as I can't do a more recent backup to HDD beforehand now. But if it comes to it, will this fix the problem?

Can someone tell me what commands to enter into terminal to set these ports back to what they were before I started messing with it?

이 질문에 답하기 저도 같은 문제를 겪고 있습니다

좋은 질문 입니까?

점수 0

댓글 2개:

@jwesterink Does the USB drive show up in Disk Utility?

Try to install clean OS to you computer but before doing so make sure you have created backup of your computer and keep it a safe place. or contact apple support at

(877) 232 0717

댓글 달기

답변 3개

sudo kextunload IOUSBMassStorageClass.kext;

sudo kextload /System/Library/Extensions/IOUSBMassStorageClass.kext

There are other better more effective ways to do this outside of terminal but I assume you cant get into the computer in the first place otherwise you wouldnt be asking for a terminal command.

해당 답변은 도움이 되었습니까?

점수 0

댓글 1개:

This should reset the USB ports to factory settings

댓글 달기

A way to do it outside of terminal is:

  1. Press the  icon in top left of screen
  2. Click Shutdown
  3. Turn on the Mac while holding down the Command-Option-P-R keys until you hear the second start-up sound.
  4. Release the Command-Option-P-R keys.
  5. or
    1. Press the  icon in top left of screen
    2. Click Shutdown
    3. Disconnect the MagSafe power adapter from the computer
    4. Remove the battery
    5. Press and hold the power button for 5 seconds
    6. Release the power button
    7. Reconnect the battery and MagSafe power adapter
    8. Press the power button to turn on the computer
  6. or
    1. Press the  icon in top left of screen
    2. Click Shutdown
    3. Plug in the MagSafe or USB-C power adapter to a power source and to your computer.
    4. On the built-in keyboard, press the (left side) Shift-Control-Option keys and the  power button at the same time.
    5. Release all the keys and the power button at the same time.
    6. Press the  power button to turn on the Mac laptop.
  7.  IF those dont work comment on one of my posts and I will give more methods

해당 답변은 도움이 되었습니까?

점수 0
댓글 달기

The USB doesn’t work, so I cant use any key combination. I thought there might be a way to use the on/off button without rebooting it?

Currently I try to use bluetooth mouse and keyboard to type resetusb (after adding to the profile: alias resetusb='sudo launchctl stop com.apple.usbd; sudo launchctl start com.apple.usbd')

as someone suggested.

해당 답변은 도움이 되었습니까?

점수 0
댓글 달기

귀하의 답변을 추가하세요

James 님은 대단히 고마워 할 것입니다.
조회 통계:

24 시간 전: 3

7일 전: 31

30일 전: 146

전체 시간: 14,346