Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] mount -o bind /dev /mnt/gentoo/dev
Date: Tue, 23 Jun 2015 09:14:42
Message-Id: 55892378.4040000@gmail.com
In Reply to: [gentoo-user] mount -o bind /dev /mnt/gentoo/dev by Ran Shalit
1 On 23/06/2015 09:27, Ran Shalit wrote:
2 > Hello,
3 >
4 > I am a beginner with Gentoo.
5 > I have followed the instruction for the installation, and tried to see
6 > that I really understand all of them.
7 > There is the command:
8 > mount -o bind /dev /mnt/gentoo/dev
9 > Which I'm not sure I really understand.
10
11
12 It's a bind mount, not a regular mount. A regular mount takes a
13 volume/block device/whatever and mounts it somewhere.
14
15 A bind mount makes a copied mount that is already present on your system
16 and makes it also available somewhere else.
17
18 You do not want /dev/ and /sys mounted twice - they are core system
19 directories and bad things can happen if you mount them twice then
20 change one of them. You get sync issues for one thing. Much much easier
21 to use bind mounts and potential problems just go away
22
23 > 2. Another thing I've noticed is that some tutorial add to the above
24 > also bind to sys folder , and other do not include it.
25 > mount -o bind /sys /mnt/gentoo/sys
26
27 The handbook says to do it, and it makes sense to do it.
28
29 Any tutorial that doesn't say it, is wrong/outdated or it's author
30 doesn't understand.
31
32 If the official handbook says to do it, and some other post from Joe
33 Random Blogger says not to, which one you gonna believe?
34
35 > Therefore I would like to ask if it is really required ?
36
37 Yes
38
39 > Thank you,
40 > Ran
41 >
42
43
44 --
45 Alan McKinnon
46 alan.mckinnon@×××××.com

Replies

Subject Author
Re: [gentoo-user] mount -o bind /dev /mnt/gentoo/dev David Haller <gentoo@×××××××.de>
Re: [gentoo-user] mount -o bind /dev /mnt/gentoo/dev Mike Gilbert <floppym@g.o>