Last active
August 19, 2016 17:04
-
-
Save ntrp/fdec51af5062213819c0ec85a068c611 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# prepare | |
cfdisk /dev/sdx (part 7 [NTFS,exFAT], bootable flag) | |
mkfs.ntfs -f /dev/sdx1 | |
# MBR | |
ms-sys -7 /dev/sdx | |
or lilo -M /dev/sdx MBR | |
or dd if=/usr/lib/syslinux/bios/mbr.bin of=/dev/sdx | |
# mount | |
mount -o loop win.iso /mnt/iso | |
mount /dev/sdx1 /mnt/usb | |
# copy and sync | |
rsync -vah --progress /mnt/iso/ /mnt/usb/ && sync | |
# ready |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment