On Sat, 09 Jun 2001, you wrote:
> hi!
>   i want to allocate my /export to my /var, i mean re-assign the partition
> to /var  and just let /export to share with /   how do i do that?
> 
> thanks a lot!
> rebecca 

hi rebecca,

there are several ways to do this.  i'll try to explain one which doesn't
involve repartioning; and you have to do this in single user mode:

1. do a 'du -bs /var/*' and see which subdir under your /var would be most
suitable to inherit the size of your /export.  let's say it's /var/spool

2. create a directory under /  let's call it /new-export
move everything you have under /export to /new-export.
please remember to preserve ownerships and perms.

3. unmount the partition which holds /export and reformat it.
(or maybe you can just erase everything on it).

4. you may now rename /new-export to /export

5. now mount the partition (in step 3)
and move everything under /var/spool into it.
again, maintain the ownerships and perms.

6. then edit your /etc/fstab to reflect the changes.
something like the ff. just supply the missing fields, etc.
=====<old fstab excerpt>======
/dev/hda1       swap
/dev/hda2       /
/dev/hda3       /var
/dev/hda4       /export
=====<end of old fstab excerpt>======

=====<new fstab excerpt>======
/dev/hda1       swap
/dev/hda2       /
/dev/hda3       /var
/dev/hda4       /var/spool
=====<end of new fstab excerpt>======

7. pray before rebooting your system.


i know the others have better ways of doing this.
but this is the solution which popped into my head first.
btw, i did a similar operation to a server just last night,
so i'm fairly sure it will work.  step 7 is crucial :)
but then again, ymmv.

hth,
-eric
--
 .--.  Enrique D. Rosel II                     office://+63.2.894.3592/
( () ) Q Linux Solutions, Inc.
 `--\\ A Philippine Open Source Solutions Co.  http://www.q-linux.com/
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to