You are not logged in.
Hi,
I am experimenting with booting archlinux iso from hard disk through my existing grub , I placed iso inside a folder at the root of existing arch linux with grub working and entered the following entry for iso into the grub
menuentry "Arch ISO" {
set isofile="/bobiso/archlinux.iso"
set dri="free"
set lang="en_US"
set keytable="us"
set timezone="Europe/Helsinki"
search --no-floppy -f --set=root $isofile
probe -u $root --set=abc
set pqr="/dev/disk/by-uuid/$abc"
loopback loop $isofile
linux (loop)/arch/boot/x86_64/vmlinuz-linux img_loop=$isofile driver=$dri tz=$timezone lang=$lang keytable=$keytable copytoram
initrd (loop)/arch/boot/x86_64/initramfs-linux.img
}Iso boots from grub but stops and keeps looking for
"/dev/disk/by-uuid/$abc" and then drops me into # shell
What can I change in the above entry to make this iso boot from hard disk?
Last edited by saleem (2024-07-21 20:51:34)
Offline
Is your root an lvm partition?
The reason I'm asking is I can never get this to work if the iso is contained within an lvm, even if I added insmod_lvm to grub. However, it works if I move the iso into a partition outside the lvm.
BTW, your config is pretty similar to mine.
Never argue with an idiot, they will drag you down to their level and then beat you with experience.
It is better to light a candle than curse the darkness.
A journey of a thousand miles begins with a single step.
Offline
Is your root an lvm partition?
The reason I'm asking is I can never get this to work if the iso is contained within an lvm, even if I added insmod_lvm to grub. However, it works if I move the iso into a partition outside the lvm.
BTW, your config is pretty similar to mine.
No the ISO is in the root directory within a folder , no lvm . I made some changes to the entry as below but I still get the same error
menuentry "Arch ISO" {
insmod ext2
insmod loopback
insmod iso9660
set root=(hd0,20)
#set isopartition=hd0,20
search --no-floppy --fs-uuid --set=root e29834fc-6815-49a4-acdf-2bebabc6721b
set isofile="/bobiso/archlinux.iso"
set dri="free"
set lang="en_US"
set keytable="us"
set timezone="Europe/Helsinki"
loopback loop (hd0,20)$isofile
linux (loop)/arch/boot/x86_64/vmlinuz-linux img_dev=/dev/disk/by-uuid/$isouuid img_loop=$isofile copytoram
initrd (loop)/arch/boot/x86_64/initramfs-linux.img
}Im wondering what if I add UUID of the iso into the line will it boot the iso?
search --no-floppy --fs-uuid --set=root e29834fc-6815-49a4-acdf-2bebabc6721b
Offline
Ok I managed to fix and boot the iso successfully by making following changes
menuentry "Arch ISO" {
insmod ext2
insmod loopback
insmod iso9660
set isopartition=hd0,20
set imgdevuuid=e29834fc-6815-49a4-acdf-2bebabc6721b
search --no-floppy --set=root --fs-uuid e29834fc-6815-49a4-acdf-2bebabc6721b
set isofile="/bobiso/archlinux.iso"
set dri="free"
set lang="en_US"
set keytable="us"
set timezone="Europe/Helsinki"
loopback loop $isofile
#loopback loop (hd0,20)$isofile
linux (loop)/arch/boot/x86_64/vmlinuz-linux img_dev=UUID=$imgdevuuid img_loop=$isofile copytoram
initrd (loop)/arch/boot/x86_64/initramfs-linux.img
}took some reading on the forum but its worth it , no need to copy iso to a USB anymore or extracting contents of iso onto a partition and chrooting into it and completing installation indirectly , this is the most easy and quick method for me to install from any arch iso booting it from a hard disk ,
Offline
You don't need to specify the linux and initrd manually since the ISO contains a loopback.cfg file which will do it for you. See https://wiki.archlinux.org/title/Multib … ly_release
Offline
You don't need to specify the linux and initrd manually since the ISO contains a loopback.cfg file which will do it for you. See https://wiki.archlinux.org/title/Multib … ly_release
Thanks , will test it , I am just about to test the new ISO so will give it a try now .
Offline