29
submitted 4 months ago* (last edited 4 months ago) by HumanPenguin@feddit.uk to c/linux@lemmy.ml

Hi. I've not really used Windows since the early 2000. Even then not much.

I have a single mini PC with windows on. And use it only for device firmware updates. As a ham radio nerd. You get many devices that can only be modified via windows.

Anyway it was set up with dual boot the normal way. Windows first as it came with it. Then make a real Linux partition to use the PC on my boat while travelling.

Now the issue is I am upgrading the Mini PC. Basically replacing memory and the tiny 128gb ssd. So need to install it all from scratch.

I have order a copy of windows 11 from ebay. (At a price I consider acceptable for the crap)

But its going to take several days to arrive. And I would like to be more efficient.

So I am hoping folks can advice me on the best way to set up the PC with Linux first then install Windows 11 later. Knowing windows has a habit of messing up grub etc.

all 26 comments
sorted by: hot top controversial new old
[-] wildbus8979@sh.itjust.works 21 points 4 months ago* (last edited 4 months ago)

Why wait for a copy of windows when you can just download the ISO from Microsoft?

Honestly, now a days USB pass through is so good that a virtual machine works well enough for firmware upgrades. Especially true if you have a separate usb controller and you pass the whole PCIe device! It's extremely rare I ever need bare metal.

-73

[-] Ludrol@szmer.info 13 points 4 months ago* (last edited 4 months ago)

You can use windows in indefinite trial version with Activate Windows watermark. Grab a windows iso from the website. Put it on USB stick (I use Ventoy). And install. I would keep windows bootlaoder and grub on separate partitions.

[-] lemmyvore@feddit.nl 10 points 4 months ago

You can also activate Windows very easily. Search for "github massgravel". It's one command you need to run in Powershell as administrator.

[-] bloodfart@lemmy.ml 12 points 4 months ago* (last edited 4 months ago)

There’s a lot of people saying not to pay for windows or not to use eBay or to download from Microsoft directly or to use massgrave instead but there are very few possibly no responses explaining why that’s a better option than buying from eBay.

First things first, and I know this is gonna get some people responding with the ol’ “nuh-uh”, but there’s compromised counterfeit install media for sale. You most likely don’t know how to tell the good from the bad. The bad can also look very, very good.

If you want to know you’re getting the good stuff straight from Microsoft, use uupdump to create an updated install media for whatever sku(version of windows) you want and use rufus to make the usb installer (you’ll need to be inside a windows vm or on your old version of windows). The reason I say use Rufus is because it gives you the opportunity to turn off some stuff like requiring a Microsoft account in the 11 install process.

Once that’s done and installed, you can activate however you like, either with massgrave or with a key for your sku purchased from Microsoft directly.

[-] kuneho@lemmy.world 12 points 4 months ago* (last edited 4 months ago)

Really the only thing you have to do after installing Windows (if Linux was the first) is to reinstall your bootloader from a live Linux environment.

If it's Grub, you can look here: https://pendrivelinux.com/restore-grub-after-windows-install/

If I'm right, during the restoration of the bootloader, Grub will find your Windows installation too, and will add it to the menu.

[-] just_another_person@lemmy.world 9 points 4 months ago

Installing Windows will always nuke the existing bootloadet with the Windows one. You can install Linux just fine now, then Windows, but you'll need go back and set the bootloader back to grub or whatever your distro prefers. If you don't know how to do this yet, just look it up. You'll need to know how to do it in the future, since Windows Updates will randomly do this again in the future.

[-] HumanPenguin@feddit.uk 4 points 4 months ago

Thanks. That was exactly what I needed. I'll look it up.

[-] just_another_person@lemmy.world 3 points 4 months ago

Also make sure you leave empty space on the drive for the windows partition when partitioning for Windows. You can resize later in Linux, before installing Windows if that's easier.

[-] thedeadwalking4242@lemmy.world 7 points 4 months ago

If windows was installed once on a motherboard if you install windows from USB again on the same motherboard even after wiping it will remember your purchase and not make you pay again

[-] electric_nan@lemmy.ml 3 points 4 months ago

This is true. There's even a Linux command to grab the license key. The key won't work on any other hardware tho, so it's kind of useless :)

