Getting error of "HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device SECURITY_UNLOCK: Inappropriate ioctl for device" when trying to change Junos to 20.X.e.g.
Preserve Last Known good BIOS..
Preserving Last Known Good
WARNING: No Last Known Good BIOS file
Installing MTRE software /tmp/pkg-dUI/unpack/install///vmhost/vmhost-x86_64-20.2R2-S3-20210303_2101_builder.img.gz on /dev/ as Primary
Proceeding with installation ...
sh /tmp/pkg-dUI/unpack/install///scripts/mk-mtre-partition.sh /dev/ P
Setting JROOTB_SIZE_MAX=2048
security_password: "PaSsWoRd"
/dev/:
Issuing SECURITY_DISABLE command, password="PaSsWoRd", user=user
/dev/ listed in /proc/mounts, attempting to unmount...FAILED
Device /dev/ partition failed
Install aborted
Restore Last Known good BIOS..
Restoring Last Known Good
Install failed
1
ERROR: Upgrade failed
HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device SECURITY_UNLOCK: Inappropriate ioctl for device
... upgrade failed.
Upgrade failed error log with "HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device SECURITY_UNLOCK: Inappropriate ioctl for device" when trying to change code to 20.X.
This is expected issue as MX304 is not supporting 20.X, minimum software is 22.X.
Refer PR 1536838 [Confidential] - : JDI-RCT:M/Mx : Installation of image failed due to ? HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device SECURITY_UNLOCK: Inappropriate ioctl for device ?