On Mon, Dec 16, 2002 at 01:47:10PM +1100, Simon Bryan wrote: > HI all > I am constantly having trouble with the /var partition on a rh7.2 server. It > runs Dans Gaurdian and Squid. The following is the output from df -h > Filesystem Size Used Avail Use% Mounted on > /dev/hda6 372M 106M 247M 31% / > /dev/hda1 45M 5.9M 37M 14% /boot > /dev/hda3 9.4G 227M 8.6G 3% /home > none 219M 0 219M 0% /dev/shm > /dev/hda2 26G 6.6G 17G 27% /usr > /dev/hda7 251M 238M 664k 100% /var > > Question: Is it possible to repartition a live system and move some of the > space on the /usr partition over to /var? > If so what utility(ies) could I use?
You don't need to repartition. I suspect you could just swap /var and /home: 1. boot single user. 2. clean out /home as much as possible 3. cd /home; mkdir oldhome; mv * oldhome 4. cd /var; cp -a . /home 5. edit /etc/fstab, make /home /var and vice versa 6. reboot, into single user again. 7. cd /var/oldhome; cp -a . /home 8. reboot 9. if everything looks ok, rm -r /var/oldhome Matt -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
