Mailinglist Archive: opensuse (1473 mails)

< Previous Next >
Re: [opensuse] Accessing a partition more than once (ar equivalent functionality)
  • From: Andreas Jaeger <aj@xxxxxxx>
  • Date: Wed, 17 Jun 2009 12:31:04 +0200
  • Message-id: <200906171231.05124.aj@xxxxxxx>
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 Jaeger, Director Platform / openSUSE, aj@xxxxxxx
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

< Previous Next >
Follow Ups