VMware Communities
cookieme
Enthusiast
Enthusiast

Can't run SMART tests on external USB drives

I'm trying to run smartctl -I /dev/sda and similar commands to query SMART status on my external USB drives.

On a Linux host I would simply run: echo "0xpid:0xvid:u" | sudo tee -a /sys/module/usb_storage/parameters/quirks

Which would disable UAS and allow me to run any smartctl commands.

When I try to do this in a Vmware Fusion linux vm, UAS is disabled as shown in the output below:

lsusb -t
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
|__ Port 1: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 5000M

However the drive is not visible in the linux OS, i.e. lsblk or fdisk don't show the /dev/sda device. 

I attempted to set the USB quirk in the VMX file instead like this usb.quirks.device0 = "0xvid:0xpid u" but it didn't work.

How can I run SMART commands against an external USB drive connected to my linux VM?

Thanks.

0 Replies