I had recently made one UEFI Windows bootable USB, but in Devuan Linux. You need to format the USB drive with gpt label and FAT32 file system. Since, FAT has some size restrictions, some tool (wimlib) was used to compress the the contents. In brief - mount the iso as read only; copy the contents, use wimlib tool to compress; then copy to the FAT32 formatted USB drive. Note that you've to install wimlib in FreeBSD.Has anyone successfully created a Windows 10 bootable USB0stick using FreeBSD?
I have tried both "dd if=W10.iso of=/dev/da0" and "dd if=W10.iso of=/dev/da0 bs=1M conv=sync" but both did not work.
The Windows Imaging format (WIM) file in that download, which contains the compressed files that the Windows Setup program uses for installing the new version, is a little over 4.5 GB in size, which is well beyond the 4 GB maximum file size for a USB flash drive formatted using the FAT32 file system. That extra-large file would be fine for a drive formatted using NTFS, but modern UEFI-based hardware requires a FAT32 drive to boot for a clean install of Windows.
OK. I tried the first method on a 15GB USB drive for UEFI booting of Windows 10. It works!This is not Linux Forums. Which one of your solutions actually works in FreeBSD?
:~% doas pkg install p7zip wimlib
cd ~/windows; 7z x ~/Downloads/Win10_20H2_English_x64.iso
cd sources; doas wimlib-imagex optimize install.wim --solid
doas
is not used, perhaps run this as root su
or sudo
) - This took a very long time (30 minutes or so) in my poor 2012 Sandy bridge desktop. /dev/da0
with respective USB drive device file.:~% doas gpart destroy -F /dev/da0
:~% doas gpart create -s GPT /dev/da0
:~% doas gpart add -a 4k -t ms-basic-data /dev/da0
:~% doas newfs_msdos -F 32 -L Windows10 /dev/da0p1
:~% doas mount -t msdosfs /dev/da0p1 /mnt
:~% doas cp -R ~/windows/ /mnt/
:~% doas umount /mnt
:~% doas sync
# gpart destroy -F da0
# gpart create -s GTP da0
# gpart add -a 4k -t ms-basic-data da0
# newfs_msdos -F 32 -L Windows10 /dev/da0p1
# mount -t msdosfs /dev/da0p1 /mnt
# cp -R ~/windows/ /mnt/
# umount /mnt
WTF is wimsplit?Not sure what exactly `wimlib-imagex` does, I usually use just `wimsplit install.wim install.swm 2048 && rm install.wim`, it's like 10 seconds for me (on new pc, with fast cpu and nvme though).
Who has a DVD burner anymore? Why doesn't Microsoft just provide a usb installer? It's so ridiculous.
I've found thet partition type 'ms-basic-data' is not supported if your scheme is "MBR", changed it to "fat32", so the command isIt took 22,5 minutes (1348.67 seconds) for me. On a G1 Sniper Z97 with a 4 core i5-4690 CPU.
For other users, to format an USB under FreeBSD 12.1:
Code:# gpart destroy -F da0 # gpart create -s GTP da0 # gpart add -a 4k -t ms-basic-data da0 # newfs_msdos -F 32 -L Windows10 /dev/da0p1 # mount -t msdosfs /dev/da0p1 /mnt # cp -R ~/windows/ /mnt/ # umount /mnt
(I am in the middle of creating the USB.)
My USB stick was at '/dev/da1', so I've changed the geometry name.gpart add -a 4k -t fat32 da1
It is part of wimlib: https://wimlib.net/WTF is wimsplit?