How to burn a Windows .iso to a USB device? [duplicate]
I want to burn a Windows ISO to a USB device in Ubuntu. How do I do this? I know how to burn a Ubuntu ISO into a USB device, but with a Windows ISO it’s not the same.
@jazzpi And he also made it Windows specific under the pretext that in the «Answers» somebody mentions NTFS.
10 Answers 10
Or you could try a bit-by-bit copy:
- Insert the USB device and then open Disk Utility (in 10.10 and older, System -> Administration -> Disk Utility).
- Select the USB device from the list in the left of the program and detect where it was mounted: /dev/sd[1 letter][optionally 1 number] . For example, /dev/sdc or /dev/sdc1 .
- Make sure the USB device is unmounted (not safely removed, but unmounted) If it is mounted you can unmount it:
sudo umount /dev/sd[1 letter][optionally 1 number]
sudo dd bs=4M if=[ur .iso] of=/dev/sd[that 1 letter]
sudo dd bs=4M if=windows7.iso of=/dev/sdc
And wait for it to finish. (The «bs=4M» — bit is optional, just makes it faster.)
Another way I detect which driver is it: I write «sudo dd if=kubuntu.iso of=/dev/sd» and press Tab a few times before inserting the USB, than I insert the USB stick and press Tab a few times again, and detect which one was added, for example sdc and sdc1 appeared, than I add c at the end and press enter.
@LilianA.Moraru UNetbootin allows you to create bootable Live USB drives for Ubuntu, Fedora, and other **Linux distributions** without burning a CD. . Have you ever succeeded to make a windows usb with it?
If you’ve got a slow USB drive, you can check the current state of dd by sending it a USR1 kill msg: sudo kill -USR1 $(pidof dd) from another terminal. It will then print its status in its own terminal.
You can add a status=progress option to dd to see progress output in real time. Also, you can see the list of all drives by running lsblk and use it to find out the identifier of your USB flash drive.
- Insert the USB device, then run gparted.
- Select the USB device from the list near the upper-right corner of the GParted window and detect where it was mounted: /dev/sd[1 letter] (mine was /dev/sdc ).
- Make sure the USB device is unmounted (right-click and select unmount).
- sudo dd if=[PATH TO YOUR .iso FILE] of=/dev/sd[THAT 1 LETTER]
You must run dd as su or sudo. It’s worth mentioning that gparted requires su as well, but will typically use gksudo to prompt for the password.
This means you can lock gparted to the launcher on a persistent liveboot USB for field diagnostics.
didn’t work for me just using /dev/sdc[letter], also needed to specify the partition like /dev/sdb1 for dd to copy. however, usb booting won’t work
Why are you formatting it to NTFS? When you dd to the block device, it’s going to wipe out whatever formatting you have there.
Doing the direct dd copy (on Ubuntu 14.04) with a Win10 iso was a little surprise for me, as it created an UDF file system on the flash (I was expecting it to be the iso file system). It didn’t boot on my Lenovo P50, though (but I have to admit I might have too restrictive boot settings in the BIOS :)) Using winusb by this article eventually did the trick.
If you boot with UEFI (not BIOS or UEFI with BIOS compatibility mode (a.k.a. CSM)) all you’ll need is GParted and a file manager.
The ISO must be configured for UEFI boot for this to work. I’ve successfully done this with both Windows 8.1 and Ubuntu 14.04, but I can’t vouch for any other OS. (Edit: I just tried this with Windows 10 without success. Don’t know why, but WinUSB worked so I didn’t investigate further.)
This is what I do to create a bootable USB drive for UEFI firmware:
- Create a GPT partition table on your USB drive. In GParted, chose «Device» and then «Create partition table. «. Choose gpt in the dropdown.
- Format a partition on the USB drive to FAT32 using GParted. All UEFI compliant firmwares must support FAT12, FAT16 and FAT32, so any of these should be fine, but NTFS will not work.
- Mount the USB drive like you would any other external storage so you can access the filesystem on the partition you created.
- Mount the ISO you wish to add to the USB drive so you can access the files in there.
- Now, when you have access to both the ISO and the USB drive as filesystems in your file manager (Nautilus or whatever) just copy and paste all files in the ISO to the USB drive.
- Add the ‘boot’ flag to the partition you’ve created and added the files to. In GParted, right click the partition, choose «manage flags» and then check the «boot» option.
(While testing this I couldn’t mount the USB drive anymore after setting the boot flag. I don’t know why, but GParted could still see it and the end result was still a bootable USB drive, so I guess it doesn’t really matter.)
Once again: Please note that for this to work, your computer’s firmware must be UEFI compliant and the ISO must be ready for UEFI boot.
If you find an EFI directory in the ISO that’s usually a good sign.
To see whether you’re currently using UEFI boot, run sudo efibootmgr -v in a terminal. If it lists a number of boot options you’re good to go. If you’re using BIOS compatibility mode you’ll see something like this:
Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables. Try 'modprobe efivars' as root.
Also, I don’t think Ubuntu will work with Secure Boot enabled, so you’ll have to disable that to be able to use UEFI boot with Ubuntu.