Checking Drive health in OS X Server 10.4.10 from Terminal

In my quest to use VNC less I’ve come across as pretty helpful command line application to check the health of my server’s disk drives. It’s pretty handy and works well with both OS X Server, and regular OS X 10.4.10. Most of the problems I seem to encounter have to do with messed up file permissions in OS X Tiger, so this comes in really handy for me. Hopefully it will help you out as much as it did for me.

The application is called diskutil, essentially it’s DiskUtility.app without the gui goodness. Perfect for my setup since VNC is painfully slow.

It lets you do everything you can from in Disk Utility from the command line: List partitions, Unmount/mount drives, verify and repair drives. It’s a thing of beauty.

  1. Open terminal.app
  2. If your going to be doing this to a remote location ssh to that server. If you don’t know how to do that check out this article (Step Two Only).
  3. Now once you’re where you need to be type diskutil. It will list all of your options. For demonstration purposes lets check permissions.
  4. Type ‘diskutil verifyPermissions /Volumes/Drivename
  5. Drivename will be the name of the hard drive you wish to checkout.

It’s that simple and most of the other options work in the same way. For me, it’s one last thing I have to use VNC for. Perfect!

4 comments so far

  1. Macgasm #024 October 20, 2007 11:55 am

    […] Diskutil from the command line… For the Ubergeeky, or Sysadmin. JS […]

  2. […] Diskutil from the command line… For the Ubergeeky, or Sysadmin. JS […]

  3. Maximus December 20, 2007 4:52 am

    I would like to see a continuation of the topic

  4. apex December 22, 2007 10:46 am

    hey maximus, what kind of stuff are you looking for? Maybe I can help you out!

Leave a comment

Please be polite and on topic. Your e-mail will never be published.

What I am Reading

PHP and MySQL Web Development (3rd Edition) (Developer's Library)
Web Standards Creativity: Innovations in Web Design with XHTML, CSS, and DOM Scripting
Failed States: The Abuse of Power and the Assault on Democracy

Twitter

Flickr Stream

What do Thongs, Models, and iPhoto Libraries have in common?Elite CompanySpeaking of Accosted!