Support Center > Search Results > SecureKnowledge Details
'emergendisk' command fails with error "integer expression expected" Technical Level
Symptoms
  • User runs 'emergendisk' command, selects the USB device, clicks on 'OK' to format it.
    After typing "Yes", the following error appears:

    Error! see /var/log/emergendisk.log for more information.
    error on the emergendisk.log
    ++ awk '{printf "%d\n", $4/1024}'
    + logSize=ZZZ--------fyi--------------This is line 221*
    + '[' NNN -lt XXX/4 ']'
    /bin/emergendisk: line 221: [: XXX/4: integer expression expected
    + echo 'Formatting device'
    + '[' 1 '!=' 0 ']'
    + parted /dev/sdb rm 1
    
Solution
Note: To view this solution you need to Sign In .