Home Apple The Terminal Repair a disc with the Terminal

Publicité

Repair a disc with the Terminal PDF Print E-mail
Saturday, 23 August 2008 16:24

 

To repair a disk using the unix commands in Terminal.

To repair a disk it should not be the boot disk, and you must have root privileges.

 

Enter:

#diskutil verifyDisk /dev/disk*

* to find out out the disk number you can enter: #diskutil list

(for example : #diskutil verifyDisk /dev/disk0s3 )

Now, verifyDisk will do its small tests, if there is a problem, type
#diskutil repairDisk /dev/disk*

Attention diskutil function can do a lot of things on your disk, this means also formatting and deleting your complete disk. For a list of options type
#man diskutil (man lists the option of a function)

Well, last thing useful for small repairs (after checking) :

#diskutil verifyPermissions /dev/disk*

 

 

 

Related articles:

 

Last Updated on Monday, 21 December 2009 08:20
 
Copyright © 2012 English fievet.net - News about Apple. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.