Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need an explaination of mount command flags
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
ghodawalaaman
n00b
n00b


Joined: 20 Mar 2025
Posts: 2

PostPosted: Wed Apr 02, 2025 6:43 am    Post subject: Need an explaination of mount command flags Reply with quote

Hello,

I followed the Gentoo handbook and stuck at this section: https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Base#Mounting_the_necessary_filesystems

handbook explains what does /proc , /sys and /dev is for however it doesn't explain why we pass --bind and --make-slave flags. I looked into man page of mount which explain *what* that flags do but it doesn't explain *why*.

imo there should be a good explanation of what/why of the flags, I have asked it in IRC, the dev said, "wiki is already too verbose and we should not add explanation of each and every command in the handbook". asking here to get some feedback and suggestion. :)

Thanks in advance!
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 4003
Location: Rasi, Finland

PostPosted: Wed Apr 02, 2025 11:02 am    Post subject: Reply with quote

  • --bind needs to be used because just symlinking mounts won't work when entered a chroot. Afaik --bind is the same as passing -o bind.
  • --make-slave on the other hand makes sure the changes you make in the chroot won't propagate into parent root (outside of chroot), so that you can't accidentally mess up the live environment.


There may be other reasons, but that's how I see it.
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
powerN00b
n00b
n00b


Joined: 11 Jul 2024
Posts: 10

PostPosted: Fri Apr 04, 2025 11:57 am    Post subject: Reply with quote

Don't tell newcomers about arch-chroot script :wink:
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1957
Location: Germany

PostPosted: Sat Apr 05, 2025 7:35 am    Post subject: Reply with quote

powerN00b wrote:
Don't tell newcomers about arch-chroot script :wink:

Please stay on topic. Particular with new users
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
ghodawalaaman
n00b
n00b


Joined: 20 Mar 2025
Posts: 2

PostPosted: Sat Apr 05, 2025 2:31 pm    Post subject: Reply with quote

@Zucca Thank you for the explanation, however I still think that it should be added to the handbook.
Back to top
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1587
Location: Richmond Hill, Canada

PostPosted: Sat Apr 05, 2025 3:26 pm    Post subject: Reply with quote

A handbook's purpose isn't to teach concepts but to guide users through specific processes. It focuses on clear procedures, anticipated outcomes, and troubleshooting steps. Detailing the reasoning behind each action and defining every option would make the handbook lengthy, tedious, and more like a lecture than a practical guide for task completion.

So I respectfully disagree on adding them into handbook.
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 3039

PostPosted: Sun Apr 06, 2025 5:23 am    Post subject: Re: Need an explaination of mount command flags Reply with quote

ghodawalaaman wrote:
the dev said, "wiki is already too verbose

I heartily agree, the Installation Handbook is already too wordy for some newbies.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum