Dd Windows 7
OK, after unsuccessfully trying all methods mentioned here, I finally got it working. Basically, the missing step was to write a proper boot sector to the USB stick, which can be done from Linux with ms-sys or lilo -M. This works with the Windows 7 retail version.Here is the complete rundown again:Install ms-sys - if it is not in your repositories, get it. 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)Create an NTFS filesystem:# mkfs.ntfs -f /dev/sdb1Write Windows 7 on the USB stick (also works for windows 8), multiple options here:.
# ms-sys -7 /dev/sdb. or (e.g.
On newer Ubuntu installs) sudo lilo -M /dev/sdb mbr. or (if syslinux is installed), you can run sudo dd if=/usr/lib/syslinux/mbr/mbr.bin of=/dev/sdbMount ISO and USB media: # mount -o loop win7.iso /mnt/iso# mount /dev/sdb1 /mnt/usbCopy over all files:# cp -r /mnt/iso/. /mnt/usb/.or use the standard GUI file-browser of your systemCall sync to make sure all files are written.Open gparted, select the USB drive, right-click on the file system, then click on 'Manage Flags'.
Check the boot checkbox, then close.and you're done.After all that, you probably want to back up your USB media for further installations and get rid of the ISO file. Just use dd:# dd if=/dev/sdb of=win7.imgNote, this copies the whole device! — which is usually (much) bigger than the files copied to it. So instead I propose # dd count=(size of the ISO file in MB plus some extra MB for boot block) divided by default dd blocksize if=/dev/sdb of=win7.imgThus for example with 8 M extra bytes: # dd count=$(((`stat -c '%s' win7.iso` + 8.1024.1024) / 512)) if=/dev/sdb of=win7.img status=progressAs always, double check the device names very carefully when working with dd.The method creating a bootable USB presented above works also with Win10 installer iso. I tried it running Ubuntu 16.04 copying Win101703SingleLangEnglishx64.iso (size 4,241,291,264 bytes) onto an 8 GB USB-stick — in non-UEFI non-secure boot only. After execution dd reports:8300156+0 records in8300156+0 records out bytes (4.2 GB, 4.0 GiB) copied, 412.807 s, 10.3 MB/sReverse if/of next time you want to put the Windows 7 installer onto USB.
You can accomplish this with dd, if your PC supports UEFI, and, by extension, GPT disks.Open up a terminal, your going to need to find what device is your pendrive. If you have the drive mounted you can find the name of the device by typing 'mount' and looking at it's entry.
Something like the following: /dev/sdb1 on /media/USBDISK type vfat (rw,nosuid,nodev,uhelper=hal,uid=1000,utf8,shortname=mixed)In this case the first partion of /dev/sdb is mounted at /media/USBDISK. Open a root shell and unmount the drive. Umount /dev/sdb1Go to the directory where your ISO is stored in a root shell and type in the following: (Replace windows7.iso with whatever the iso is called, and /dev/sdb with the device id of your usb stick).
Dd if=windows7.iso of=/dev/sdbIf your motherboard supports booting off of a pendrive it should be able to boot off it. This will get the installer on the pendrive not the OS itself. PCambell's suggestion is good but you will also want to clear the MBR, the linux equivalent is belowI tried this and it worked (I'm not sure why the dd method failed but seems the partition had to be ntfs?):.
work out which /dev/device is your usb flash drive and unmount it. clear the MBR: dd if=/dev/zero of=/dev/device bs=446 count=1. run fdisk /dev/device.
remove all partitions and create 1 primary partition, make it bootable then save the changes. run mkfs.ntfs /dev/device1 (partition 1). copy the entire contents of the windows install iso on to the partition you created.
14 years ago, there have been many small bugs in the resulting filesystem image. Whether you notice them depends on what you do. Important: genisoimage has absoutely no UTF-8 support.
Dd Windows 7 Update
This may be important unless you only use filenames with 7 bit ASCII. If you compare genisoimage with xorriso, genisoimage may be a win since it implements rudimentary UDF support.
Integrated and Stand-alone Disk Viewer/Editor for advanced data inspection. Added support for RAR archives recovery by signatures. New File Systems supported Ext4fs (Linux) and UFS (FreeBSD UNIX) Flexible application styles: Dark & Light color schemes. Active file recovery professional.
The new mkisofs on the other side supports user/group, permissions, symlinks, device files hardlinks and even chinese characters in filenames and better timestamps. Decide whether you are OK with a draft or like a mature program.–Jul 10 '18 at 21:28. If you are going to boot a UEFI-based computer, just mount the Windows ISO (take care that it is a UDF formatted ISO) and copy all files to the USB drive. As long as the drive is in FAT32 format, a UEFI computer will recognize it and it will offer the option to boot from it.On the other hand, for a BIOS-based machine, the best option is to manually configure syslinux to chainload the Windows boot. I tried this on Windows 8, but not yet on 10.