[-] SteveTech@programming.dev 5 points 4 months ago

You can go through the activation troubleshooter and say you replaced the motherboard, I did this with my brother's computer and used a licence from a 5 year old netbook on a modern desktop. It might've needed a Microsoft account though.

[-] Frederic@beehaw.org 7 points 4 months ago

I also need some old app working only in Windows, I spent hours on wine trying to make them work, but no. So in the end, I installed Linux only, then set up a simple QEMU of WinXP SP3 image, just to install those programs (they need serial ports, and I can redirect the ttyUSB0 to QEMU as a COM1) and that's it, no more *real windows.

[-] Telorand@reddthat.com 3 points 4 months ago

Omg, you may have saved me a future headache with FORSCAN. It has a similar issue, where it expects the device on a COM port (which Windows handles automatically), but finding and successfully assigning it is a monumental headache due to how the OBD II device works.

[-] ShortN0te@lemmy.ml 6 points 4 months ago

Why not just clone the old ssd to the new one?

No need to reinstall tbh.

Also just download the windows iso from microsoft directly. If you do not want to pay for Windows you can always just use https://massgrave.dev/

[-] YurkshireLad@lemmy.ca 6 points 4 months ago

Do you have room for 2 SSDs in the case? If so, install windows on one and Linux on the other. Then set the BIOS to boot from the Linux disk and grub will let you decide which OS to boot from. This way, windows won’t interfere with Linux.

I’ve been using this for months and it works well. Except when I hit a Debian bug that configured grub to not look for OSes on other drives! But that was fixed.

[-] julianh@lemm.ee 4 points 4 months ago

Don't buy windows from eBay! You can download an iso for free from microsoft. Flash that to a USB and install it that way (or as others have suggested, just use a VM). It won't be activated but you don't need that for what you're doing: https://www.microsoft.com/software-download/windows11

If you don't need windows 11, I actually recommend 10 ltsc. It doesn't come with all the bloat and adware that normal windows comes with: https://www.microsoft.com/en-us/evalcenter/download-windows-10-enterprise

[-] janNatan@lemmy.ml 3 points 4 months ago

I have no experience with setting up Windows after Linux. I've always done it the other way around.

However, what version of Windows was it running before? If you haven't switched the components yet, you can use Windows to make a Windows boot flash drive or DVD officially using the "Windows Media creation Tool." It's a free download from an official Microsoft page. I don't think you needed to buy Windows 11 at all. Both windows 10 and 11 will recognize that your hardware (motherboard mostly, I believe) is registered with a license, and it will simply activate your Windows online, no hassle. It's like the one thing Microsoft got right.

[-] ulkesh@beehaw.org 2 points 4 months ago

Could always attempt firmware updates from within a Windows VM but I suspect your mileage may vary and there’s always the risk of bricking a device when updating firmware (and a VM may increase that risk, I don’t know).

I would echo the suggestion of others, simply add a second drive, don’t dual boot, just change the target device for boot in the UEFI settings when you need to load windows. Also, I wouldn’t bother buying windows if you will only boot it for firmware updates and that’s it — waste of money — and with what MS is doing with windows as of late (ads, Recall, etc), I have personally dumped windows altogether.

[-] 2xsaiko@discuss.tchncs.de 2 points 4 months ago
  1. Stop using GRUB, it's a horrible legacy sprawling mess, most of which you don't need
  2. Windows doesn't delete the bootloader with EFI boot, just make sure you have free partition space for it to create the system partition and a large enough EFI partition.
[-] potkulautapaprika@sopuli.xyz 4 points 4 months ago

For 1, grub is fine, but systemd-boot is simpler, so I'd say that as 'use grub if you actually need it'

For 2, has this actually ever happened to anyone in uefi times? Mbr overwrite was the good old times, now we have something at least better

[-] 2xsaiko@discuss.tchncs.de 2 points 4 months ago

For 2, has this actually ever happened to anyone in uefi times? Mbr overwrite was the good old times, now we have something at least better

I assume this is just from people remembering how that happens with MBR boot and just assuming it does the same with EFI.

this post was submitted on 12 Jul 2024
29 points (93.9% liked)

Linux

48179 readers
879 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS