#C++ code to create a bootable USB stick.
Step 1: Create required partition on the USB to boot into. (Use GParted:- http://gparted.org/) Step 2: Run the code. Step 3: Give the USB device location as input to the code(Eg: /dev/sdb) Step 4: Give the ISO file's location as input to the code(For UBUNTU iso image file: https://www.ubuntu.com/) Step 5: Wait for a few minutes and your Bootable USB will be created