From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
|
在Linux中检测和命名驱动器的顺序不是固定的。在NI Linux Real-Time cRIO上,安装到系统的第一个USB将映射到/ u目录,第二个USB将映射到/ v目录,以此类推。如果随时间移除多个USB驱动器或使用USB集线器,则可能会改变USB驱动器映射到的目录,因为USB驱动器可能以不同的顺序安装到操作系统中。
有许多不同的解决方法可以使用。以下列出了National Instruments推荐的两种。
1. 您可以使用在USB上保存的文本文件或INI文件,以识别驱动器。例如,您可以比较每个设备上保存的文本文件,以确定哪个设备是哪个设备。
2. 如果将文件放在USB上不可取,您可以使用blkid实用程序检测驱动器的UUID或分区标签。这不是默认安装在cRIO上,但可以使用opkg管理器安装。调用blkid -U <UUID>将检查设备是否匹配特定的UUID号。在Linux RTOS上使用opkg安装/配置软件包(Install/Configure a Package using opkg on Linux RTOS)是关于如何使用opkg的分步指南。
|