Pseudocode but originally developed for Windows 7 iso file but applied for Windows 8 in the thread How to create bootable Windows 8 iso image in Linux? but it does not work with Windows 10 iso
# https://rwmj.wordpress.com/2010/11/04/customizing-a-windows-7-install-iso/
# https://unix.stackexchange.com/a/312477/16920
$ dd if=../en_windows_10_x64_dvd.iso \
of=boot.img bs=2048 count=8 skip=734
$ mkisofs -o ../new-win.iso -b boot.img -no-emul-boot -c BOOT.CAT \
-iso-level 2 -udf \
-J -l -D -N -joliet-long -relaxed-filenames .
Unsuccessful output when run on Windows 10 image
dd if=/home/masi/Downloads/en_windows_10_multiple_editions_version_1511_x64_dvd.iso of=/home/masi/Downloads/boot.img bs=2048 count=8 skip=734
8+0 records in
8+0 records out
16384 bytes (16 kB) copied, 0.000392973 s, 41.7 MB/s
Some of the following fields have changed for the iso file used in dd
bs=2048
count=8
skip=734
How can you study which field values you can use for Windows 10 iso?
OS: Debian 8.5 64 bit
Hardware: Asus Zenbook UX303UA
Linux kernel: 4.6 of backports
Related threads: How to create bootable Windows 7 iso image in Linux?, Customizing a Windows 7 install ISO
Motivation: I need Windows 10 to use Canon P-150 duplex scanner, but when I started my Windows, I got Error 0xC0000428 because Windows update has again broken things there and I use Windows otherwise so rarely; and I have no spare Windows left to make bootable media
Best Answer
I tried the Win7 solution described by Microsoft on a Windows machine:
https://www.microsoft.com/en-us/download/windows-usb-dvd-download-tool
and obtained the
so went to Debian Stretch 9 to try to build the Windows 10 bootable USB using a e5.onthehub.com college/school ISO.
Using
dd
absolutely doesn't work for Windows 10. This only works for Linux OSes. Use:Note: Never try write to
/dev/sdX1
whereX={a,b,c or d}
and always check you are not overwriting your hard disk which is usually/dev/sda
or/dev/sdb
!For Windows 10 you can use WoeUSB but not from the apt/yum repos. These ones are obsolete, at least for Debian 9. So instead use:
Then follow the instructions at the end of:
https://github.com/slacka/WoeUSB
You must have all the prerequisites such as gparted and so forth installed first.
I also found at the end of the process that I must run woeusb with sudo. So you just use:
and hey presto it just works brilliantly. In my case my harddisk was
/dev/sda
and my USB drive was/dev/sdb
so I wrote the ISO to/dev/sdb
(again be careful, you don't want to overwrite your OS by accident). I then installed it on a military class MSI motherboard with 2TB hard disk attached with no fast boot options inside the BIOS and it just works. I turned on absolutely every UEFI option first to get it into the right state.I also had problems at install time, with the system hanging forever when using a Gmail email account for login and when the internet cable was connected at the second restart of the machine (during the install process). If you have this issue, disconnect internet, restart machine, let generic account be built, login, restart with internet cable