Wednesday, 10 February 2016

Running dd on ESX

Ever tried to run dd on ESX and failed?
Did you see this error ?

dd if=/dev/zero of=/vmfs/devices/disks/mpx.vmhba1:C0:T3:L0 bs=512 count=10
dd: can't open '/vmfs/devices/disks/mpx.vmhba1:C0:T3:L0': Function not implemented


Include "conv=notrunc" in your dd command and that should work for you.

dd if=/dev/zero of=/vmfs/devices/disks/mpx.vmhba1:C0:T3:L0 bs=512 count=10 conv=notrunc
10+0 records in
10+0 records out

4 comments:

  1. Thank you! The stupid "dd can't open ... Function not implemented" message made it appear that that device could not be opened for writing. Thank you!

    ReplyDelete
  2. 5 years later. Still valid for ESXi 7.x series :) Thank You. Dumped internal SD card to external FCoE boot LUN before update.

    ReplyDelete
  3. It's really worked, thank you!!! setupid vmware

    ReplyDelete
  4. 8 years later, 6.7, "invalid argument 'notrunc' to 'conv'"

    ReplyDelete