Thank you for purchasing through links and ads on this site.
OWC / MacSales.com...
diglloyd B&H Deal Finder...
Buy other stuff at Amazon.com...
Upgrade the memory of your 2018 Mac mini up to 64GB
877-865-7002
Today’s Deal Zone Items... Handpicked deals...
$368 $168
SAVE $200

$449 $359
SAVE $90

$999 $699
SAVE $300

$799 $299
SAVE $500

$249 $234
SAVE $15

$290 $250
SAVE $40

$1149 $799
SAVE $350

$1199 $999
SAVE $200

$1299 $1099
SAVE $200

$1799 $1799
SAVE $click

$1799 $1799
SAVE $click

$2799 $2499
SAVE $300

$3899 $3899
SAVE $click

$18599 $17099
SAVE $1500

$369 $239
SAVE $130

$764 $399
SAVE $365

$600 $450
SAVE $150

$1499 $649
SAVE $850

$1499 $649
SAVE $850

$7995 $7495
SAVE $500

$1597 $1097
SAVE $500

$420 $170
SAVE $250

$700 $700
SAVE $click

$2999 $2399
SAVE $600

$1699 $1399
SAVE $300

$169 $99
SAVE $70

$1498 $998
SAVE $500

$200 $150
SAVE $50

$370 $300
SAVE $70

$999 $949
SAVE $50

$1099 $999
SAVE $100

$580 $340
SAVE $240

OWC Envoy Pro EX SSD
Blazingly fast Thunderbolt 3 SSD!

Up to 4TB capacity, USB-C compatible.

USB-C model also available


Great for travel or for desktop!

How to Verify All Mounted Volumes

Last updated 2013-01-08 - Send Feedback
Related: backup, command line, how-to, software

This tip presumes the reader is comfortable with using the command line in Terminal, including the use of commands like 'cd', 'ls', 'sudo', etc.

A workstation used for serious work will generally have at least three volumes:

  • Boot volume.
  • Master volume.
  • Time Machine.
  • Catalogs (e.g., a dedicated volume for Lightroom catalogs on a fast SSD).
  • Additional volumes such as backups.

My main Mac Pro has the following volumes:

Archive1, ArchiveP, Boot.int, BootClone, Master, MasterClone, Scratch, Work, a.Boot, b.Boot, diglloyd, tm, xfer.Archive1, xfer.ArchiveP, xfer.Boot, xfer.Master

The issue

It’s a good idea to verify volumes regularly to check for file system damage, especially prior to making important backups. While rare, file system damage is one way to lose data.

But with two or more volumes, it can be tedious to click on each one in Apple’s Disk Utility to verify, waiting for completion.

Verifying all volumes with a command line script

It is possible to verify the file system on all mounted volumes using one command line (walk away and have some coffee, or just continue work on something else).

Save these scripts in order to run them (“verifyVolumes.sh” or similar), you’ll also need to make them executable.

Verifying all mounted volumes

This shell script collects all volume names, then verifies each in turn.

#!/bin/bash
# ©2013 DIGLLOYD INC / MacPerformanceGuide.com
#
echo "Verifying the file system on all mounted volumes..."
for volume in $(ls /Volumes | sort)
do
echo "Volume: $volume"
diskutil verifyVolume $volume
echo ""
done

Verifying specific volumes

This shell script verifies an explicit list of volumes in the volumesToVerify variable as shown. Simply modify the list of volume names to suit your own system.

#!/bin/bash
# ©2013 DIGLLOYD INC / MacPerformanceGuide.com
#
volumesToVerify="Boot Master Archive1 ArchiveP BootClone MasterClone"
echo "Verifying the file system on $volumesToVerify"
for volume in ${volumesToVerify}
do
echo "Volume: $volume"
diskutil verifyVolume $volume
echo ""
done 
OWC Thunderbolt 3 Dock
Ideal for any Mac with Thunderbolt 3


Dual Thunderbolt 3 ports
USB 3 • USB-C
Gigabit Ethernet
5K and 4K display support plus Mini Display Port
Analog sound in/out and Optical sound out

Works on any Mac with Thunderbolt 3

Example output

Once the verify is done as per above, a glance is sufficient to see if any issues are present. In this case, there were no issues found by diskutil.

Automating the verification followed by a glance at the output is a huge time-saver.

diglloyd:~ lloyd$ verifyMountedVolumes.sh 
Verifying the file system on all mounted volumes...
Volume: Archive1
Started file system verification on disk2s4 Archive1
Checking file system
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume Archive1 appears to be OK
Finished file system verification on disk2s4 Archive1
Volume: ArchiveP
Started file system verification on disk2s5 ArchiveP
Checking file system
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume ArchiveP appears to be OK
Finished file system verification on disk2s5 ArchiveP
Volume: Boot.int
Started file system verification on disk1s2 Boot.int
Checking file system
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume Boot.int appears to be OK
Finished file system verification on disk1s2 Boot.int
Volume: BootClone
Started file system verification on disk2s2 BootClone
Checking file system
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume BootClone appears to be OK
Finished file system verification on disk2s2 BootClone
Volume: Master
Started file system verification on disk5 Master
Checking file system
Performing live verification
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume Master appears to be OK
Finished file system verification on disk5 Master
Volume: MasterClone
Started file system verification on disk1s3 MasterClone
Checking file system
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume MasterClone appears to be OK
Finished file system verification on disk1s3 MasterClone
Volume: Scratch
Started file system verification on disk10 Scratch
Checking file system
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume Scratch appears to be OK
Finished file system verification on disk10 Scratch
Volume: Work
Started file system verification on disk6 Work
Checking file system
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume Work appears to be OK
Finished file system verification on disk6 Work
Volume: a.Boot
Started file system verification on disk7s2 a.Boot
Checking file system
Performing live verification
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume a.Boot appears to be OK
Finished file system verification on disk7s2 a.Boot
Volume: b.Boot
Started file system verification on disk9s2 b.Boot
Checking file system
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume b.Boot appears to be OK
Finished file system verification on disk9s2 b.Boot
Volume: diglloyd
Unable to find disk for diglloyd
Volume: tm
Started file system verification on disk2s3 tm
Checking file system
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking multi-linked directories
Checking volume bitmap
Checking volume information
The volume tm appears to be OK
Finished file system verification on disk2s3 tm
Volume: xfer.Archive1
Started file system verification on disk8s7 xfer.Archive1
Checking file system
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume xfer.Archive1 appears to be OK
Finished file system verification on disk8s7 xfer.Archive1
Volume: xfer.ArchiveP
Started file system verification on disk8s9 xfer.ArchiveP
Checking file system
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume xfer.ArchiveP appears to be OK
Finished file system verification on disk8s9 xfer.ArchiveP
Volume: xfer.Boot
Started file system verification on disk8s3 xfer.Boot
Checking file system
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume xfer.Boot appears to be OK
Finished file system verification on disk8s3 xfer.Boot
Volume: xfer.Master
Started file system verification on disk8s5 xfer.Master
Checking file system
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume xfer.Master appears to be OK
Finished file system verification on disk8s5 xfer.Master
OWC Thunderblade Thunderbolt 3 SSD

Blazing fast, up to 16TB.

YEE HAH!



√ No more slow and noisy hard drives!
OWC Accelsior 4M2 PCIe SSD
6000 MB/sec!
Mac or PC.


Ideal for Lightroom, Photoshop, video.
Capacity up to 16TB!
Save Big $$$$ on Memory for 2019 Mac Pro

Up to 65% better pricing than Apple

Lloyd recommends 32GB RDIMM modules for most users (more expensive LRDIMMS are for 512GB or more).



Deals Updated Daily at B&H Photo
View all handpicked deals...

QNAP TS-253Be 2-Bay NAS Enclosure
$449 $359
SAVE $90

diglloyd.com | Terms of Use | PRIVACY POLICY
Contact | About Lloyd Chambers | Consulting | Photo Tours
Mailing Lists | RSS Feeds | Twitter
Copyright © 2020 diglloyd Inc, all rights reserved.
Display info: __RETINA_INFO_STATUS__