You are not logged in.

#1 2014-12-03 11:31:20

romeluc
Member
Registered: 2014-12-03
Posts: 12

[SOLVED] chroot at installation

Please, could someone explain the need for this command in the Beginners' guide:

# arch-chroot /mnt /bin/bash

Last edited by romeluc (2014-12-03 12:33:08)

Offline

#2 2014-12-03 11:44:52

thearcherblog
Member
Registered: 2014-10-30
Posts: 165

Re: [SOLVED] chroot at installation

Hello,

This command makes "active" the filesystem that you're mounting and creates the envinroment so that is active as it is your current installation.

I will try to explain it better with an example smile

If you have an Arch installation corrupted because you install a package or whatever, you can boot with the CD, mount the file system, ch-root on it and then you can run the pacman or whatever command is necessary to fix it smile

More information: http://en.wikipedia.org/wiki/Chroot
I hope it answer your question about smile

Offline

#3 2014-12-03 12:11:11

romeluc
Member
Registered: 2014-12-03
Posts: 12

Re: [SOLVED] chroot at installation

Hello. Thanks for the reply.

I think I understand now. If we use pacman after chrooting, it will be the pacman of the new root directory and not any other. If we were to use just cd instead, then we can only have the pacman of the old root.

Offline

#4 2014-12-03 12:23:53

thearcherblog
Member
Registered: 2014-10-30
Posts: 165

Re: [SOLVED] chroot at installation

romeluc wrote:

Hello. Thanks for the reply.

I think I understand now. If we use pacman after chrooting, it will be the pacman of the new root directory and not any other. If we were to use just cd instead, then we can only have the pacman of the old root.

Exactly smile

So you can edit your first post and mark it as [SOLVED]

Regards,


TheArcher

Offline

Board footer

Powered by FluxBB