Zobrazit stránkuStarší verzeZpětné odkazyNahoru Tato stránka je pouze pro čtení. Můžete si pouze prohlédnout zdrojový kód, ale ne ho měnit. Zeptejte se správce, pokud si myslíte, že něco není v pořádku. ====== How to move or relocate /var folder to a new partition in Linux ====== * Add a new hard disk to the server. <note> Note: If this is a virtual machine, see how to add a new virtual hard disk to the VM with a corresponding vendor. </note> * Switch to single-user mode: <code> init 1 </code> Note: This will reboot the server into single-user mode where services aren't started and networking is offline for the server. Please login as root when the login dialog is presented and proceed to open a terminal window. Copy the data in var only to the new mounted filesystem: <code> cp -apx /var/* /mnt/newvar </code> Rename the current /var directory for backup purposes: <code> mv /var /var.old </code> Make the new var directory: <code> mkdir /var </code> Edit the /etc/fstab file: Replace /mnt/newvar with /var Save and Close the file. Note: The new partition is now configured to be mounted at /var on boot. Restart the server. linux/presun_var_na_jine_misto.txt Poslední úprava: 2022/05/31 08:57autor: badtotem