View previous topic :: View next topic |
Author |
Message |
ghodawalaaman n00b

Joined: 20 Mar 2025 Posts: 2
|
Posted: Wed Apr 02, 2025 6:43 am Post subject: Need an explaination of mount command flags |
|
|
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 |
|
 |
Zucca Moderator


Joined: 14 Jun 2007 Posts: 4003 Location: Rasi, Finland
|
Posted: Wed Apr 02, 2025 11:02 am Post subject: |
|
|
- --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 |
|
 |
powerN00b n00b


Joined: 11 Jul 2024 Posts: 10
|
Posted: Fri Apr 04, 2025 11:57 am Post subject: |
|
|
Don't tell newcomers about arch-chroot script  |
|
Back to top |
|
 |
Banana Moderator


Joined: 21 May 2004 Posts: 1957 Location: Germany
|
|
Back to top |
|
 |
ghodawalaaman n00b

Joined: 20 Mar 2025 Posts: 2
|
Posted: Sat Apr 05, 2025 2:31 pm Post subject: |
|
|
@Zucca Thank you for the explanation, however I still think that it should be added to the handbook. |
|
Back to top |
|
 |
pingtoo Veteran


Joined: 10 Sep 2021 Posts: 1587 Location: Richmond Hill, Canada
|
Posted: Sat Apr 05, 2025 3:26 pm Post subject: |
|
|
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 |
|
 |
kimchi_sg Advocate

Joined: 26 Nov 2004 Posts: 3039
|
Posted: Sun Apr 06, 2025 5:23 am Post subject: Re: Need an explaination of mount command flags |
|
|
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 |
|
 |
|