You are not logged in.

#1 2014-03-25 02:22:48

wobbol
Member
Registered: 2014-03-25
Posts: 4

[SOLVED] Problem with arch-chroot

Edit: solution changed partiton type from vfat to ext3


The Arch install guide asked me to run

# arch-chroot /mnt

I then receved
chroot: failed to run command '/bin/sh'; No such file or directory

# mount -t proc proc /mnt/proc
# mount --rbind /sys /mnt/sys/
# mount --rbind /dev /mnt/dev/
# cd /mnt
# chroot /mnt /bin/bash

returns the same error

# systemd-nspawn 

returns
Failed to correct timezone of container: Operation not permitted

I though mabie it had to do with the inablity to execute binarys on the target_root but

remount-ing with the exec option changes nothing


I am using EFI boot have mounted my target_root and boot partitions to /mnt and /mnt/boot respectively.



Please help I want the awesomeness smile

Last edited by wobbol (2014-03-26 16:46:40)

Offline

#2 2014-03-25 02:37:49

progandy
Member
Registered: 2012-05-17
Posts: 3,750

Re: [SOLVED] Problem with arch-chroot

If you follow the directions, it should work. First mount (with executable rights), then install with pacstrap, genfstab, then arch-chroot. The required shell should have been created during the pacstrap phase.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2014-03-25 02:58:59

jpgg
Member
Registered: 2014-01-15
Posts: 43

Re: [SOLVED] Problem with arch-chroot

In the Beginners' Guide, the command is :

arch-chroot /mnt /bin/bash

This command should work and yours should have worked too, though.

Last edited by jpgg (2014-03-25 03:01:24)

Offline

#4 2014-03-25 03:29:26

wobbol
Member
Registered: 2014-03-25
Posts: 4

Re: [SOLVED] Problem with arch-chroot

alrght i tried running everything again and pacstrap is saying

error: could not open file /mnt/var/cache/pacman/pkg/vi-1:050325-3-x86_64.pkg.tar.xz.part: Invalid argument
(more lines than the default buffer will hold)
error: could not open file /mnt/var/cache/pacman/pkg/vi-1:050325-3-x86_64.pkg.tar.xz.part: Invalid argument

I did try

arch-chroot /mnt /bin/bash

and even

arch-chroot /mnt /usr/bin/bash

i shouldn't need to make a new fstab each boot sense I already wrote them the first time right?

Offline

#5 2014-03-25 03:31:45

wobbol
Member
Registered: 2014-03-25
Posts: 4

Re: [SOLVED] Problem with arch-chroot

ummm alright somehow my target_root is formatted vfat ... O.O;

Offline

#6 2014-03-25 03:35:46

wobbol
Member
Registered: 2014-03-25
Posts: 4

Re: [SOLVED] Problem with arch-chroot

alright pacstrap is actually doing things now I think it will be smooth sailing from here.


Thanks guys!

Offline

#7 2014-03-25 03:54:51

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

Re: [SOLVED] Problem with arch-chroot

Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

Board footer

Powered by FluxBB