I have mounted an ISO file on my Linux machine. It's an ISO file to install Windows 7. It's mounted but I have no idea how to run it. There are EXE files inside, but I don't think I should touch them (even if I try I can't because they are windows EXE files). I really want to uninstall Linux because I can't update or install any new software -- or even connect to the internet. So does anyone know how to run the ISO after it is mounted?
What you probably need to do is is to loopmount the iso, not burn it.
We will use sudo- which elevates accounts according to the sudoers file - i assume that its a standard ubuntu system and uses that. if doing this as root, ignore the 'sudo' in front of commands. These commands should work as the user you created during install without any additional work. All this is in terminal, so you can just copy and paste the commands with the appropriate changes.
Create a mountpoint if you haven't already (you seem to have, but lets assume you haven't)
make mountpoint by
sudo mkdir -p /mnt/disk
mount file at /home/user/Desktop/disk1.iso to mountpoint - this uses the standard mount command
sudo mount -o loop /home/user/Desktop/disk1.iso /mnt/disk
However you will not be able to start a windows install from linux
wretrOvian's suggestion is the easiest way.
But if you don't want / can't burn the disk you can use Virtual box to help you. Windows generally doesn't support shifting from one hardware configuration to another, so you have to use the virtual machine to initiate the process and continue the rest by rebooting into the setup environment.
In pre-Vista era, windows setup has two steps -- file copying and install. Normally you get an option to copy all the installation files to a partition and run setup from there. I think you can't do this if you boot from the CD/iso, so you have to find a working Windows PE image first.
For Vista and above, the installation process seems to be simple disk imaging, so you can go through the most of the setup until the reboot after file expansion.
More elaborate steps:
- Partition your disk and make a PRIMARY NTFS partition that is big enough (10G+ for pre-Vista, 25GB+ otherwise) and set the "boot" (active) flag to it.
- Follow this guide to create a vmdk file for that NTFS partition. (Do not use the whole drive because Windows will overwrite the Linux boot loader.)
- Setup the VM. Make sure your VM configuration (number of CPUs, chipset and disk controller) is similar to the real hardware. Otherwise you may get a BSoD when you reboot the host computer to continue the installation process.
- (Pre-Vista) Boot from a PE disk, run the setup.exe on the CD and choose to copy all the installation files to disk. (It's hidden behind a button on the page where you choose system language and components.)
- When the setup program automatically reboots, turn off the virtual machine at the POST screen.
- Add an entry to your Linux boot loader to boot from the NTFS partition. For older Grub, it's a simple
chainloader +1. There're plenty of guides online.
- Reboot your Linux and choose the Windows partition in the boot menu.
What you could do is - burn the ISO to a Disc using a iso-burning software (not as a file). Then boot with the disc to run the Windows setup. (this is assuming the iso is bootable)
EDIT - An ISO is like a zip (compressed file) - it may contain multiple files and directories. And it also contains boot information that is meant for the boot sector of your disc. Hence, you don't burn the file itself. You also don't burn the contents of the iso file by themselves. What you need to find is a burning software that supports creating discs FROM an ISO file. I hope this helps.