Create ESXi 4.0 USB stick with dd on Linux


These are the steps to create ESX 4.0 USB stick:

mount -o loop VMware-VMvisor-Installer-4.0.0.update04-504850.x86\64.iso /mnt/
cp /mnt/image.tgz .
tar xvzf image.tgz
bunzip2 usr/lib/vmware/installer/VMware-VMvisor-big-4.0.0-504850-x86_64.dd.bz2
dd if=usr/lib/vmware/installer/VMware-VMvisor-big-4.0.0-504850-x86_64.dd of=/dev/sdb
rm -r usr
umount /mnt
vmware