how to move /var to other partition?
Hello! I tryed to move my /var to other partiton. (/dev/md0)
So, I 1) mkdir /newvar 2) mount /dev/md40 /newvar 3) cp -Rax /var /newvar 4) mv /var /oldvar 4) change fstab to mount /var to /dev/md40 So, after reboot I'got errors: Calling the system activity data collector (sadc): Cannot open /var/log/sa/sa11: Permission denide System logger [FAILED] And system run at 1 runlevel, why? |
Quote:
Quote:
Quote:
|
Quote:
sorry, it is md40 |
I've found it difficult to move /var while the system is running with /var mounted.
What I have done is, copy /var... to the new partition. reboot using a live distro, like arch-linux, gparted or slax (I use gparted live cd (allows "make active boot" per HDD)). edit the "/etc/fstab", changing the address of the relevant line (my system has multiple partitions, /var is one of them). reboot. then you may remove the data from the old /var "partition". If it is just a directory, you'd be best off, doing a re-install with partitioning in mind. Cheers, Glenn |
All times are GMT -5. The time now is 03:31 AM. |