-   Linux - General (
-   -   enlarging /var partition (

freebies 05-05-2005 10:30 AM

enlarging /var partition

because of mysql i'm running into troubles with size of /var partition
but i have second disk which aint even partitioned.

how can i create new partition at second disk and move the current /var partition there ?

thank you

acid_kewpie 05-05-2005 10:36 AM

data in /var is typically just regular files, so it's not a scary thing to move. just create teh new partition with cfrdisk or such like, format with mke2fs or mkreiserfs and then mount it somewhere, e.g. /mnt/newvar. next just use "cp -Rv /var/ /mnt/newvar/" and sit back. once done, just update /etc/fstab to relfect the new location of the partition.

All times are GMT -5. The time now is 11:10 AM.