Skip to content

Instantly share code, notes, and snippets.

View rku4er's full-sized avatar
🌍
Working from home

Roman K rku4er

🌍
Working from home
  • Ukraine
View GitHub Profile
@rku4er
rku4er / WinUSBFromLinux.md
Created March 9, 2020 03:13 — forked from kuznero/WinUSBFromLinux.md
How to make Windows 7 USB flash install media from Linux?

How to make Windows 7 USB flash install media from Linux?

StackOverflow

  • Install ms-sys - if it is not in your repositories, get it here. Or alternatively, make sure lilo is installed (but do not run the liloconfig step on your local box if e.g. Grub is installed there!)
  • Check what device your USB media is assigned - here we will assume it is /dev/sdb. Delete all partitions, create a new one taking up all the space, set type to NTFS (7), and remember to set it bootable:
# cfdisk /dev/sdb
or fdisk /dev/sdb (partition type 7, and bootable flag)