- How to Repair a Disk on Mac OS X from Command Line
- Many times, poor connection will make the Mac/MacBook not recognize the external hard drive. Make sure the connection is clean and firm. Wipe the USB port with a clean and dry towel to get rid of any dust or other material. Use another USB port/cable/hub/adapter.
- Turn on your Mac, then immediately press and hold Command-R to start up from macOS Recovery. Release the keys when you see the Apple logo or spinning globe. When you see the macOS Utilities window, choose Utilities Terminal from the menu bar. Type diskutil resetFusion in the Terminal window, then press Return.
by Vlad Tiganasu 6 years ago
How to Repair a Disk on Mac OS X from Command Line
Mac OS X comes with an easy-to-use application, called Disk Utility, that allows users to verify and repair hard disks using a graphical user interface and it is recommended for most Mac users that are not comfortable using the terminal. However, this can also be performed using the command-line. This could come in handy in situations when you can't or don't want to use Disk Utility for some reason. Run windows app on mac free.
by Vlad Tiganasu 6 years ago
How to Repair a Disk on Mac OS X from Command Line
Mac OS X comes with an easy-to-use application, called Disk Utility, that allows users to verify and repair hard disks using a graphical user interface and it is recommended for most Mac users that are not comfortable using the terminal. However, this can also be performed using the command-line. This could come in handy in situations when you can't or don't want to use Disk Utility for some reason. Run windows app on mac free.
In this guide, I will show you how you can repair a disk on Mac OS X using the command-line.
Open Terminal (in the same place as Disk Utility) and type in diskutil list and locate your drive. Rtsp player mac. It should have something similar to the name that shows up in disk utility indented under it (in my example it doesn't) Step 5. We are going to use a Terminal utility called DD to copy the contents bit by bit of the disk image we created to the drive.
View Connected Devices
The first thing you need to do is start Terminal (/Go/Utilities/Terminal). Once you have done that, you need to check the names of the volumes that are currently connected to your system. You can do that using two simple commands:
Switched to Volumes Directory
Now, you terminal should look like this:
LS command
Disk Verification
Now, it is time to verify your volume and determine if it needs to be repaired or not. In order to do that, you need to type the following command (make sure you replace [drive name] with the actual name of your volume)::
For example, if you want to test your Mac's hard disk, you just need to type:
Or, if you want to test, say, an external storage device that you named 'Movies' and you are not in the Volumes folder in terminal your command should look like this:
After some time (depending on the size of the tested volume), a message will be displayed that will tell you of the current state of your drive (see image)
After Disk Verification
As you can see, after I've tested my Mac's hard drive (named System), the message was 'The volume System appears to be OK'. If, instead of this message, the test returns a message like 'The volume System was found corrupt and needs to be repaired', then it is time to start fixing the problem.
Disk Repair
After you determine the volume you need to repair, all you have to do is simply write this command (make sure you replace [drive name] with the actual name of your volume):
Furthermore, if you want to repair your Mac's hard drive, then you can type
Conclusion
As the message from the terminal window says, you have successfully repaired your drive using the command-line version of Disk Utility. Even if it is commonly considered hard to use by some Mac users, the command-line is a very helpful feature and, if you have followed the guide, you should have your volumes fully repaired.
Usb Drive Mac Os
If you receive an error when trying to repair your drive using the command-line, then you might want to restart your Mac in recovery mode (using the Command-R key combination) and retype to repair command or simply use Disk Utility (might be easier for you using the GUI version).
Powerdvd mac download. If you keep having problems with your drive, then you should try the fsck approach (a more advanced command-line repair mode) or your drive might be physically damaged, in the latter case you should start creating backups of your data and get a new drive.
our latest
how to articles
Repair Usb Drive Mac Terminal Download
Fusion Drive, a storage option on some iMac and Mac mini computers, combines a hard drive and flash storage in a single volume for improved performance and storage capacity. If your Fusion Drive appears as two drives instead of one in the Finder, it's no longer working as a Fusion Drive. This can happen after replacing either drive of your Fusion Drive, or using software to intentionally split them into separate volumes.
Repair Usb Drive Mac Terminal Commands
You can continue using the two drives independently, or follow these steps to regain the benefits of having the single logical volume of a Fusion Drive.
Before you begin
If you're not sure that your Mac was configured with a Fusion Drive, or that the drive has been split:
- Disconnect any external storage devices from your Mac.
- Choose Apple menu > About This Mac, then click Storage.
- If you see a drive labeled Fusion Drive, your Fusion Drive is working and this article doesn't apply to you.
- If you have a Fusion Drive that has been split, you should see two drives. One of them should be labeled Flash Storage, with a capacity of 24GB, 32GB, or 128GB. The other should be at least 1TB.
Use Terminal to create a Fusion Drive again
These steps permanently delete all data stored on the drives that make up your Fusion Drive. Make sure that you have a backup before continuing.
If you're using macOS Mojave or later
- Turn on your Mac, then immediately press and hold Command-R to start up from macOS Recovery. Release the keys when you see the Apple logo or spinning globe.
- When you see the macOS Utilities window, choose Utilities > Terminal from the menu bar.
- Type
diskutil resetFusion
in the Terminal window, then press Return. - Type
Yes
(with a capital Y) when prompted, then press Return. - When Terminal indicates that the operation was successful, quit Terminal to return to the macOS Utilities window.
- Choose Reinstall macOS, then follow the onscreen instructions to reinstall the Mac operating system. Your Mac restarts from your Fusion Drive when done.
If you're using macOS High Sierra or earlier
- Turn on your Mac, then immediately press and hold Command-R to start up from macOS Recovery. Release the keys you see the Apple logo or spinning globe.
- When you see the macOS Utilities window, choose Utilities > Terminal from the menu bar.
- Type
diskutil list
in the Terminal window, then press Return. - Terminal displays a table of data about your drives. In the IDENTIFIER column, find the identifier for each of the two internal, physical drives that make up your Fusion Drive. Usually the identifiers are disk0 and disk1. One of them should be 128GB or less in size. The other at least 1TB in size.
- Type the following command, replacing identifier1 and identifier2 with the identifiers you found in the previous step. Then press Return.
Example: diskutil cs create Macintosh HD disk0 disk1
- If you get a disk unmounting error, enter
diskutil unmountDisk identifier
, using the first identifier you gathered previously. Then enter same command again using the second identifier. Then retry the command in step 5. - Type
diskutil cs list
, then press Return. - Terminal displays additional data about your drives (volumes). Find the string of numbers that appears after 'Logical Volume Group' for the volume named Macintosh HD. It's a number like 8354AFC3-BF97-4589-A407-25453FD2815A.
Example:
+-- Logical Volume Group 8354AFC3-BF97-4589-A407-25453FD2815A
|
| Name: Macintosh HD - Type the following command, replacing logicalvolumegroup with the number you found in the previous step. Then press Return.
Example: diskutil cs createVolume 8354AFC3-BF97-4589-A407-25453FD2815A jhfs+ Macintosh HD 100%
- When Terminal indicates that the operation was successful, quit Terminal to return to the macOS Utilities window.
- Choose Reinstall macOS, then follow the onscreen instructions to reinstall the Mac operating system. Your Mac restarts from your Fusion Drive when done.