LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Installing new distro into separate preexisting partition while current distro is running (https://www.linuxquestions.org/questions/linux-desktop-74/installing-new-distro-into-separate-preexisting-partition-while-current-distro-is-running-4175717604/)

d-us-vb 10-09-2022 06:27 PM

Installing new distro into separate preexisting partition while current distro is running
 
I have several partitions on my main machine. One is a 50 GB ext4 partition meant for testing distros out directly on the machine without a VM. Is it possible to install a new distro there while my main distro (currently LMDE) is running? If so, how would I do that? I want to avoid creating another installation USB.

frankbell 10-09-2022 08:39 PM

You have to boot the machine to run an install to bare metal. I think that rules out running an installation when the system is already booted.

Of course, I've not tried this, and I never will.

Just my thoughts.

Emerson 10-09-2022 08:50 PM

Maybe it is possible if you run the install in chrooted environment. Have never tried it either.

colorpurple21859 10-09-2022 09:06 PM

Debian can be install from a running system: https://wiki.debian.org/Debootstrap
Quote:

I want to avoid creating another installation USB.
Another option is to boot install iso from the hard drive using grub bootloader, requires a reboot.
Knowing what distro you want to install would help.

leclerc78 10-09-2022 09:59 PM

Quote:

Originally Posted by d-us-vb (Post 6385439)
I want to avoid creating another installation USB.

Why ?
Ventoys let you add/remove as many ISO's as your USB's capacity permits (copying, you don't have to install anything).
I use Yumi, it takes a bit more work, but it's still very simple.

d-us-vb 10-09-2022 10:01 PM

Quote:

Originally Posted by colorpurple21859 (Post 6385454)
Debian can be install from a running system: https://wiki.debian.org/Debootstrap
Knowing what distro you want to install would help.

Fedora.

Debian6to11 10-09-2022 11:57 PM

Even though it may be possible with some or even all distributions, I think it is far more work than just creating an install USB and installing the normal way.

Quote:

I want to avoid creating another installation USB.
I find this a poor excuse and not enough reason for going through all the hassle mentioned above.

yancek 10-10-2022 03:16 AM

You can boot and install Fedora from LMDE by putting the iso on the LMDE but you will obviously need to reboot but not need a USB.

If you don't want to create an installation USB, you can put the Fedora iso on the partition on which you have LMDE installed, put an entry in the grub.cfg file of LMDE and then reboot and select Fedora from the boot menu to install it. The menuentry below worked to boot the specific version of Fedora listed so you can put this in your grub.cfg of LMDE with necessary modification. The change include putting the correct drive/partition on the loopback loop line (hd0,gpt5), the exact name of the iso on that line, the correct CDLABEL name and the correct iso name at the end of the linux line. If you have a different version of Fedora, I don't know that it will work.

Quote:

menuentry "Start Fedora-Workstation-Live 36" --class fedora --class gnu-linux --class gnu --class os {
loopback loop (hd0,gpt5)/Fedora-Workstation-Live-x86_64-36-1.5.iso
linux (loop)/isolinux/vmlinuz root=live:CDLABEL=Fedora-WS-Live-36-1-5 rootfstype=auto ro rd.live.image quiet rhgb rd.luks=0 rd.md=0 rd.dm=0 iso-scan/filename=/Fedora-Workstation-Live-x86_64-36-1.5.iso
initrd (loop)/isolinux/initrd.img
}


All times are GMT -5. The time now is 12:23 PM.