Monday, November 25, 2019

macos - How to create a bootable USB Windows OS using Mac OS X


I'm having trouble here because of my PC got infected today and I've tried everything to get it back to normal, but the only option left for me now is to do a clean install.


Now, what happens is that I have MacBook Pro with 8GB USB.


I've downloaded Windows 7 from my college website [With license not pirated] and wanted to make a bootable USB, so I can format my PC to get it working again.


My question is how to create a bootable USB to install Windows on my Mac OS X without using DiskUtilities.


Answer



OK. Here are some instructions from Gizmodo that will put the ISO onto the flash drive with a Mac... they won't make it bootable though... read on...




  1. Open a Terminal (under Utilities)


  2. Run diskutil list and determine the device node assigned to your flash media (e.g., /dev/disk2)


  3. Run diskutil unmountDisk /dev/diskN (replace N with the disk number from the last command; in the previous example, N would be 2)


  4. Execute sudo dd if=/path/to/downloaded.iso of=/dev/diskN bs=1m (replace /path/to/downloaded.iso with the path where the image file is located; for example, ./windows7.iso)


  5. Run diskutil eject /dev/diskN, and remove your flash media when the command completes (this can take a few hours on slower drives)




Now... after you read all that, on the Gizmodo page it says that if you want to make it bootable you should use a utility called Live USB helper they link to (which isn't there any more) and use a Mac mounting tool (which isn't there either!) to force the ISO to mount on the Mac so you can copy the files over. So... that article may prove useful, but probably not. I can find other copies of Live USB helper out there, but they are all Windows executables.


One method that will work is to swap the hard drive out of the PC and into the Mac. Put your Windows 7 installation disc into the Mac optical drive, and install Windows 7 on that drive. Once it is up and running (don't worry about drivers yet), follow these steps.



  1. Run Command Prompt as administrator

  2. Type to Command Prompt: %windir%\System32\Sysprep\Sysprep.exe, and hit Enter

  3. In sysprep dialog that opens, choose “System Cleanup Action” as “Enter System Out-of-Box-Experience (OOBE)”, select “Generalize”, and select “Shutdown Options” as “Shutdown”. Click “OK”

  4. Sysprep generalizes now your Windows 7 setup and shuts down your computer.
    Do not run any other programs during this phase!

  5. Remove the drive from your Mac. Put it back into the PC.

  6. Boot the PC from sysprep generalized hard disk. You will notice Windows booting as if it was the first boot after installation, installing default and updating registry. One or two reboots are needed, depending on your system specifications

  7. When Windows finally boots up, you will need to enter all information as if this really was a new, fresh installation


All that is from here, but it applies in this situation a well, since you would be moving a Windows 7 installation from one computer to another. Considering that trying to make a Windows bootable USB stick with a Mac requires tools that either don't exist any more or are not being developed any more... this second method will most likely prove more dependable.


No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...