«

»

Feb 03

Clone ESXi USB Boot Device

So, I recently had to clone an ESXi (4.1) USB boot disk, with the simple use of a Linux Live CD and a copious amount of dd’ing’ within 20 minutes I have a complete clone from one USB stick to another, simples.

Steps to complete this:

  1. Download Linux Live CD (Damn small linux etc)
  2. Either burn the CD and boot from it, or boot a VM in vmware workstation from it
  3. Plug the ORIGINAL usb device in and confirm its device address through dmesg (should be /dev/sda)
  4. Plug the NEW usb device in and confirm its device address through dmesg (should be /dev/sdb)
  5. Use fdisk to remove all partitions on the NEW usb (don’t forget, that should be /dev/sdb)
  6. Use dd to block copy from the ORIGINAL to the NEW device (dd if=/dev/sda of=/dev/sdb)
  7. Use NEW usb device to boot ESX server

And you’re done!