You are not logged in.

#1 2013-12-25 00:24:28

hiep4895
Member
Registered: 2013-12-24
Posts: 6

[SOLVED] Problem with change root

https://wiki.archlinux.org/index.php/Sy … hange_root

Your Arch install will already be mounted on /mnt
..
# mount -t proc none /mnt/arch/proc
# mount -t sysfs none /mnt/arch/sys
# mount -o bind /dev /mnt/arch/dev

is "/mnt/arch" right?

Last edited by hiep4895 (2013-12-26 04:24:13)

Offline

#2 2013-12-25 00:26:58

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

Re: [SOLVED] Problem with change root

Yup.

What is the problem you're having?

Offline

#3 2013-12-25 00:42:20

hiep4895
Member
Registered: 2013-12-24
Posts: 6

Re: [SOLVED] Problem with change root

I got this error

mount: mount point /mnt/arch/proc does not exist

my Arch install mounted on /mnt

Last edited by hiep4895 (2013-12-25 01:17:29)

Offline

#4 2013-12-25 00:52:55

hiep4895
Member
Registered: 2013-12-24
Posts: 6

Re: [SOLVED] Problem with change root

I tried

 mount -t proc nome /mnt/proc 

that was ok. but it differs from material.

Offline

#5 2013-12-25 12:53:20

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

Re: [SOLVED] Problem with change root

You need to create the mountpoints first.
Read https://wiki.archlinux.org/index.php/Chroot

Offline

#6 2013-12-25 13:07:22

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED] Problem with change root

That wiki entry does seem wrong.

/mnt/arch/* would be fine if the root file system were mounted at /mnt/arch, but the rest of that example in the wiki is using /mnt as the mount point for the root file system.

Either mount point will work, but it has to be consistent.

Last edited by Trilby (2013-12-25 13:08:42)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2013-12-25 15:38:05

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

Re: [SOLVED] Problem with change root

Trilby wrote:

That wiki entry does seem wrong.
...
Either mount point will work, but it has to be consistent.

Yes. I added the "accuracy dispute" flag.

Offline

#8 2013-12-25 21:31:39

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: [SOLVED] Problem with change root

In the history, you can see at 9:11 on 15 March 2010 that those lines were added by Gen2ly. Given the large number of changes made by that user on that day, it's not surprising some mistakes slipped through. Unfortunately the Arch wiki does not have the large number of anal peer reviewers that Wikipedia has.

I've edited the page so it will be internally consistent. There may be some concern that the choice of /mnt as mountpoint conflicts with the treatment on the Change Root page but I think so long as these pages are internally consistent, people can figure the rest out for themselves.

Offline

Board footer

Powered by FluxBB