0% found this document useful (0 votes)
46 views1 page

Var Partition Movement

To move the /var directory to a new partition, the document outlines making a new partition and formatting it, mounting it to /mnt/newvar, copying existing /var contents to the new partition while in single-user mode, renaming /var to /var.old, creating a new /var directory, unmounting and remounting the new partition as /var, and adding it to /etc/fstab.

Uploaded by

Manish Malhotra
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views1 page

Var Partition Movement

To move the /var directory to a new partition, the document outlines making a new partition and formatting it, mounting it to /mnt/newvar, copying existing /var contents to the new partition while in single-user mode, renaming /var to /var.old, creating a new /var directory, unmounting and remounting the new partition as /var, and adding it to /etc/fstab.

Uploaded by

Manish Malhotra
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Steps to move /var to a New Partition in Linux. 1) 1) make the new partition, & format with mkfs.

ext3
2) mount the new filesystem in /mnt # mkdir /mnt/newvar # mount /dev/sdb1 /mnt/newvar 3) Go to single-user mode so that there is no rw activity on the directory during the process # init 1 4) Backup data in var only (not the /var directory itself) # cd /var # cp -ax * /mnt/newvar 5) Rename the /var directory (to make sure this has worked before deleting it!) # cd / # mv var var.old 6) Make new var directory # mkdir /var 7) Unmount the new partition # umount /dev/sdb1 8) Remount it as /var # mount /dev/sdb1 /var 9) If everything goes fine then put an entry into /etc/fstab /dev/sdb1 /var ext3 defaults 00

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy