Gentoo Archives: gentoo-user

From: "Gabriel M. Beddingfield" <gabriel@××××××.org>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: bash: mount: command not found
Date: Sun, 05 Dec 2004 02:03:31
Message-Id: cotq8u$45g$1@sea.gmane.org
1 Don wrote:
2
3 > [root@hei don]# chroot /mnt/gentoo /bin/bash
4 > bash-2.05b# env-update
5 >>>> Regenerating /etc/ld.so.cache...
6 > bash-2.05b# source /etc/profile
7 > hei / # ls
8 > bin boot dev etc home lib lost+found mnt opt proc root sbin
9 > stage1-x86-2004.3.tar.bz2 sys tmp usr var
10 > hei / # mount -t proc none /mnt/gentoo/proc
11 > bash: mount: command not found
12 > 'mount /mnt/gentoo' also says 'no such file or directory'.
13 >
14 > Any ideas?
15
16 It looks like you're installing gentoo. If so, then you have the commands
17 out of order. You should have done the mount command before chrooting. If
18 you goofed and chrooted before mounting proc, you may be able to do this:
19
20 (from your chroot environment)
21 # exit
22 # mount -t proc none /mnt/gentoo/proc
23 # chroot /mnt/gentoo /bin/bash
24 # env-update
25 # source /etc/profile
26
27 Then you'll be back where you left off.
28
29 Viz. http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=6
30
31 To understand what's happening, man chroot. But the readers digest version
32 is this: 'chroot /mnt/gentoo /bin/bash' means that what was
33 once /mnt/gentoo is now / (and you're using bash for a shell).
34
35
36 --
37 G a b r i e l M . B e d d i n g f i e l d
38
39
40 --
41 gentoo-user@g.o mailing list