L
L
LinuxOtpusti2021-09-11 01:39:25
linux
LinuxOtpusti, 2021-09-11 01:39:25

How to burn Windows to a Linux flash drive?

I have a Lenovo s330 laptop. Linux Mint 20.1 installed. There is an MSDN image of Windows 10 Pro. Task: write Windows from Linux to a USB 3.0 flash drive.
Problem: despite the fact that the flash drive is visible in the BIOS, booting from it does not happen in any way.
What has already been done: tried various ways to write to a USB flash drive (including from a computer on Windows via Rufus), various programs such as WoeUSB, UNetbootin, etc .; formatting the flash drive in NTFS, GPT / MBR partition, in BIOS all settings in terms of Legacy or EUFI, security boot, etc. are checked, LAN Boot (bug lenovo) is not disabled; dozens of different images were also tested, the result is unchanged.
The most interesting thing is that the flash drive with the recorded Linux loads without any problems.
So, what could be the problem?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
rPman, 2021-09-11
@rPman

In UEFI mode, it is enough to copy the contents of the ISO image to a USB flash drive formatted with FAT32, and everything should work, since the BIOS will look for the EFI directory in the root of the flash drive and then boot ...
But in legacy mode, when a boot sector is needed, nuances may arise. For example, on older machines, I could not boot from flash drives larger than 8GB. There may also be problems if the flash drive is connected via a card reader (for example, it is a memory card).
In special cases (when the BIOS has a menu item something like boot from usb cdrom), it was possible to create a working bootable flash drive by simply copying the image sector-by-sector using dd, so try it.
ps you can boot into windows installer by booting into linux grub first (you say there are no problems with linux), press C to enter grub command mode

ls(hd0,1)/

will show the contents of disk 0 partition 1, sorting through the numbers, find the partition of the flash drive where the windows installer is deployed
set root=(hd0,1)
chainloader +1
boot

pps, you can carry out the first stage of installation, before the first reboot, in a virtual machine by connecting a physical disk as a virtual disk, this always worked 100% and allows you not to make a windows boot disk at all, i.e. enough iso image

V
ValdikSS, 2021-09-12
@ValdikSS

https://github.com/ValdikSS/windows2usb

S
shrug228, 2021-09-12
@shrug228

  1. WoeUSB. Bad way: long and not very high quality.
  2. D.D. The good old dd from under the terminal probably never fails: sudo dd if= path to the iso image of windows of= flash drive (for example, / dev / sdc) status = progress
    In this case, the flash drive can be viewed in sudo fdisk -l or GParted , and the image of the windows itself is simply drag'n'dropped into the terminal so as not to bother with the path to the image.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question