You are not logged in.

#1 2015-07-17 21:11:22

adRn
Member
Registered: 2015-07-17
Posts: 2

Problem with arch-chroot

Let me describe all the commands, so you can check I didn't skip anything important.

Before anything, with gparted (live), I've made sda8 for swap and sda10 as root fs "/". And I already had sda1 as ESP/EFI partition.

The problem is on the last line:

Steps I've made after booting with secure boot disabled... wrote:

loadkeys us-acentos
wifi-menu
ping -c 3 www.google.com
mkswap /dev/sda8
swapon /dev/sda8
mount /dev/sda10 /mnt
mkdir -p /mnt/boot
mount /dev/sda1 /mnt/boot
pacstrap -i /mnt base base-devel
...wait
genfstab -U -p /mnt >> /mnt/etc/fstab
cat /mnt/etc/fstab
...seems ok, it has boot, swap and root fs mounted.
arch-chroot /mnt /bin/bash
... "ERROR: failed to setup resolv.conf" ? file wasn't in /etc, only fstab there. And I checked my connection was still active. So? Any Ideas?

Then I tried with these steps at the wiki but I got errors about /bin/bash not there, tried copying it from "/usr/bin" to "/mnt/bin" but it still didn't work. So I turned off the pc and forgot about arch linux :( ... But I'll retry in a few days, if you point any ideas!

thx in advance for reading up my post.

Offline

#2 2015-07-19 08:41:06

linoge
Member
Registered: 2015-07-19
Posts: 3

Re: Problem with arch-chroot

Just an idea, but have you tried

cp /etc/resolv.conf /mnt/etc/resolv.conf

There seems to be a recent commit to support chroots without /etc/resolv.conf link

Last edited by linoge (2015-07-19 08:41:17)

Offline

#3 2015-07-20 10:05:16

zeusk
Member
Registered: 2014-01-25
Posts: 3

Re: Problem with arch-chroot

You haven't mounted your root partition to /mnt.

Offline

#4 2015-07-20 10:13:13

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Problem with arch-chroot

You ran pacstrap with -i. I suspect you messed up something there. Run it without to have pacstrap automatically not mess up things for you.

zeusk wrote:

You haven't mounted your root partition to /mnt.

What is sda10, then?

Offline

#5 2015-07-20 21:36:17

adRn
Member
Registered: 2015-07-17
Posts: 2

Re: Problem with arch-chroot

linoge wrote:

There seems to be a recent commit to support chroots without /etc/resolv.conf link

I might try that. OR running pacstrap without -i

Thx everyone for trying to help

Offline

Board footer

Powered by FluxBB