0

I wish to boot into ArchLinux ISO from the GRUB menu. I have learnt that this can be achieved by adding a menuentry to the

\etc\grub.d\40_custom

And regenerating the grub using

sudo update-grub

If the ISO was an Ubuntu ISO, the following menuentry has to be added to the \etc\grub.d\40_custom file

menuentry “Ubuntu 14.04 ISO” {
set isofile=”/home/name/Downloads/ubuntu-14.04.1-desktop-amd64.iso”
loopback loop (hd0,1)$isofile
linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=${isofile} quiet splash
initrd (loop)/casper/initrd.lz
}

But I need to boot from Arch Linux ISO. So what will should be the menuentry in this case?

If the answer varies with release, please explain the directory structure in ArchLinux ISO so that I can figure out values for each key like initd, linux, boot etc.

Thank you.

1

This is pretty well documented on the archlinux wiki, with entries for each distro. https://wiki.archlinux.org/index.php/Multiboot_USB_drive#Arch_Linux

You could use:

menuentry '[loopback]archlinux-2014.12.01-dual.iso' {
  set isofile='/boot/iso/archlinux-2014.12.01-dual.iso'
  loopback loop $isofile
  linux (loop)/arch/boot/x86_64/vmlinuz archisodevice=/dev/loop0 img_dev=$imgdevpath img_loop=$isofile earlymodules=loop
  initrd (loop)/arch/boot/x86_64/archiso.img
}

You have to customize the path of the iso file.

  • Thank you. That should work :) Will comeback if I have any problem – ant_1618 Sep 28 '16 at 20:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.