How to dual boot Linux and Windows

Recommended hardware recommendations:

At least 500GB total hard drive space.

4GB or more RAM

Dual core or higher processor.

Intel or Qualcomm wireless

Instructions:

Go to Disk Management. Shrink the NTFS partition by at least 50GB, maybe 75GB, 125GB, or more.

Download the ISO from the website. Choose between CentOS, Ubuntu, OpenSUSE, and such Linux distributions. Get the AMD64 ISO if your PC or server has a 64-bit processor, or x86 or IA-32 if your PC is 32-bit.

Burn ISO onto CD or DVD drive. Or, if you want to install using USB stick or SD card, use Universal USB Installer or if that doesn’t work, use UNetBootin. Watch out for fake links before downloading the installer. There’s also Win32 Disk Imager along with other alternative tools you can search. Format the USB stick or SD card with FAT32.

Reboot, install Linux. Ext4 recommended for Ubuntu. Btrfs root and ext4 or alternatively XFS /home recommended for Red Hat Enterprise Linux or CentOS – manually configure partitioning and click the link that says something like ”Click here to generate them automatically.” EFI System Partition will be partitioned as VFAT. Ext4 recommended for boot partition of RHEL/CentOS.

For RHEL or CentOS, I recommend the installation Server with GUI.

Don’t forget to manually set up the network upon installing Red Hat Enterprise Linux or CentOS.

Don’t forget to set up the root password and user account. Don’t forget to make your account an Administrator. Make the root password and user password easy to remember at the same time as being hard for others to guess. Make sure to not forget them.

For Ubuntu, install third-party software and drivers.

Reboot and remove installation media.

Besides Linux, there’s also FreeBSD and its variants GhostBSD and TrueOS. Could install FreeBSD or variant on USB stick or SD card as well. Also run Bhyve on FreeBSD or variant. I recommend FreeBSD or variant to be on ZFS root and UFS2 /home. Either Boot Manager on MBR or Grub on GPT. I recommend tcsh command shell. Unfortunately, iXsystems stopped development of TrueOS in 2018. But I think it’s open source and anyone could continue development, as what happened with illumos from openSolaris.

If any improvements could be made to this post, say so in the comment. Also check YouTube videos about dual-booting Linux.

Alternative to dual-booting

8GB or higher RAM is recommended for the following. 125GB VHDX or pass-through USB stick or SD card recommended for CentOS, and 75GB VHD, VMDK, or VHDX recommended for Ubuntu.

See also https://itrecommendationsandideas.wordpress.com/2022/02/04/how-to-set-hyper-v-and-no-hypervisor-dual-mode-on-windows-10/ to make the boot menu have two options: to boot with and without the hypervisor.

CentOS in Hyper-V. Ubuntu in either Hyper-V or VMware Workstation Player on Windows. For the latter, install VMware Integration Tools. Ubuntu should be on VHD, CentOS on either VHDX if Generation 2 or pass-through disk if Generation 1.

See https://docs.vmware.com/en/VMware-Workstation-Player-for-Windows/16.0/com.vmware.player.win.using.doc/GUID-08BB9465-D40A-4E16-9E15-8C016CC8166F.html for installing VMware integration tools. Known issue:

/dev/sr0 on /mnt/cdrom type iso966o
Error:
bash: /dev/sr0: Permission denied

Solution:

sudo cp "/media/<user>/VMware Tools" /home/<user>/VMware_Tools

If that doesn’t work,

sudo cp -r "/media/<user>/VMware Tools/" /home/<user>/VMware_Tools/

PLEASE DON’T INCLUDE the word <user>! Replace that with your user directory.

Then, find install.pl and run it by typing

sudo perl install.pl

In the case of Hyper-V, get https://www.microsoft.com/en-us/download/details.aspx?id=55106 for CentOS. For Ubuntu, do the following:

wget https://raw.githubusercontent.com/Microsoft/linux-vm-tools/master/ubuntu/18.04/install.sh
sudo chmod +x install.sh
sudo ./install.sh

And put in /etc/xrdp/xrdp.ini:

port=vsock://-1:3389
use_vsock=false

And in PowerShell:

Set-VM -VMName <your_vm_name>  -EnhancedSessionTransportType HvSocket

Source: https://askubuntu.com/questions/1246362/how-to-setup-xrdp-for-ubuntu-20-04-in-windows-hyper-v. See also https://techbloggingfool.com/2020/03/29/deploy-a-linux-vm-on-hyper-v-with-sound/ and https://techbloggingfool.com/2020/12/26/deploy-a-linux-vm-on-hyper-v-with-sound-20-04-edition/

PLEASE DON’T TYPE the phrase “Your VM NAME”! Instead, type the name of your virtual machine.

Edit: Alternatively to Enhanced Session Mode, you could connect to Linux by a separate remote desktop software like Xpra, XDMCP, NoMachine/NX, or SSH with X Forwarding. Another idea is to use VLC media player, see https://mclark.wordpress.com/2020/07/23/how-to-stream-audio-from-pc-to-another-pc-phone-or-tablet-with-vlc-media-player-a-step-by-step-guide/?replytocom=6857

Published by WorldQuestioner

I am interested in many things. I want justice and get upset by some things in the world.

Leave a comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create your website with WordPress.com
Get started
%d bloggers like this: