LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 10-09-2022, 06:27 PM   #1
d-us-vb
LQ Newbie
 
Registered: Oct 2020
Location: United States
Distribution: LMDE 4
Posts: 8

Rep: Reputation: Disabled
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.
 
Old 10-09-2022, 08:39 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,354
Blog Entries: 28

Rep: Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147
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.
 
Old 10-09-2022, 08:50 PM   #3
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Maybe it is possible if you run the install in chrooted environment. Have never tried it either.
 
Old 10-09-2022, 09:06 PM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,369

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
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.
 
2 members found this post helpful.
Old 10-09-2022, 09:59 PM   #5
leclerc78
Member
 
Registered: Dec 2020
Posts: 169

Rep: Reputation: Disabled
Quote:
Originally Posted by d-us-vb View Post
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.
 
Old 10-09-2022, 10:01 PM   #6
d-us-vb
LQ Newbie
 
Registered: Oct 2020
Location: United States
Distribution: LMDE 4
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Debian can be install from a running system: https://wiki.debian.org/Debootstrap
Knowing what distro you want to install would help.
Fedora.
 
Old 10-09-2022, 11:57 PM   #7
Debian6to11
Member
 
Registered: Jan 2022
Location: Limassol, Cyprus
Distribution: Debian
Posts: 382
Blog Entries: 1

Rep: Reputation: 71
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.
 
Old 10-10-2022, 03:16 AM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,546

Rep: Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497
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
}
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you compress preexisting FLAC files? WyattOil Linux - General 4 11-23-2013 10:35 AM
Looking for a tool to auto crop and separate images in to separate files.. mlsfit Linux - Software 2 08-06-2006 03:13 PM
Linux cannot detect preexisting raid0 r_sherman Linux - Hardware 3 10-25-2005 04:06 PM
Installing a Hard Drive with Preexisting Data? Mijder Linux - Hardware 2 01-07-2005 06:27 PM
Separate Partitions for Separate User groups volvic Slackware - Installation 2 09-16-2004 02:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 05:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration