linux:win-boot-usb
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| linux:win-boot-usb [2019/05/12 17:35] – created Wulf Rajek | linux:win-boot-usb [2023/05/29 11:55] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Create custom Win USB install ====== | ||
| + | |||
| + | < | ||
| + | sudo add-apt-repository ppa: | ||
| + | sudo apt update | ||
| + | sudo apt install woeusb | ||
| + | sudo add-apt-repository --remove ppa: | ||
| + | sudo apt update | ||
| + | </ | ||
| + | |||
| + | or build manually from git: | ||
| + | < | ||
| + | git clone https:// | ||
| + | cd WoeUSB/ | ||
| + | ./ | ||
| + | sudo apt-get install devscripts equivs gdebi-core | ||
| + | mk-build-deps | ||
| + | sudo gdebi woeusb-build-deps_*.deb | ||
| + | dpkg-buildpackage -uc -b | ||
| + | sudo gdebi ../ | ||
| + | </ | ||
| + | |||
| + | identify USB stick' | ||
| + | < | ||
| + | lsblk and/or | ||
| + | sudo blkid | ||
| + | </ | ||
| + | |||
| + | Create adjustable USB stick from Windows ISO file | ||
| + | < | ||
| + | sudo umount /dev/sdb1 | ||
| + | |||
| + | sudo woeusb --target-filesystem NTFS --device win_10.iso /dev/sdb | ||
| + | </ | ||
| + | or use | ||
| + | < | ||
| + | woeusbgui | ||
| + | </ | ||
| + | |||
| + | https:// | ||
| + | |||
| + | |||
| ====== Create bootable win7 USB drive in linux ====== | ====== Create bootable win7 USB drive in linux ====== | ||
| + | |||
| + | https:// | ||
| Plug in USB Drive | Plug in USB Drive | ||
| check the device name using '' | check the device name using '' | ||
| unmount the drive if it was mounted automatically while /dev/sdX is the device name shown in dmesg | unmount the drive if it was mounted automatically while /dev/sdX is the device name shown in dmesg | ||
| - | < | + | < |
| Partition using fdisk: | Partition using fdisk: | ||
| Line 33: | Line 77: | ||
| Add Grub bootloader: | Add Grub bootloader: | ||
| < | < | ||
| - | sudo mount /dev/sdX1 /mnt | + | #MBR instructions (note: EFI does not support NTFS!) |
| + | sudo mkdir -p /mnt/usb | ||
| + | sudo mount /dev/sdX1 /mnt/usb | ||
| + | sudo grub-install --target=i386-pc --boot-directory="/ | ||
| - | cat <<EOF >/ | + | cat <<EOF >/mnt/usb/ |
| default=1 | default=1 | ||
| timeout=15 | timeout=15 | ||
| Line 45: | Line 93: | ||
| insmod ntfs | insmod ntfs | ||
| insmod search_label | insmod search_label | ||
| - | search --no-floppy --set=root --label | + | search --no-floppy --set=root --label |
| ntldr /bootmgr | ntldr /bootmgr | ||
| boot | boot | ||
| Line 66: | Line 114: | ||
| sudo mount /dev/sdX1 / | sudo mount /dev/sdX1 / | ||
| - | mount win7 iso: | + | mount win7 iso (iso needs to be available locally): |
| < | < | ||
| sudo mount -o loop / | sudo mount -o loop / | ||
linux/win-boot-usb.1557678941.txt.gz · Last modified: (external edit)