メインコンテンツにスキップ

2.2 GHz (Turbo Boost up to 3.4 GHz) もしくは2.5 GHz (Turbo Boost up to 3.7 GHz) quad-core Intel Core i7 processor with 6MB shared L3 cache.

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時間: 6

過去 7 日: 32

過去 30 日: 161

今までの合計 14,312