How can I install Windows 7 without dvd or usb, on linux?

Solution 1:

Method 2016. First of all, you need to create a partition for Windows installation files. It should be 2gb bigger than Windows iso.

  • Install a tool, that help you install Windows directly from the hard drive:

    sudo add-apt-repository ppa:nilarimogard/webupd8
    sudo apt update
    sudo apt install winusb
    
  • Install a tool for work with NTFS:

    sudo apt-get install ntfs-3g
    
  • Format partition in NTFS:

    sudo mkfs.ntfs /dev/sdxx
    
  • Copy installation files to partition:

    sudo winusb --install iso_name /dev/sdxx
    
  • Reboot and you will be able to install Windows.

Update:

winusb is deprecated now, use woeusb instead. Type woeusb --help for more information.

Solution 2:

If you're comfortable doing it, you might be able to create a small partition on your hard drive, extract the Windows ISO contents to it, then install it from there.

I found a thread about how to do it from within Windows, but it shouldn't be too hard to do it in Linux: http://www.neowin.net/forum/topic/1093625-trying-to-install-windows-8-consumer-preview-but-no-dvd-burner/ (though it doesn't look like they ever did figure out how to get it working, it looks like a good place to start)

But it would probably be easier just to purchase a bigger USB drive :)