Now to use it, restart your PC, and boot from the USB drive. echo 'If you see this, you have successfully booted from USB :)' Write this into the file, replacing with the UUID you copied down in step 2. sudo grub-install -target=i386-pc -boot-directory='//boot' /dev/sdXĬreate a GRUB config file in the USB drive folder boot/grub/ with the name grub.cfg.
dev/sdb, not /dev/sdb1) and replace with the folder where you mounted the USB drive (which could be like /media//). In the below command, replace /dev/sdX with the device (e.g. Go to the USB drive, and if the folder named boot has uppercase characters, make them all lowercase by renaming it. Mount your Windows ISO or DVD and copy all its files to the USB drive. Copy the UUID somewhere as you will need it. In GParted, right click the USB partition and select Information. Using GParted, rewrite the USB drive's partition table as msdos, format it as NTFS, and then 'Manage flags' and add the boot flag. Install GParted, GRUB, 7z, and NTFS on Ubuntu with: sudo apt-get install gparted grub-pc-bin p7zip-full ntfs-3g
Even other Linux distros as long as GParted and GRUB are installed.