Software & AppsOperating SystemLinux

How To Fix “Installing for i386-pc platform” Error When Using Winusb

Ubuntu 3

If you’ve been trying to create a bootable USB drive using WinUSB, you might have encountered an issue where the installation process seems to halt indefinitely at the “Installing for i386-pc platform” stage. This can be a frustrating issue, but fortunately, there are a few potential solutions to get you back on track. This article will walk you through the steps to fix this error.

Quick Answer

To fix the "Installing for i386-pc platform" error when using WinUSB, you can try applying the 512 error fix by modifying the WinUSB script and ensuring the necessary package is installed. Alternatively, you can create the bootable USB drive manually using the dd command. If these solutions don’t work, you may need to be patient as the installation process can sometimes take longer than expected.

Understanding the Issue

Before we delve into the solutions, it’s important to understand what’s causing the issue. The “Installing for i386-pc platform” message is part of the process where WinUSB is trying to install the GRUB bootloader on your USB drive. This process can sometimes take longer than expected, leading to the perception that the installation has frozen.

Solution 1: Apply the 512 Error Fix

One of the most common solutions to this issue involves applying what’s known as the “512 error fix”. This involves modifying the WinUSB script to include a specific argument in the grub-install command.

  1. Locate the WinUSB script. This is typically found in the /usr/bin directory.
  2. Open the script with a text editor. You’ll need to do this with root permissions. You can use the sudo command for this purpose. For example, if you’re using the nano text editor, you would use the command sudo nano /usr/bin/winusb.
  3. Modify the grub-install command. Look for the line in the script that contains grub-install. You’ll need to modify this line to include the --target=i386-pc argument. This tells the grub-install command to specifically target the i386-pc platform, which can help to resolve the issue.
  4. Save and close the script. Once you’ve made the necessary modification, save your changes and close the text editor.
  5. Ensure you have the grub-pc-bin package installed. This package is necessary for the grub-install command to work correctly. You can install it using the command sudo apt-get install grub-pc-bin.
  6. Try using WinUSB again. With the modifications made and the necessary package installed, try running WinUSB again. The installation process should now proceed past the “Installing for i386-pc platform” stage.

Solution 2: Manual Method

If the above solution doesn’t work for you, or if you’re comfortable with a more hands-on approach, you can try creating the bootable USB drive manually. This involves using the dd command to write the Windows ISO file directly to the USB drive.

The dd command is a powerful tool that can copy and convert raw data. It’s commonly used for tasks such as backing up entire hard drives, copying disks, and, in this case, creating bootable USB drives.

Here’s an example of how you might use the dd command to create your bootable USB drive:

sudo dd if=/path/to/your/windows.iso of=/dev/sdx bs=4M && sync

In this command:

  • if=/path/to/your/windows.iso specifies the input file, which is your Windows ISO file.
  • of=/dev/sdx specifies the output file, which is your USB drive. Be sure to replace sdx with the actual device identifier for your USB drive.
  • bs=4M sets the block size to 4M. This can help to speed up the process.
  • && sync ensures that all write operations are completed before the command finishes.

Solution 3: Patience is a Virtue

Sometimes, the best solution is simply to wait. As mentioned earlier, the “Installing for i386-pc platform” stage can sometimes take longer than expected. Some users have reported that this stage can take anywhere from 10 to 30 minutes to complete. So, if you’ve tried the above solutions and you’re still encountering the issue, it might be worth letting the installation run for a bit longer to see if it progresses.

Conclusion

The “Installing for i386-pc platform” error when using WinUSB can be a frustrating issue, but it’s one that can usually be resolved with a bit of patience and a few tweaks. Whether you choose to apply the 512 error fix, try the manual method, or simply wait it out, you should be able to get your bootable USB drive up and running in no time.

How do I locate the WinUSB script?

The WinUSB script is typically located in the /usr/bin directory.

How do I open the WinUSB script with a text editor?

To open the WinUSB script with a text editor, you’ll need to use the command sudo nano /usr/bin/winusb in the terminal. This command opens the script with the nano text editor with root permissions.

How do I modify the `grub-install` command in the WinUSB script?

In the WinUSB script, look for the line that contains grub-install. Add the --target=i386-pc argument to this line to specifically target the i386-pc platform.

How do I save and close the WinUSB script after making modifications?

After making the necessary modifications in the WinUSB script, press Ctrl + X to exit the nano text editor. You will be prompted to save the changes. Press Y to save the changes and then press Enter to confirm the filename.

How do I install the `grub-pc-bin` package?

You can install the grub-pc-bin package by running the command sudo apt-get install grub-pc-bin in the terminal.

How do I use the `dd` command to create a bootable USB drive manually?

To create a bootable USB drive manually using the dd command, use the following command format: sudo dd if=/path/to/your/windows.iso of=/dev/sdx bs=4M && sync. Replace /path/to/your/windows.iso with the actual path to your Windows ISO file, and replace sdx in /dev/sdx with the device identifier of your USB drive.

How long does the “Installing for i386-pc platform” stage typically take?

The "Installing for i386-pc platform" stage can take longer than expected, with some users reporting it taking anywhere from 10 to 30 minutes to complete. Patience is often required during this stage.

Leave a Comment

Your email address will not be published. Required fields are marked *