You are not logged in.

#1 2016-11-21 19:35:34

tommyjcarpenter
Member
Registered: 2016-11-21
Posts: 7

Arch choose livecd architecture, chroot problems

I had a power failure during an update. I need to rebuild my initramfs and/or try to continue the upgrade anew because I cannot boot (magic number error).

The problem is I can't chroot. I have a x64 system, but when I go into the liveCD, downloaded from here: http://archlinux.surlyjake.com/archlinu … 016.11.01/, called "archlinux-2016.11.01-dual.iso  ", I get: chroot: cannot run command '/usr/bin/bash': Exec format error

The following page: https://wiki.archlinux.org/index.php/change_root  says that should only happen if the CD architecture is wrong.

A screenshot is attached too: http://imgur.com/a/NJhDc. The disk appears to be x64 but It doesn't work.

What is the problem? Can I download a guaranteed x64 disk?

Offline

#2 2016-11-21 20:11:12

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: Arch choose livecd architecture, chroot problems

MIght be able to restore something broken by reinstalling the broken packages that were upgraded during the power failure.
You can use pacman without invoking chroot with pacman -r /mnt --cachedir=/mnt/var/cache/pacman/pkg and then append the usual pacman command.
I'd try to reinstall bash first.

Offline

#3 2016-11-21 20:30:28

tommyjcarpenter
Member
Registered: 2016-11-21
Posts: 7

Re: Arch choose livecd architecture, chroot problems

OK I tried this but it does not change anything, I still get the exec format error.

Is there some way I can curl down a working initramfs into /mnt/boot?

Last edited by tommyjcarpenter (2016-11-21 20:31:38)

Offline

#4 2016-11-21 20:34:13

tommyjcarpenter
Member
Registered: 2016-11-21
Posts: 7

Re: Arch choose livecd architecture, chroot problems

Wow! I got farther by upgrading bash, then linux, then bash again.. I wish I wrote down everything I executed but I kept reinstalling things via this method and *eventually* chroot worked. Thanks!

Last edited by tommyjcarpenter (2016-11-21 21:45:53)

Offline

Board footer

Powered by FluxBB