0

I recently broke my windows installation but I dual boot with Ubuntu

So now I need installation media

I tried just dd'ing the iso to my USB drive on /dev/sdb1 but it refused to boot inisisting I was trying to boot uefi in bios mode (even though my pc is set up to boot either)

I really need windows for college so how do I make install media without another windows install?

  • "even though my pc is set up to boot either" That is impossible. One method excludes the other method. Your problem is not with Ubuntu and burning the ISO. it is with the boot method as you posted. If the system keeps "inisisting I was trying to boot uefi in bios mode" you are booting incorrectly. – Rinzwind Jul 09 '19 at 14:50
  • @Rinzwind no it has boot "priority". It's not mutually exclusive. It tries to boot Uefi, and then tries bios – unixandria Jul 09 '19 at 15:50
  • @Rinzwind and besides, Ubuntu is installed as uefi so if that's the issue Ubuntu shouldn't boot. Tested both bios and uefi booting. There is no option to select one or the other in my settings, only which to try first – unixandria Jul 09 '19 at 15:53
  • @Rinzwind it's a Lenovo ThinkPad T430s – unixandria Jul 09 '19 at 15:53

1 Answers1

1

For creating a Windows install USB on a Linux machine check out WoeUSB. There's a prebuilt package in this PPA:

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt update
sudo apt install woeusb
  • I was looking for a solution that didn't require building something from sources that I have to clone :-) – unixandria Jul 09 '19 at 15:49
  • There's actually a prebuilt package in a PPA. I'll edit the answer. – robosnacks Jul 10 '19 at 12:12
  • BTW didn't result in boot able USB and made my hdd unbootable – unixandria Jul 10 '19 at 13:26
  • @colbycdev woeusb is a popular and widely used tool and should be safe for normal operation. However, it might of course be possible that you can use it to overwrite your internal hdd instead of an external USB drive, if you pick the respective settings. I see nothing wrong with this answer, but you're free to elaborate what you did and how it might have broke things. – Byte Commander Jul 16 '19 at 09:46
  • @ByteCommander I installed to my USB drive ofc. Had to do grub-install as per another answer. Now my hdd is screwed up bsd – unixandria Jul 16 '19 at 19:18
  • *bad. Typo there – unixandria Jul 17 '19 at 04:04