You are not logged in.

#1 2016-02-16 21:54:26

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Idea: recovery partition?

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

#2 2016-02-16 22:09:17

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Idea: recovery partition?

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

#3 2016-02-16 22:20:18

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Idea: recovery partition?

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

#4 2016-02-16 23:57:05

TCBear
Member
Registered: 2016-01-22
Posts: 34

Re: Idea: recovery partition?

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

#5 2016-02-17 00:15:36

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: Idea: recovery partition?

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

#6 2016-02-17 01:05:23

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

Re: Idea: recovery partition?

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

#7 2016-02-23 10:30:53

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Re: Idea: recovery partition?

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

#8 2016-02-23 15:11:21

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Idea: recovery partition?

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

#9 2016-02-23 17:15:05

jjacky
Member
Registered: 2011-11-09
Posts: 347
Website

Re: Idea: recovery partition?

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

#10 2016-02-23 17:29:01

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Idea: recovery partition?

@ 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

#11 2016-02-24 09:19:45

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Re: Idea: recovery partition?

Nope, changing to kernel instead of linux didnt work either... hmmm.....

Offline

#12 2016-03-04 17:18:12

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Idea: recovery partition?

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

#13 2016-03-09 14:41:26

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Re: Idea: recovery partition?

alphaniner wrote:

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

Board footer

Powered by FluxBB