I pulled out my old desktop and decided to put a linux distro on it so I could learn some popular database operating systems.

Not sure I want to go into how to select one here, too many articles on it already. According to my research some good personal distros seem to be Ubuntu or Fedora, and some more commercial oriented ones (still free) are CentOS or openSUSE. A good paid one appears to be Redhat, CentOS is the freeware version (no support included).

I decided to go with openSUSE, but I will likely be working with CentOS as well.

Dual boot


openSUSE

openSUSE logo

This desktop was one I built and had installed Win7 with an eventual Win10 upgrade. The goal therefore was to install openSUSE alongside my existing Windows 10.

To make a long story short, this turned out to be impossible as my main drive was MBR formatted. What I needed to dual boot easily was a GPT formatted drive. Here is an article discussing the differences. Now there are some unofficial utilities that claim to migrate files in a reformat safely. But the confidence wasn't there so I decided to do a rescue operation of the C drive, take out everything I wanted and just reformat entirely to GPT. I have a laptop that I used to write a openSUSE distro in USB boot drive. I chose Leap as it is the stable released version they offer. They also offer Tumbleweed which is the more experimental rolling version featuring the latest, also claimed to be stable.


Installation

I wrote to the usb using Rufus which specializes in creating bootable USB drives.

Need to find your Windows key? Check out this VB script courtesy of thewindowsclub. Here is the code itself. Open a text file and paste in this code and save as a .vbs file. Then just click the file to generate it. I should note here are some simpler methods.

Set WshShell = CreateObject("WScript.Shell")
MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))

Function ConvertToKey(Key)
Const KeyOffset = 52
i = 28
Chars = "BCDFGHJKMPQRTVWXY2346789"
Do
Cur = 0
x = 14
Do
Cur = Cur * 256
Cur = Key(x + KeyOffset) + Cur
Key(x + KeyOffset) = (Cur \ 24) And 255
Cur = Cur Mod 24
x = x -1
Loop While x >= 0
i = i -1
KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput
If (((29 - i) Mod 6) = 0) And (i <> -1) Then
i = i -1
KeyOutput = "-" & KeyOutput
End If
Loop While i >= 0
ConvertToKey = KeyOutput
End Function

Once you have a copy of Windows that corresponds to what you are licensed to use, you might want to go ahead and find your windows key for after the installation when you need to reactivate. If you're simply wiping your drive and reinstalling then Windows will very likely automatically activate your copy. They monitor your hardware signature and will approve it if nothing has changed drastically. You may expect some hassle if some parts change and have to speak to customer service if a lot has changed. I don't know the entire policy since thankfully I didn't need to use my product key as it was automatically activated. But you should follow earlier directions and store your Windows key just in case.

But wait, having trouble getting a Windows copy? Windows really doesn't want to serve their OS for people, I imagine the server costs would be unfathomable. So almost no matter how botched your copy is or what weird situation you're in, Windows doesn't want to give you a copy, they just keep improving their reinstall software. There is a solution, check out Windows ISO Downloader from heidoc It worked great for me. Armed with a windows key and a copy of Windows, I pulled the trigger and reformatted my C drive completely. (I am working on a SSD here for anyone curious.)


Ok now that you have your two USB boot drives, one with Windows, one with your linux distro. (You could also just use the same one, but two is simpler). Install Windows first, openSUSE does a decent job of detecting an existing OS and Windows is territorial. Alright you've installed Windows. That was the easy part. Now put in your linux USB and boot from it. Since you went through the trouble of ensuring a GPT format, this should be rather easy. Choosing the recommended Btrfs file format will create an almost countless assortment of partitions. Sticking with ntfs cuts it down to 3 partitions. The option you chose when creating your USB with Rufus should've specified UEFI for the boot drive, it's the default. Once you finish the installation prompts for both operating systems you will face an option upon booting up to choose which installed boot drive to access. My openSUSE is the default which starts after a countdown.

Well that was it, wasn't too bad. I use KDE which is a nice gui or "desktop environment" and the recommended one for openSUSE, haven't found an error yet.

Article: "How to install an openSUSE distro with dual boot" by Wolf, in Hardware

Comments


There are no comments yet.

Add a Comment

You can use the Markdown syntax to format your comment.

Comment Atom Feed