WD Community

How do you check filesystem of USB attached drive via SSH?

I want to do a filesystem check for the USB attached drive. the USB filesystem is HFS+

can I do that via SSH ?

Secure Shell Protocol ( SSH ) ??

Wonder about the answer too - Just wanted to be sure i was up to speed on the question.

I have only tried Disk Utility in the past for HFS+

no problem using disk utility either. i would need to unplug the array and plug it into the macbook to do that. i think fsck may work to check the integrity of the filesystem and for corruption, thought i could do that from terminal in an ssh session … it would be quite convenient for me because my NAS and USB storage are stored in furniture (not sitting on a desktop).

after recently completing my first full NAS backup on the new RAID 1 array, i did try to do a disk utility on the array and got exit code 0 (good). but something notable that’s worth mention – i turned off the enclosure and removed both drives, mounted each one in a ‘dumb’ enclosure and ran a disk utility on each disk.

that wasn’t such a good idea because it messed up the partition map of the RAID 1 array and after putting everything back together, the NAS would not recognize the filesystem of the USB enclosure. luckily, i was able to do a diskutil repairDisk /dev/disk2 on the array and that fixed the partition map.

lesson: don’t run disk utility on independent disks from a RAID array. i have hardware RAID, so the status indicators I have to work with are the lights on the Mercury Elite Pro enclosure.

Support for Western Digital Hard Drives | Western Digital

Still Need Help?

Reach out to Support for more assistance.

Sign in to Your Support Account

Get up-to-date information about your products.

Western Digital Business Portal

Unlock benefits and tools for your business such as enterprise support, pricing and rebate tools, marketing, loyalty, rewards, and more.