You are not logged in.

#1 2012-01-31 20:09:30

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,677
Website

boot 2011.08.19 installation media from grub2 via loopback [SOLVED]

Not wanting to necrobump this old thread, I opted to ask the question again here.  Has anyone successfully booted the arch iso (recovery purposes) from a grub or grub2 menu?  I added the following to my /boot/grub/grub.cfg but it errors out on me and doesn't boot.  Advice is appreciated.

menuentry "Archlinux-2011.08.19-netinstall-x86_64.iso" {
set isofile="/archives/archlinux-2011.08.19-netinstall-x86_64.iso"
loopback loop (hd0,7)$isofile
linux (loop)/arch/boot/x86_64/vmlinuz boot=arch findiso=$isofile
initrd (loop)/arch/boot/x86_64/archiso.img
}

Here is the error after booting:

Decompressing Linux... Parsing ELF... done.
Booting the kernel.
ash: closing paren expected
:: Starting [udev]
:: Triggering uevents...done.
:: Running Hook [memdisk]
:: Running Hook [archiso]
:: Running Hook [archiso_pxe_nbd]
:: Running Hook [archiso_loop_mnt]
:: Waiting for boot device...
Waiting 30 seconds for device /dev/disk/by-label/ ...
ERROR: boot device didn't show up after 30 seconds...
   Falling back to interactive prompt
    You can try to fix the problem manually, log out when you are finished
sh: can't access tty: job control turned off
[ramfs /]#

Last edited by graysky (2012-02-03 14:41:41)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2012-02-01 13:27:17

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: boot 2011.08.19 installation media from grub2 via loopback [SOLVED]

archisolabel=ARCH_201108 img_label=%FS_LABEL_WHERE_ISO_IS_LOCATED% img_loop=/%PATH_TO_ISO_ON_FS_LABEL%/archlinux-2011.08.19-netinstall-x86_64.iso earlymodules=loop

earlymodules=loop, is just a workaround for 2011.08.19.

Offline

#3 2012-02-01 21:33:14

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,677
Website

Re: boot 2011.08.19 installation media from grub2 via loopback [SOLVED]

djgera wrote:
archisolabel=ARCH_201108 img_label=%FS_LABEL_WHERE_ISO_IS_LOCATED% img_loop=/%PATH_TO_ISO_ON_FS_LABEL%/archlinux-2011.08.19-netinstall-x86_64.iso earlymodules=loop

earlymodules=loop, is just a workaround for 2011.08.19.

Thanks for the reply.  I'm a little confused, can you spoon feed me smile

Your advice:
archisolabel=ARCH_201108
img_label=%FS_LABEL_WHERE_ISO_IS_LOCATED%
img_loop=/%PATH_TO_ISO_ON_FS_LABEL%/archlinux-2011.08.19-netinstall-x86_64.iso earlymodules=loop

My entry for grub2:
menuentry "Archlinux-2011.08.19-netinstall-x86_64.iso" {
set isofile="/archives/archlinux-2011.08.19-netinstall-x86_64.iso"
loopback loop (hd0,7)$isofile
linux (loop)/arch/boot/x86_64/vmlinuz boot=arch findiso=$isofile
initrd (loop)/arch/boot/x86_64/archiso.img
}


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2012-02-01 22:50:58

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: boot 2011.08.19 installation media from grub2 via loopback [SOLVED]

just set the "linux" command right:

linux (loop)/arch/boot/x86_64/vmlinuz archisolabel=ARCH_201108 img_label=%FS_LABEL_WHERE_ISO_IS_LOCATED% img_loop=$isofile earlymodules=loop

Just change img_label= to match your fs-label, if this is not set, set to any valid value.

Offline

#5 2012-02-02 21:38:18

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,677
Website

Re: boot 2011.08.19 installation media from grub2 via loopback [SOLVED]

@djgera - thanks for the suggestion.  Here is what I have but I still get the error described above:

menuentry "Archlinux-2011.08.19-netinstall-x86_64.iso" {
set isofile="/archives/archlinux-2011.08.19-netinstall-x86_64.iso"
loopback loop (hd0,7)$isofile
linux (loop)/arch/boot/x86_64/vmlinuz archisolabel=ARCH_201108 img_label=data img_loop=$isofile earlymodules=loop
initrd (loop)/arch/boot/x86_64/archiso.img
}

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2012-02-02 22:37:40

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: boot 2011.08.19 installation media from grub2 via loopback [SOLVED]

same error? Is not possible...

how looks parsed cmdline?
execute:

cat /proc/cmdline
blkid
ls -l /dev/disk/by-label

Offline

#7 2012-02-03 09:06:58

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,677
Website

Re: boot 2011.08.19 installation media from grub2 via loopback [SOLVED]

<<< Posted removed by author >>>

Last edited by graysky (2012-02-03 14:41:21)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#8 2012-02-03 13:29:13

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: boot 2011.08.19 installation media from grub2 via loopback [SOLVED]

Not of your system... tongue

Anyway now I remember that img_label= is not suported in 2011.08.19, I implemented this one month later, so use img_dev=/dev/sda7 instead.

PS: I suggest to use latest testiso wink http://releng.archlinux.org

Last edited by djgera (2012-02-03 13:29:31)

Offline

#9 2012-02-03 14:41:02

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,677
Website

Re: boot 2011.08.19 installation media from grub2 via loopback [SOLVED]

Success!  Thanks!

menuentry "Archlinux-2011.08.19-netinstall-x86_64.iso" {
set isofile="/archives/archlinux-2011.08.19-netinstall-x86_64.iso"
loopback loop (hd0,7)$isofile
#linux (loop)/arch/boot/x86_64/vmlinuz boot=arch findiso=$isofile
linux (loop)/arch/boot/x86_64/vmlinuz archisolabel=ARCH_201108 img_dev=/dev/sda7 img_loop=$isofile earlymodules=loop
initrd (loop)/arch/boot/x86_64/archiso.img
}

I updated the wiki: https://wiki.archlinux.org/index.php/GR … From_Grub2


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#10 2012-02-03 14:53:28

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: boot 2011.08.19 installation media from grub2 via loopback [SOLVED]

Great!

Offline

Board footer

Powered by FluxBB