Article View: alt.os.linux.mandrake
Article #273Re: 1 linux chunked into 1 "real" linux and 1 vmware-emulated... (bit longish)
From: Joost Kremers
Date: Wed, 15 May 2002 15:37
Date: Wed, 15 May 2002 15:37
56 lines
3643 bytes
3643 bytes
Spufi wrote: > Bing! Doing! [long explanation snipped] so basically (just lemme know if i can do this in dutch) what you want is this: you want to have a drake install which you want to run by itself at home and under vmware at work. but because some of the settings will need to be different under vmware than when drake is running on its own, you want to have two partitions with different settings, and mount the appropriate one. > But (here are my REAL questions :) > - is it possible to create 2 partitions with the same mount-point > (/etc's)? If so, how? in principle, yes, if you make sure only one gets mounted. (if you mount them both, only the second one will be accessible.) if you can set up the boot process so that it determines how it is running before it mounts everything in /etc/fstab, you can mount the partition you need. > - will it be sufficient to only swap the /etc's ... should I consider to > swap other "/????" to when using the "other alternative way"? > As far as I can 'remember' the X-changes are only made within /etc, not > in i.e. the /home part, but on the part of network adapter ??????? should be the same, AFAIK. config in /etc/rc.d/ or /etc/init.d, and additional files such as /etc/hosts, /etc/HOSTNAME etc. personally, i think i would set things up a different way. there are really only a few config files that need to be different, so if you can determine early on in the boot process how you're running, i would create multiple versions of the config files that need to be adjusted. then, right after all file systems are mounted, you can issue a few mv or cp commands that make sure the correct config files are in place. (e.g. put an XF86Config.vmware and an XF86Config.bare in /etc/X11, and then do `cp /etc/X11/XF86Config.<option> /etc/X11/XF86Config' in the boot process. this way, if you find a config file that's not in /etc, but does need to be adjusted, you can easily do so without "unsharing" the entire directory it's on. if there is no way to tell whether you're booting in vmware or bare, you have a problem. perhaps you make two root partitions, sharing as many dirs as you can. it should be possible to share /opt, /usr and /home (make sure all users and groups have the same UID/GID on both installs), and perhaps /var, /tmp, /bin and /sbin as well. but this is only a wild guess... -- Joost Kremers Is er leven op pluto http://baserv.uci.kun.nl/~jkremers Kun je dansen op de maan
Technical Details
Message-ID:
<slrnae503a.6i.mrlinguist@laptop.joostkremers.nl>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!telocity-west!TELOCITY!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!surfnet.nl!kun.nl!not-for-mailReferences:
<3CE2787D.8020506@atpandora.dotbe>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 100a19,2c619a4faf911609 X-Google-Attributes: gid100a19,public X-Google-Thread: f8a83,2c619a4faf911609 X-Google-Attributes: gidf8a83,public X-Google-ArrivalTime: 2002-05-15 08:37:57 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!telocity-west!TELOCITY!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!surfnet.nl!kun.nl!not-for-mail From: Joost Kremers <mrlinguist@nospam.invalid> Newsgroups: alt.os.linux.mandrake,be.comp.os.linux Subject: Re: 1 linux chunked into 1 "real" linux and 1 vmware-emulated... (bit longish) Followup-To: be.comp.os.linux Date: 15 May 2002 15:37:56 GMT Organization: University of Nijmegen Lines: 56 Message-ID: <slrnae503a.6i.mrlinguist@laptop.joostkremers.nl> References: <3CE2787D.8020506@atpandora.dotbe> NNTP-Posting-Host: catv0149.extern.kun.nl X-Trace: odysseus.uci.kun.nl 1021477076 10215 131.174.120.149 (15 May 2002 15:37:56 GMT) X-Complaints-To: usenet@odysseus.uci.kun.nl NNTP-Posting-Date: 15 May 2002 15:37:56 GMT Mail-Copies-To: nobody User-Agent: slrn/0.9.7.2 (Linux)