Installing Arch Linux on a separate hard drive from within Windows 10 without logging out or rebooting is not a straightforward process, as installing an operating system typically requires booting into a different environment such as a live USB. However, you can prepare everything from within Windows 10 up until the point of installation. Here's how you can get started:
-
Download the Arch Linux ISO:
-
Prepare a bootable USB drive:
-
Prepare the new hard drive:
- You can create partitions on the new hard drive from within Windows using the Disk Management tool. Press
Win + X and select "Disk Management."
- Find the new hard drive, right-click on the unallocated space, and create a new simple volume (or more, if you know how you want to partition your drive for Arch Linux).
-
Reboot into the Arch Linux live environment:
- Although you mentioned not wanting to log out or reboot, to proceed with the actual installation of Arch Linux, you will need to boot from the USB drive you prepared.
- Restart your computer and enter the BIOS/UEFI settings (usually by pressing
F2, Del, Esc, or another key during startup).
- Change the boot order to boot from the USB drive.
- Save the changes and exit the BIOS/UEFI settings.
-
Install Arch Linux:
- Once your computer boots from the USB drive, you will enter the Arch Linux live environment.
- Follow the Arch Linux installation guide (https://wiki.archlinux.org/title/Installation_guide) carefully to install the system on your new hard drive.
- During installation, make sure to select the correct hard drive for installation (the one you prepared) and not your Windows 10 drive.
-
Set up dual-boot:
- After installing Arch Linux, you'll need to set up your system to dual-boot.
- If you install a boot loader like GRUB during the Arch Linux installation, it should detect your Windows 10 installation and add it to the boot menu.
Remember, the installation of Arch Linux can be complex, especially for users who are not experienced with Linux or command-line interfaces, as it involves manual partitioning, system setup, and configuration. Make sure to back up any important data before proceeding, and it might be helpful to print out the installation guide or have it accessible on a separate device during the installation process.
If you're looking for a way to install Arch Linux without ever rebooting from Windows (which is not recommended and typically not supported), you'd have to look into more advanced and potentially risky methods such as virtualization or using a tool like UNetbootin to install a Linux distribution from within Windows, but these methods are not generally advised for installing Arch Linux and could lead to an unstable or non-functional system.