You are not logged in.

#1 2011-10-23 17:49:04

hendry
Member
From: Singapore
Registered: 2009-09-08
Posts: 157
Website

Boot into existing OS for rescuing it for example

Hi there,

I have a USB stick imaged with ARCH_201108 and I was hoping I can use the kernel on that to boot my existing Arch installation.
/dev/sda1: LABEL="xt" UUID="28a853a7-c93e-41d3-884a-e927c193f362" TYPE="ext4"


However when I try this it doesn't work. http://flic.kr/p/aygmtN


So how do I prepare some sort of rescue disk using Arch?


Many thanks,

Offline

#2 2011-10-23 18:01:55

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Boot into existing OS for rescuing it for example

Are you booting from your hard drive of from the USB?

Offline

#3 2011-10-23 18:26:16

hendry
Member
From: Singapore
Registered: 2009-09-08
Posts: 157
Website

Re: Boot into existing OS for rescuing it for example

From the USB stick. Lets pretend I b0rked my boot loader.

I think Ubuntu call this "rescue mode", though I want to do it it with Arch media.

Offline

#4 2011-10-23 18:31:07

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Boot into existing OS for rescuing it for example

I think the 'boot from existing installation' merely makes the live CD function as a bootloader.

You'll need to boot the live CD just as if you were installing and then mount your desktop partitions - that is, if your installation is broken and cannot boot. Still, the live CD is handy to do one on one backups (e.g. with dd).

Last edited by .:B:. (2011-10-23 18:35:51)


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2011-10-23 18:32:11

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: Boot into existing OS for rescuing it for example

Have a look at this wiki page.

Offline

#6 2011-10-23 18:57:00

hendry
Member
From: Singapore
Registered: 2009-09-08
Posts: 157
Website

Re: Boot into existing OS for rescuing it for example

.:B:. wrote:

You'll need to boot the live CD just as if you were installing and then mount your desktop partitions - that is, if your installation is broken and cannot boot. Still, the live CD is handy to do one on one backups (e.g. with dd).

What exactly is this "live CD" you refer to?

I still prefer to be able to boot straight into my partition...

Offline

#7 2011-10-23 19:01:28

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

Re: Boot into existing OS for rescuing it for example


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

Offline

#8 2011-10-23 19:06:28

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Boot into existing OS for rescuing it for example

hendry wrote:
.:B:. wrote:

You'll need to boot the live CD just as if you were installing and then mount your desktop partitions - that is, if your installation is broken and cannot boot. Still, the live CD is handy to do one on one backups (e.g. with dd).

What exactly is this "live CD" you refer to?

I still prefer to be able to boot straight into my partition...

You boot what you can, liveUSB in your situation, I suppose. Next, you chroot into your regular install - Raynman provided the link to the relevant wiki article.

Offline

#9 2011-10-23 21:52:33

hendry
Member
From: Singapore
Registered: 2009-09-08
Posts: 157
Website

Re: Boot into existing OS for rescuing it for example

karol wrote:

You boot what you can, liveUSB in your situation, I suppose. Next, you chroot into your regular install - Raynman provided the link to the relevant wiki article.

I don't want to chroot in, I want to boot straight in from the kernel on the USB... why can't I do that?

Offline

#10 2011-10-23 21:53:18

hendry
Member
From: Singapore
Registered: 2009-09-08
Posts: 157
Website

Re: Boot into existing OS for rescuing it for example

Don't want to boot an ISO. Off-topic. hmm

Offline

#11 2011-10-24 08:56:17

JamieKitson
Member
From: UK
Registered: 2010-10-18
Posts: 161
Website

Re: Boot into existing OS for rescuing it for example

The SystemRescueCD does this, you could see how it does it. I was also doing this with a USB hard drive, though admittedly it was a clone of the installed drive.

Last edited by JamieKitson (2011-10-24 08:57:13)

Offline

#12 2011-10-25 12:28:41

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: Boot into existing OS for rescuing it for example

I have a USB drive that I carry with me witha 4GB NTFS partition and a full installation of Arch.  You need to fire up a working linux system, plug the USB drive in and mount it edit /etc/mkinitcpio.conf and add the "usb" tag to the HOOKS section, bind mount /sys, /dev, and /proc to its own sys, dev, and proc directories, chroot into it, and run mkinitcpio -p linux.  On the console, the session would look something like this:

mount /dec/sdb1 /media/usb
vim /media/usb/etc/mkinitcpio.conf

... add "usb" to the HOOKS section ...

for a in sys dev proc; do mount --bind /$a /media/usb/$a; done
chroot /media/usb
mkinitcpio -p linux

... verify everything went okay ...

exit
for a in sys dev proc ""; do umount /media/usb/$a; done

This will make the Arch vmlinuz usb-aware when it's looking for a root device.

Last edited by synthead (2011-10-25 14:45:06)

Offline

#13 2011-10-25 21:13:32

hendry
Member
From: Singapore
Registered: 2009-09-08
Posts: 157
Website

Re: Boot into existing OS for rescuing it for example

For the record I repaired my system using the chroot method which I thought was a bit long winded.

Turned out there was a log file in /etc/modprobe.d that was making mkinitcpio choke. hmm

How do I mark this SOLVED?

Offline

Board footer

Powered by FluxBB