Issues running off drives which present as SCSI?

Started by eponymous, April 25, 2021, 09:46:53 PM

Previous topic - Next topic
Hi,

I've installed OPNsense to an ADI board (Netgate SG-2400) with an eMMC device on it. Everything seems to be working fine.

The drive looks to be attached behind a USB controller and presents itself to the system as a SCSI device (/dev/da0).

I've noticed a couple of messages scrolling past at boot:

camcontrol: ATA ATA_IDENTIFY via pass_16 failed
camcontrol: ATA ATAPI_IDENTIFY via pass_16 failed


I presume it's just trying to get more details from the disk but since it's not an ATA disk it's failing. Will this cause any problems in the long run?

Also, I've been looking over the SMART plugin and was wondering if it will actually work for this device?

Looking at: https://github.com/opnsense/plugins/blob/master/sysutils/smart/src/opnsense/scripts/OPNsense/Smart/detailed_list.sh it would seem that the command is hard set to:

/usr/local/sbin/smartctl -jH /dev/${DEV}

The command needed for this device is: smartctl -d scsi -H /dev/da0
(https://forum.netgate.com/topic/92679/emmc-on-2440-smart-status-unknown-in-widget)

Thanks for any advice you can give.