Skip to content

Instantly share code, notes, and snippets.

@ntrp
Last active August 19, 2016 17:04
Show Gist options
  • Save ntrp/fdec51af5062213819c0ec85a068c611 to your computer and use it in GitHub Desktop.
Save ntrp/fdec51af5062213819c0ec85a068c611 to your computer and use it in GitHub Desktop.
# 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