Tuesday, September 2, 2008

Re: [BLUG] Amarok

On Tue, Sep 2, 2008 at 10:35 AM, Shei, Shing-Shong <shei@cs.indiana.edu> wrote:
> Yes, it's possible to share both swap partition and /home between
> distributions although the later might be a little bit tricky. Let's
> say, you paritioned the drive into 4 (primiary) ones:
>
> hda - / for distro 1
> hdb - swap
> hdc - /home
> hdd - / for distro 2
>
> When you boot to distro 1, your /etc/fstab (on hda) looks like:
> /dev/hda / ext3 defaults 1 1
> /dev/hdc /home ext3 defaults 1 2
> /dev/hdb swap swap defaults 0 0


PS on newer kernels the device names will probably be sd* rather than
hd* -- even for IDE devices: the new IDE controller exposes a
SCSI-like interface, AFAIR.

> Make sure that your UID is consistent between these two; i.e., if
> you create an account foo on both distro's, the UID on both distro's
> should be the same. The tricky part is that the program you compiled
> on distro 1 (and put in /home/foo/bin) might use different shared libraries
> than the one on distro 2. In this case, the program can only be run on
> distro 1 but not distro 2.
>
So anything in ~/bin should preferably be architecture-independent
scripts, or statically-compiled binaries. Of course, that won't help
you if /home is shared between two different architectures
(i386/x86_64 and ppc, perhaps)

Perhaps you can get by with compiling against a pre-defined LSB
target, though. Anyone knows how feasible that is in current
distributions?

Sharing between a Debian-derived and a Red Hat-derived distribution,
sticking to the Debian-style UID might be preferable. Red Hat and
other RPM distributions tend to start at 500, Debian at 1000, and as
far as I can tell anything above 500 on Red Hat is reserved for normal
users anyway.

--
Michel Salim
http://hircus.jaiku.com/
_______________________________________________
BLUG mailing list
BLUG@linuxfan.com
http://mailman.cs.indiana.edu/mailman/listinfo/blug

No comments: