Moving /var to new partition
I've searched for this already but didn't get the specific answer I'm looking for, so here goes a new post.
My daughter used to dual boot XP/Slack 9 on her laptop. She decided to do away with the dual boot and run slack 9.1 alone (she likes kopete better than trillian was her reason heh). At the end of her hard disk, I made a 1 gig partition to hold some data from XP she wanted to keep. Slack is up and running, and the win partition is now reiserfs. What I'd like to do is move /var to this partition. Is this possible to do on the /var folder? I'm asking because it's so dynamic, she has an ATI video chip and it spits out messages to the x log pretty frequently. Here's my partition scheme Code:
cfdisk 2.12 hda3 = /boot hda4 = / hda5 = /usr/local hda6 = /home hda7 = unmounted <future /var> any ideas/suggestions/help is appreciated |
You can give it a try.
What I'd do is load the boot CD and then chroot the main partitions ( not really needed, but it's easier than typing /mnt/sysimage all the time ). From there, I'd do a cp -R from /var to /newvar, then mv /var /oldvar;mv /newvar /var, then change the fstab entry to point to the partition of the new /var. Reboot. Hopefully that's a good enough outline for you on how to do it. |
Good idea. I never thought of using a boot cd. I'm trying it now :eek:
|
All times are GMT -5. The time now is 12:56 AM. |