[opensuse] Accessing a partition more than once (ar equivalent functionality)
I know this is a strange question, but here goes: I have three partitions. One is /home. The other two are different versions of openSUSE. I boot one of them (obviously). I then mount the other version as /otheros. The thing is, I want to access /home as /home from the booted OS (that works) as well as the other mounted OS. I chroot to the other OS mount point when this is needed. I am trying to eliminate the need to re-boot to get to the other OS for compiling. I need to provide, on a regular basis, software that is compiled/linked for a 10.0 openSUSE. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 8-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 17 June 2009 12:25:20 Roger Oberholtzer wrote:
I know this is a strange question, but here goes:
I have three partitions. One is /home. The other two are different versions of openSUSE. I boot one of them (obviously). I then mount the other version as /otheros.
The thing is, I want to access /home as /home from the booted OS (that works) as well as the other mounted OS. I chroot to the other OS mount point when this is needed.
I guess the following works: mount --bind /home /otheros/home see man mount (8) for details about --bind. The same I do for /proc and /dev already in chroots: mount --bind /proc /otheros/proc ... chroot /otheros Andreas -- Andreas Jaeger, Director Platform / openSUSE, aj@suse.de SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
On Wed, 2009-06-17 at 12:31 +0200, Andreas Jaeger wrote:
On Wednesday 17 June 2009 12:25:20 Roger Oberholtzer wrote:
I know this is a strange question, but here goes:
I have three partitions. One is /home. The other two are different versions of openSUSE. I boot one of them (obviously). I then mount the other version as /otheros.
The thing is, I want to access /home as /home from the booted OS (that works) as well as the other mounted OS. I chroot to the other OS mount point when this is needed.
I guess the following works: mount --bind /home /otheros/home
see man mount (8) for details about --bind.
The same I do for /proc and /dev already in chroots: mount --bind /proc /otheros/proc
Hmm. I mount the /proc in my chroot, but without the --bind Nonetheless, this did the trick. Thanks! -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 8-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 17 Jun 2009 12:55:12 +0200, you wrote:
Hmm. I mount the /proc in my chroot, but without the --bind
Which isn't a very good idea. Binding mounts are the only clean way to mount something multiple times in different places. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, 2009-06-18 at 11:38 +0200, Philipp Thomas wrote:
On Wed, 17 Jun 2009 12:55:12 +0200, you wrote:
Hmm. I mount the /proc in my chroot, but without the --bind
Which isn't a very good idea. Binding mounts are the only clean way to mount something multiple times in different places.
I have this methodology from a few years back when I was using Gentoo. I am sure things have changed since then. I have updated my docs to match this improved information. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 8-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
In
On Wed, 17 Jun 2009 12:55:12 +0200, you wrote:
Hmm. I mount the /proc in my chroot, but without the --bind Which isn't a very good idea. Binding mounts are the only clean way to mount something multiple times in different places.
From what I understand, that's not true of the "sysfs" and "proc" (and a few other) virtual file systems. They can be mounted as many times as needed without the use of --bind. -- Boyd Stephen Smith Jr. ,= ,-_-. =. bss@iguanasuicide.net ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.net/ \_/
On Thu, 2009-06-18 at 09:18 -0500, Boyd Stephen Smith Jr. wrote:
In
, Philipp Thomas wrote: On Wed, 17 Jun 2009 12:55:12 +0200, you wrote:
Hmm. I mount the /proc in my chroot, but without the --bind Which isn't a very good idea. Binding mounts are the only clean way to mount something multiple times in different places.
From what I understand, that's not true of the "sysfs" and "proc" (and a few other) virtual file systems. They can be mounted as many times as needed without the use of --bind.
It would sort of make sense, as /proc is read-only, right? -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 8-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
In <1245335778.4725.75.camel@acme.pacific>, Roger Oberholtzer wrote:
On Thu, 2009-06-18 at 09:18 -0500, Boyd Stephen Smith Jr. wrote:
In
, Philipp Thomas wrote: On Wed, 17 Jun 2009 12:55:12 +0200, you wrote:
Hmm. I mount the /proc in my chroot, but without the --bind
Which isn't a very good idea. Binding mounts are the only clean way to mount something multiple times in different places.
From what I understand, that's not true of the "sysfs" and "proc" (and a few other) virtual file systems. They can be mounted as many times as needed without the use of --bind.
It would sort of make sense, as /proc is read-only, right?
Not at all, but reads/writes to "files" in proc are handled not by reading/writing the bits from/to some medium, but rather receiving/presenting them from/to specific kernel functions. In particular, there are still a number of tunable parameters under /proc/sys, IIRC. -- Boyd Stephen Smith Jr. ,= ,-_-. =. bss@iguanasuicide.net ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.net/ \_/
On Thu, 2009-06-18 at 10:10 -0500, Boyd Stephen Smith Jr. wrote:
In <1245335778.4725.75.camel@acme.pacific>, Roger Oberholtzer wrote:
It would sort of make sense, as /proc is read-only, right?
Not at all, but reads/writes to "files" in proc are handled not by reading/writing the bits from/to some medium, but rather receiving/presenting them from/to specific kernel functions.
In particular, there are still a number of tunable parameters under /proc/sys, IIRC.
I thought the things in /proc that were for system tuning and all were moved out of /proc. I confess that I have had less need for this these days, so I have not kept current on it. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
In <1245351400.5823.4.camel@linux-kvg8.site>, Roger Oberholtzer wrote:
On Thu, 2009-06-18 at 10:10 -0500, Boyd Stephen Smith Jr. wrote:
In <1245335778.4725.75.camel@acme.pacific>, Roger Oberholtzer wrote:
It would sort of make sense, as /proc is read-only, right?
Not at all, but reads/writes to "files" in proc are handled not by reading/writing the bits from/to some medium, but rather receiving/presenting them from/to specific kernel functions.
In particular, there are still a number of tunable parameters under /proc/sys, IIRC.
I thought the things in /proc that were for system tuning and all were moved out of /proc.
Not yet on my oS 11.1.
I confess that I have had less need for this these days, so I have not kept current on it.
I think there was some work to try and move this stuff to a "configfs" filesystem and reduce proc to just /proc/<pid> stuff and /proc/foostat stuff. I haven't actually used a Linux system that did so though. -- Boyd Stephen Smith Jr. ,= ,-_-. =. bss@iguanasuicide.net ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.net/ \_/
participants (4)
-
Andreas Jaeger
-
Boyd Stephen Smith Jr.
-
Philipp Thomas
-
Roger Oberholtzer