- 论坛徽章:
- 0
|
1. find out the size of /usr, /var, etc by "du -sk /usr /var"
2. create partions for /usr; /var. (fdisk, reboot, newfs/mkfs)
3. mount the partions on /mnt/usr, /mnt/var, etc
4. reboot the system to single user mode
4. copy /usr, /var etc to the new file systems by "cd /; tar cf - usr | (cd /mnt; tar xf -)" , "cd /; tar cf - var | (cd /mnt; tar xf -)"
5. mv /usr /usr.old; mv /var /var.old
6. mkdir -m 555 /var /usr
7. add new file systems /usr, /var, etc onto /etc/fstab
8. "mount /var; mount /usr" to verify the syntax of /etc/fstab and mount the new file systems.
9. boot the system to run level 3 or 5 by "init 3" or "init 5"
10. verify if applications are functioning.
11. if no issues found, remove the old directories /usr.old /var.old
note:
. /home, /tmp should be on seperate file systems as well, theyt can be done together with /usr, /var
. new /var, /tmp, /home should be much larger than the existing ones. new /usr can be a bit larger than the exiting one. |
|