Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
what is different between" mount -o bind proc and -t proc"?
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
twime
n00b
n00b


Joined: 16 Aug 2014
Posts: 6

PostPosted: Sat Aug 16, 2014 6:09 pm    Post subject: what is different between" mount -o bind proc and -t pr Reply with quote

It is the second time I install gentoo on my computer.My computer has been installed opensuse so I decide to install gentoo from suse.Now, i have compiled kernel,and install some software like bumblebee,ppp,etc on opensuse system. But the page "https://wiki.gentoo.org/wiki/Installation_alternatives#Installation_from_non-Gentoo_LiveCDs" confuses me.
Quote:
At this point, you can pick up with the standard install documentation at part 4. However, when you are asked to mount the proc system, issue the following command instead:
root # mount -o bind /proc /mnt/gentoo/proc

When you're ready to unpack the stage tarball in part 5, you will need to use a different tar command to ensure that proper group IDs are enforced on the unpacked stage:
root # tar --numeric-owner -xvjpf stage3-*.tar.bz2


but I use "mount -t proc /proc /mnt/gentoo/proc" and "tar -xvjpf stage3-*.tar.bz2" instead of them. what is different ?I have foud man but I dont know exact means.

If it lead to some bugs, How can I fix them?
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1369
Location: Montréal

PostPosted: Sat Aug 16, 2014 6:25 pm    Post subject: Reply with quote

In my opinion, you should only use "mount -o bind /proc /mnt/gentoo/proc" and any bind after you untar the stage 3. The stage 3 create device files in the /mnt/gentoo/dev directory that stay statically there when this directory is not bind with the /dev host one.

Those static device files can be usefull at the early boot process of Gentoo, before udev or an other /dev manager start and mount /dev as a tmpfs.

If you untar the stage 3 after the bind of /mnt/gentoo/dev to /dev is done. the device files that the stage 3 create in the /mnt/gentoo/dev directory can be mask by the bind and not write, what should'nt be. In plus, it may write in the /dev host directory.
_________________
Paul
Back to top
View user's profile Send private message
twime
n00b
n00b


Joined: 16 Aug 2014
Posts: 6

PostPosted: Sun Aug 17, 2014 12:19 am    Post subject: Reply with quote

Logicien wrote:
In my opinion, you should only use "mount -o bind /proc /mnt/gentoo/proc" and any bind after you untar the stage 3. The stage 3 create device files in the /mnt/gentoo/dev directory that stay statically there when this directory is not bind with the /dev host one.

Those static device files can be usefull at the early boot process of Gentoo, before udev or an other /dev manager start and mount /dev as a tmpfs.

If you untar the stage 3 after the bind of /mnt/gentoo/dev to /dev is done. the device files that the stage 3 create in the /mnt/gentoo/dev directory can be mask by the bind and not write, what should'nt be. In plus, it may write in the /dev host directory.



But what is different between" mount -o bind proc and mount -t proc"
I use the latter
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13985

PostPosted: Sun Aug 17, 2014 12:55 am    Post subject: Reply with quote

The first bind mounts an existing copy of whatever is at /proc onto a new location. The second mounts a namespace appropriate version of procfs at the specified location.
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