[ECUTS] How to set the attribute of USB driver in ECUTS to read-only

Updated Oct 8, 2024

Environment

System

  • ECU Test System

In ECUTS, there is an USB driver to store configuration files. The attribute of the USB driver should be read-only. I encountered an issue that the attribute of the USB driver is writable. In this KB, I will explain how to set attribute of an USB driver to read-only.
 

1. Navigate to Command window and right click, select "Run as Administrator".
image.png
2. Input DISKPART and press Enter. It will go to diskpart.exe and the welcome information is displayed.
image.png
3. Input "list disk" and press Enter. All disks will be listed as below picture.
image.png
4. Select the disk you want to change attribute by command "select disk x". In this example, it is "select disk 1".
image.png
5. Input "detail disk" to check the attributes. You can find read-only attribute is NO in this example.
image.png
6. Set the read-only attribute to YES  by the command "attributes disk set readonly".
image.png
7. After the attribute is changed, you can see the read-only attribute is YES.
image.png



 

After that, you can change the read-only attribute to YES.