On 23/06/00 19:13 +0530, Rajesh Fowkar spewed into the LI bitstream:
>Hi,
>
>If I install Red Hat 6.2 on hda10 and mount my hda7 partition on /mnt/SuSE.
>Can I create a link Mail in my home directory on Red Hat 6.2 to point to my
>home Mail directory on SuSE(/mnt/SuSE/home/rajesh/Mail) where all my mail resides.
>
>Can I Share my Mail directory like this so that even If I boot in Red Hat 6.2 I
>will be able to use my same mailboxes from SuSE.
Something like this (btw, first change to single-user mode by logging in
as su. so nobody else uses the mail program at that time)
#Copy the files from /var/spool/mail to /new1/mail
#(new1 on a different partition)
cp -rp /var/spool/mail /new1
(-rp = recursively preserve permissions)
Use chown on each file, making everything identical to the original
directories.
cp -rp /var/spool/mqueue /new1
chown username filename
Remove the original files
cd /var/spool
rm -rf mqueue
rm -rf mail
add symlinks to reflect the new locations
ln -s /var/spool/mqueue /new1/mqueue
ln -s /var/spool/mail /new1/mail
reboot
shutdown -r now
hope this helps. Quite useful, especially in a production environment
where you have _lots_ of users and extra disk space is always welcome -
and also useful when you want to share your mail between two boxes or
two distros on the same box I suppose :)
Note: Use at your own risk ;)
--
Suresh Ramasubramanian + [EMAIL PROTECTED]
May your Tongue stick to the Roof of your Mouth with the Force of a
Thousand Caramels.
-----------------------------------------------------------------------
Check out the 'What to do before posting to the list' site
for a list of things to try before posting. The site is
at http://botsie.tripod.com/beforeposting/