What is the purpose of bind mounting (rbind specifically) /sys?Mount points in a chrootRecursive umount after...
How does Harry wear the invisibility cloak?
Can a country avoid prosecution for crimes against humanity by denying it happened?
Does POSIX guarantee the paths to any standard utilities?
How to describe hit point damage without talking about wounds
How to generate all 3×3 matrices with a,a,a,a,b,b,b,c,c?
'Hard work never hurt anyone' Why not 'hurts'?
Why did the Joi advertisement trigger K?
Spare the Dying during Rage Beyond Death
Has Rey's new lightsaber been seen before in canon or legends?
Do index funds really have double-digit percents annual return rates?
Was "The Hobbit" ever abridged?
co-son-in-law or co-brother
How does speed affect lift?
Importance of electrolytic capacitor size
Is Levitate supposed to basically disable a melee based enemy?
'This one' as a pronoun
Is there any difference between these two sentences? (Adverbs)
Do mortgage points get applied directly to the principal?
IEEE Registration Authority mac prefix
When making yogurt, why doesn't bad bacteria grow as well?
Which is the best password hashing algorithm in .NET Core?
Travel to USA with a stuffed puppet
Why don't they build airplanes from 3D printer plastic?
Would you recommend a keyboard for beginners with or without lights in keys for learning?
What is the purpose of bind mounting (rbind specifically) /sys?
Mount points in a chrootRecursive umount after rbind mountWhy doesn't mount respect the read only option for bind mounts?Trouble with understanding the concept of mountingbind mounting and df outputWhat is a bind mount?umount /dev: Invalid argumentWhy are these mounts needed before updating initramfs?User and Group permissions for mnt folder and files access in CentOS 7bind mounting source to itself
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I was going through the Gentoo Handbook in preparation for installing Gentoo on my system.
In the Chrooting section, these commands are given:
mount --rbind /sys /mnt/gentoo/sys
mount --make-rslave /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
mount --make-rslave /mnt/gentoo/dev
These are the doubts I have regarding this section:
I'm no Linux expert but based on a little digging I did, I found out that a bind mount
takes an existing directory tree and replicates it under a different point. The directories and files in the bind mount are the same as the original. Any modification on one side is immediately reflected on the other side, since the two views show the same data.
What I don't understand is, how does making a bind mount in /mnt/gentoo/sys help? The original directory tree is in the installation medium which will be removed. So any changes made in the medium will not be reflected here. What is the purpose of using this command instead of
mount -t sysfs sysfs /mnt/gentoo/sys
What is the purpose of using rbind? Assuming that the purpose of the bind mounting was only to create a /sys file on the /mnt/gentoo and not make use of bind mount's reflective feature, why use of rbind? Again, as far as I know, rbind is used when there are mount points under the original directory being bind mounted. But there aren't any mount points under /sys are there?
filesystems mount gentoo bind-mount
New contributor
add a comment |
I was going through the Gentoo Handbook in preparation for installing Gentoo on my system.
In the Chrooting section, these commands are given:
mount --rbind /sys /mnt/gentoo/sys
mount --make-rslave /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
mount --make-rslave /mnt/gentoo/dev
These are the doubts I have regarding this section:
I'm no Linux expert but based on a little digging I did, I found out that a bind mount
takes an existing directory tree and replicates it under a different point. The directories and files in the bind mount are the same as the original. Any modification on one side is immediately reflected on the other side, since the two views show the same data.
What I don't understand is, how does making a bind mount in /mnt/gentoo/sys help? The original directory tree is in the installation medium which will be removed. So any changes made in the medium will not be reflected here. What is the purpose of using this command instead of
mount -t sysfs sysfs /mnt/gentoo/sys
What is the purpose of using rbind? Assuming that the purpose of the bind mounting was only to create a /sys file on the /mnt/gentoo and not make use of bind mount's reflective feature, why use of rbind? Again, as far as I know, rbind is used when there are mount points under the original directory being bind mounted. But there aren't any mount points under /sys are there?
filesystems mount gentoo bind-mount
New contributor
add a comment |
I was going through the Gentoo Handbook in preparation for installing Gentoo on my system.
In the Chrooting section, these commands are given:
mount --rbind /sys /mnt/gentoo/sys
mount --make-rslave /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
mount --make-rslave /mnt/gentoo/dev
These are the doubts I have regarding this section:
I'm no Linux expert but based on a little digging I did, I found out that a bind mount
takes an existing directory tree and replicates it under a different point. The directories and files in the bind mount are the same as the original. Any modification on one side is immediately reflected on the other side, since the two views show the same data.
What I don't understand is, how does making a bind mount in /mnt/gentoo/sys help? The original directory tree is in the installation medium which will be removed. So any changes made in the medium will not be reflected here. What is the purpose of using this command instead of
mount -t sysfs sysfs /mnt/gentoo/sys
What is the purpose of using rbind? Assuming that the purpose of the bind mounting was only to create a /sys file on the /mnt/gentoo and not make use of bind mount's reflective feature, why use of rbind? Again, as far as I know, rbind is used when there are mount points under the original directory being bind mounted. But there aren't any mount points under /sys are there?
filesystems mount gentoo bind-mount
New contributor
I was going through the Gentoo Handbook in preparation for installing Gentoo on my system.
In the Chrooting section, these commands are given:
mount --rbind /sys /mnt/gentoo/sys
mount --make-rslave /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
mount --make-rslave /mnt/gentoo/dev
These are the doubts I have regarding this section:
I'm no Linux expert but based on a little digging I did, I found out that a bind mount
takes an existing directory tree and replicates it under a different point. The directories and files in the bind mount are the same as the original. Any modification on one side is immediately reflected on the other side, since the two views show the same data.
What I don't understand is, how does making a bind mount in /mnt/gentoo/sys help? The original directory tree is in the installation medium which will be removed. So any changes made in the medium will not be reflected here. What is the purpose of using this command instead of
mount -t sysfs sysfs /mnt/gentoo/sys
What is the purpose of using rbind? Assuming that the purpose of the bind mounting was only to create a /sys file on the /mnt/gentoo and not make use of bind mount's reflective feature, why use of rbind? Again, as far as I know, rbind is used when there are mount points under the original directory being bind mounted. But there aren't any mount points under /sys are there?
filesystems mount gentoo bind-mount
filesystems mount gentoo bind-mount
New contributor
New contributor
edited 3 mins ago
muru
44.5k5 gold badges111 silver badges182 bronze badges
44.5k5 gold badges111 silver badges182 bronze badges
New contributor
asked 7 mins ago
Karthikeya KazaKarthikeya Kaza
1
1
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Karthikeya Kaza is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f538921%2fwhat-is-the-purpose-of-bind-mounting-rbind-specifically-sys%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Karthikeya Kaza is a new contributor. Be nice, and check out our Code of Conduct.
Karthikeya Kaza is a new contributor. Be nice, and check out our Code of Conduct.
Karthikeya Kaza is a new contributor. Be nice, and check out our Code of Conduct.
Karthikeya Kaza is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f538921%2fwhat-is-the-purpose-of-bind-mounting-rbind-specifically-sys%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown