You are not logged in.
Pages: 1
Is it possible, or has it been ever thought of, to have a 1gb partition dedicated to store just the arch Linux iso image so you could boot it from your HDD syslinux install in case you have to perform some recovery tasks?
Like: btrfs screwed something up and you have to restore a snapshot. The usual procedure would be to get your cd or usb with arch on it, boot from there and fix the stuff. Of course, you could have such drive lying around just in case... But, what if you dont? Then, you must have a secondary pc in order to download the iso and copy it and create a boot drive,but wouldn't it be more practical to have this spare Gb just for this purpose? Maybe just a 1gb boot partition would be enough.
Thoughts? Is it even possible?
Thanks.
Offline
GRUB and syslinux can boot ISO images. Some people do that with the Arch Linux live image. The people I know keep it in /boot.
Edit: And other things than GRUB or syslinux. I think one guy uses neither. I'll have to ask him.
Last edited by fsckd (2016-02-16 22:15:59)
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
If you're gonna lay out 1GB, IMO you should just install a minimal system and keep it up to date. Mine is ~700MB.
That may not be worth it unless the live image lacks something you rely on, though.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
You would probably need to keep that image up to date, for the key rings and pacman to work, for example; it might be less hassle to keep the latest installer image dd to USB with the computer.
The "Install from existing Linux" ArchWiki has some interesting suggestions like turning the swap partition into a place to put the latest image, then mounting and crooting into it. Maybe you could get some ideas from there.
*Edit
I read through the wiki I suggested again, and it was a little different than I stated. Sorry about that.
Last edited by TCBear (2016-02-17 02:44:30)
Offline
Who doesn't keep a recovery system handy on a USB stick? It doesn't need to be Arch, and it doesn't need to be updated. I have SystemRescueCd on an old 512M USB stick I've had for years.
Last edited by 2ManyDogs (2016-02-17 00:19:59)
Offline
I have a small partition with a minimal install on it; you can also mount the live iso as others have suggested.
I think this is on the wiki but for grub, /etc/grub.d/40_custom:
menuentry "Archlinux-2016.02.01-dual.iso" --class iso {
set isofile="/iso/archlinux-2016.02.01-dual.iso"
set img="/dev/sdb1"
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
loopback loop (hd1,1)$isofile
linux (loop)/arch/boot/x86_64/vmlinuz archisolabel=ARCH_201602 img_dev=$img img_loop=$isofile earlymodules=loop
initrd (loop)/arch/boot/x86_64/archiso.img
}Offline
I'm having a hard time implementing this into syslinux, here's my syslinux entry:
LABEL archiso
MENU LABEL Arch LINUX ISO
LINUX memdisk
INITRD ../archlinux-2016.02.01-dual.iso
APPEND iso
And i have the iso file stored as /boot/archlinux-2016.02.01-dual.iso
however, i can't boot the iso, when I select the menu entry, the screen just flickers for a fraction of a second and nothing happens: I remain on syslinux.
What am I missing?
Offline
Use 'KERNEL memdisk' instead of 'LINUX memdisk'. 'LINUX' is intended specifically for Linux kernels.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
Pretty sure using LINUX should work as well (does for me, and is even used on syslinux's own wiki about memdisk).
Anyhow, 32bit system? If so you might have to increase memory, see https://wiki.archlinux.org/index.php/Mu … it_systems for more.
Offline
@ jjacky I thought I'd remembered reading that LINUX and KERNEL were synonomous, but according to syslinux wiki:
LINUX image
You can use this, instead of using KERNEL file to boot a linux kernel image.
That's from a cached version (Feb 13) because syslinux.org is down.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
Nope, changing to kernel instead of linux didnt work either... hmmm.....
Offline
I just ran into the same thing trying to boot to a floppy image. Eventually realized that memdisk is not in /boot/syslinux/
durrr...
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
I just ran into the same thing trying to boot to a floppy image. Eventually realized that memdisk is not in /boot/syslinux/
durrr...
i already gave up!!! It does work once you copy /usr/lib/syslinux/bios/memdisk to /boot/syslinux!
LINUX memdisk
INITRD ../iso/archlinux........iso
APPEND iso raw
Thanks!!!!!!!
Offline
Pages: 1