2022-12-31

Booting a second HDD containing Windows 10 within the first HDD booted from Ubuntu 20.04 (VMware example)

As a Ubuntu user, I prefer all my computers stand on this OS. However, in the school environment, there are some moments forcing me use Windows-based OSes. For instance, in order to use licensed copies of SPSS, I have an HDD running Windows 10.

My present example is about a laptop (an ASUS G750JX, 24 GB RAM, i7-4700HQ cpu, two HDD bays). The first bay is occupied by an SSD running Ubuntu 20.04. In the second bay, another SSD is ready to run Windows 10. Most of the time, it is booted from the first SSD.
Recently, I asked myself whether I can boot the second SSD within running Ubuntu or not. The answer might be VMware. After some work (especially in order not to lose any data from the second disk), I managed to boot the second disk.

All processes are in the first disk (Ubuntu). I installed VMware. When I was in the step to bind "a physical disk", the SSD cannot be selected. The reason was that I didn't have "root" permissions to do such a thing. My solution was to run VMware as "root". In a terminal window I typed "sudo vmplayer". This meant that I started VMware as "root".
I choosed "create a new virtual machine".
I choosed "I will install the operating system later".
I choosed the guest operating system as Windows 10 64-bit.
I did my settings next (RAM, cpu, etc).
Later, the folders and files were created under "/root" folder.
My virtual machine was made visible in VMware, then.
I choosed "edit virtual machine settings", then added "Hard Disk" ("use a physical disk" in the following steps), I pointed to my Windows disk, and finished.

I choosed to run the virtual machine. It was happy to see it ran.