-
×InformationWindows update impacting certain printer icons and names. Microsoft is working on a solution.
Click here to learn moreInformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center.
-
×InformationWindows update impacting certain printer icons and names. Microsoft is working on a solution.
Click here to learn moreInformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center.
- HP Community
- Desktops
- Desktop Operating Systems and Recovery
- Install HP ThinPro on T510 - ERROR Unable to mount USB KEY
Create an account on the HP Community to personalize your profile and ask a question
12-26-2021 05:43 AM
@itsmyname --
The problem is not in the code or IF statement.
The problem was in settings.ini that does not exist when I mount USB Key on /mnt/
It is necessary to mount usb key on /mnt/usbkey/
And all is running.
12-26-2021 09:05 AM - edited 12-26-2021 09:07 AM
@McAneyth -- The problem is not in the code or IF statement.
I disagree. The coding-error causes the execution of the code to STOP -- to not completely do what the code was written to do, but to issue a second error-message.
Compare to driving your automobile over a nail, and the nail gets embedded in your tire. Later, when the tire goes "flat", you cannot drive to your destination. The first problem (driving over the nail) causes the second problem (undriveable). In your case, the syntax-error causes your issue.
First message: Unary operator expected
Second message: Image write mode is disabled
12-26-2021 09:55 PM - edited 12-26-2021 10:07 PM
@Itsmyname -- Ok
The problem was not in the code, but in the mounted point and settings.ini that initialise enableWriteMode = 1.
When I used /mnt/ the settings.ini does not loaded. File was not present and the variable : $enableWriteMode was not initialisated. It produces the first message.
The code uses /mnt/usbkey/settings.ini and /mnt/usbkey/images/.
When I used /mnt/usbkey/, the correct path to mount init.sh. settings.ini is correctly loaded and $enableWriteMode was correct and produced no error, the installation is Ok.
- « Previous
-
- 1
- 2
- Next »
Didn't find what you were looking for? Ask the community