0

swap ubuntu in my system to garuda linux without using usb or cd or any kind of external storage device

I've heard its possible by changing the contents of sources.list file,

but i think its only possible when im swapping from [debian based distro] to [another debian based distro]

but here its [debian based distro] to [arch based distro]

soo, is it possible¿

or, is there another ways to swap distribution?

2 Answers 2

2

I've heard its possible by changing the contents of sources.list file,

But you've been lied to. Even if Garuda was Ubuntu-based, or at least a debianoid, this would be a bad idea. But Garuda is based on the arch tooling, so completely incompatible.

or, is there another ways to swap distribution?

Sure, but by far the easiest way is to boot from a USB stick. You can also try to use a rescue boot mode that only uses your ubuntu's initial ram disk, to mount a downloaded installation medium from your internal and install over your ubuntu without repartitioning/formatting your storage after deleting everything but said download, but there's no guarantee the setup that Ubuntu could boot from works for Garuda, and I'd call that "very advanced installation method that expects a lot of Arch-specific knowledge", because then you can't use Garuda's installer (which, by the way, is probably most of the reasons for people to use Garuda instead of Arch to begin with, so why would you want that), and honestly, I'd give it a 90% chance that you end up with a non-functioning system.

Another option would be reducing the size of your ubuntu partition(s), making a new partition in the resulting free space, formatting it ext4, putting the garuda installation medium there bitwise, telling grub about chainloading the bootloader from that partition, and installing by booting into the Garuda installer. In said installer, remove / format the Ubuntu partitions, install Garuda. As soon as Garuda boots, remove the installer partition, and add the resulting free storage to the Garuda system, if desired.
Less risky in terms of complications, but a degree in bootloaderology is recommended.

0

You can put the Garuda.iso in your Ubuntu / ( root ) partition. Then add the .iso to your Grub2. I have added 2 .iso's like this ( changing grub.cfg as root ):

### BEGIN /etc/grub.d/40_custom ###

menuentry "Xubuntu" {
insmod ext2
set isofile="/@/xubuntu-20.04.2.0-desktop-amd64.iso"
loopback loop (hd0,7)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject quiet splash toram
initrd (loop)/casper/initrd
}

menuentry "Peppermint" {
insmod ext2
set isofile="/@/Peppermint-10-20191210-amd64.iso"
loopback loop (hd0,7)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject quiet splash toram
initrd (loop)/casper/initrd.lz
}
### END /etc/grub.d/40_custom ###



When rebooting you will see them, and can boot from them. You will have to change the name of the .iso, 'hd0,7' into your apropiate hd and partition ( most likely hd0,2 ). Be aware that both of my .iso's are debian/ubuntu based.

An Arch distro like Garuda has a complete different setup. So the file you need to boot is in a different location. To explore that you can open it with e.g. 'Ark´.

The 'vmlinuz-x86_64' is located in 'boot'. So it will likely become linux (loop)/boot/vmlinuz boot=boot iso-scan/filename=$isofile and I cannot find 'initrd' in the Garuda iso.It has 'initramfs-x86_64.img' though in before mentioned location. Change the line initrd (loop)/casper/initrd into initrd (loop)/boot/intel_ucode.img (loop)/boot/amd_ucode.img (loop)/boot/initramfs-x86_64.img. ( see https://forum.garudalinux.org/t/cannot-boot-isos-using-super-grub-2-iso-and-container-filesystem-does-not-mount-automatically/27996/9 ). I am not sure if it will work. Never tried it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .