LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   enlarging /var partition (https://www.linuxquestions.org/questions/linux-general-1/enlarging-var-partition-320389/)

freebies 05-05-2005 10:30 AM

enlarging /var partition
 
hi

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 03:14 PM.