How to install MX Linux from other Linux? (no USB)
How to install MX Linux from other Linux? (no USB)
Hi!
Is it possible to install MX Linux in a way similar to Debian installation via debootstrap?
Is it possible to install MX Linux in a way similar to Debian installation via debootstrap?
- anticapitalista
- Developer
- Posts: 4315
- Joined: Sat Jul 15, 2006 10:40 am
Re: How to install MX Linux from other Linux? (no USB)
Why would you want to do that?
anticapitalista
Reg. linux user #395339.
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - lean and mean.
https://antixlinux.com
Reg. linux user #395339.
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - lean and mean.
https://antixlinux.com
Re: How to install MX Linux from other Linux? (no USB)
I have no access to BIOS, it is password-protected, so I cannot change boot order.
But I have sufficient privileges to configure grub, to partition the disk.
But I have sufficient privileges to configure grub, to partition the disk.
Re: How to install MX Linux from other Linux? (no USB)
If it won't be a problem (say, it's your pc and you forgot the password) you know, there're ways to reset that.
Maybe as a workaround, install MX an another machine temporarily (to a tiny partition like 8GB on something external, unchecking and skipping the grub installation) then dd or on GParted copy-paste the partition to un-allocated space (which's just a bit bigger than the partition) ...
Maybe as a workaround, install MX an another machine temporarily (to a tiny partition like 8GB on something external, unchecking and skipping the grub installation) then dd or on GParted copy-paste the partition to un-allocated space (which's just a bit bigger than the partition) ...
- chrispop99
- Global Moderator
- Posts: 3409
- Joined: Tue Jan 27, 2009 2:07 pm
Re: How to install MX Linux from other Linux? (no USB)
Temporarily remove the HDD, and see if it boots from USB. If it does, plug the HDD back in whilst booted. You can then install to the HDD. You may need to mount it as root.
I'm assuming it's a SATA drive, not IDE.
Chris
I'm assuming it's a SATA drive, not IDE.
Chris
MX Facebook Group Administrator.
Home-built desktop - Core i5 9400, 970 EVO Plus, 8GB
DELL XPS 15
Lots of test machines
Home-built desktop - Core i5 9400, 970 EVO Plus, 8GB
DELL XPS 15
Lots of test machines
- anticapitalista
- Developer
- Posts: 4315
- Joined: Sat Jul 15, 2006 10:40 am
Re: How to install MX Linux from other Linux? (no USB)
Or boot from a cd/dvd if there is one.
So to answer the question, no there is no debootstrap method.
There is a boot fromiso one though.
So to answer the question, no there is no debootstrap method.
There is a boot fromiso one though.
anticapitalista
Reg. linux user #395339.
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - lean and mean.
https://antixlinux.com
Reg. linux user #395339.
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - lean and mean.
https://antixlinux.com
Re: How to install MX Linux from other Linux? (no USB)
Here are 2-to-3 ways:piakbt wrote: Thu Aug 20, 2020 8:49 am I have no access to BIOS, it is password-protected, so I cannot change boot order.
But I have sufficient privileges to configure grub, to partition the disk.
You can try to chainload booting from LiveUSB from grub.
On your existing grub menu, press "c" for command line.
First load the chainlaoder:
Code: Select all
insmod chain
Code: Select all
ls
Code: Select all
(hd1) (hd1,gpt1) (hd1,gpt2)
Code: Select all
(hd1) (hd1,msdos1) (hd1,msdos2)
Now change root, to the first partition on the LiveUSB:
Code: Select all
set root=(hd1,msdos1)
Code: Select all
ls /
Code: Select all
/antix /boot version made-by-live-usb-maker ...
Code: Select all
chainloader +1
boot
There are two other ways:
Boot from the ISO via GRUB, and install from the running ISOboot. (You might need to put the ISO on a partition not used by the installer.)
Such menentry to ISOboot: e.g. put into /boot/grub/custom.cfg an your existing grub-folder:
Code: Select all
menuentry "MX-19.2_August_x64.iso" {
insmod ext2
set isopath="/iso/MX-19.2_August_x64.iso"
search --no-floppy --file --set=root $isopath
probe -u $root --set=buuid
loopback loop $isopath
linux (loop)/antiX/vmlinuz buuid=$buuid fromiso=${isopath} lang=de tz=Europe/Berlin quiet nosplash
initrd (loop)/antiX/initrd.gz
}

Code: Select all
blab=MX-Live-USB
and further boot from the liveUSB:
Code: Select all
menuentry "MX-19.2_August_x64.iso" {
insmod ext2
set isopath="/iso/MX-19.2_August_x64.iso"
search --no-floppy --file --set=root $isopath
probe -u $root --set=buuid
loopback loop $isopath
linux (loop)/antiX/vmlinuz blab=MX-Live-usb lang=de tz=Europe/Berlin quiet nosplash
initrd (loop)/antiX/initrd.gz
}
Here a working example
/boot/grub/custom.cfg:
Code: Select all
submenu "MX ISO BOOT" {
menuentry "MX-19.2_August_x64.iso" {
insmod part_gpt
insmod part_msdos
insmod ext2
set isopath="/iso/MX-19.2_August_x64.iso"
search --no-floppy --file --set=root $isopath
probe -u $root --set=buuid
loopback loop $isopath
linux (loop)/antiX/vmlinuz buuid=$buuid fromiso=${isopath} kbd=de kbvar=nodeadkeys kbopt=caps:none lang=de tz=Europe/Berlin quiet nosplash
initrd (loop)/antiX/initrd.gz
}
menuentry "MX-19.2_KDE_x64.iso" {
insmod part_gpt
insmod part_msdos
insmod ext2
set isopath="/iso/MX-19.2_KDE_x64.iso"
search --no-floppy --file --set=root $isopath
probe -u $root --set=buuid
loopback loop $isopath
linux (loop)/antiX/vmlinuz buuid=$buuid fromiso=${isopath} kbd=de kbvar=nodeadkeys kbopt=caps:none lang=de tz=Europe/Berlin quiet nosplash
initrd (loop)/antiX/initrd.gz
}
menuentry "LiveUSB MX-19.2_KDE_x64" {
insmod part_gpt
insmod part_msdos
insmod ext2
set isopath="/iso/MX-19.2_KDE_x64.iso"
search --no-floppy --file --set=root $isopath
loopback loop $isopath
linux (loop)/antiX/vmlinuz blab=MX-Live-usb kbd=de kbvar=nodeadkeys kbopt=caps:none lang=de tz=Europe/Berlin quiet nosplash
initrd (loop)/antiX/initrd.gz
}
}
HTH

Re: How to install MX Linux from other Linux? (no USB)
Wow! All your help is just amazing, thanks a lot! I'll try to boot from iso.
Re: How to install MX Linux from other Linux? (no USB)
Wouldn't it just be simpler to reset the bios by removing the CMOS battery, waiting a few minutes and then replacing it?
HP 15; ryzen 3 5300U APU; 500 Gb SSD; 8GB ram
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;
In Linux, newer isn't always better. The best solution is the one that works.
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;
In Linux, newer isn't always better. The best solution is the one that works.
Re: How to install MX Linux from other Linux? (no USB)
j2mcgreg, you know, it's a corporate computer, so any hardware manipulation is not an option, unfortunately.