On Friday 26 November 2004 01:00, Jan RUBBRECHT wrote:
> Hi,
>
> I've installed my proxy server (squid) on a mandrake 9.1 on a VMWare
> running on a Windows 2000 Server... just to start and learn more about
> Linux.
> I have a lot of servers installed, so my 4Gb disk is getting a little
> bit full. I had 3 partitions, /, /home and swapspace.
> I tried adding a new (virtual) disk with diskdrake, wanting /var to be
> mounted on the new filesystem. That folder is most likely to expand
> the most and the fastest.
> I got a couple problems with diskdrake so I mounted it on /var2 and
> thought "I can fix that later..."
> Anyway, I later moved all existing data from /var to /var2 after
> stopping all services, removed /var and wanted to mv /var2 /var....
> didn't work :-/
> I changed /etc/fstab so the new disk would mount on /var next time but
> no such luck. Instead a new /var folder was created and /var2 was
> emtpy (after rebooting and reconfiguring /etc/fstab I found my data
> again).
>
> Could anyone please give me a hint how I can proceed to move /var to
> the new disk?
>
> Tia,
> Jan
>
> PS. I'm using gmail, please make sure you send your reply back to the
> list, thanks.

You are not doing much wrong. In brief to move /var to a new partition the 
steps are :-

1/ Make a new partition and mount it on var2

2/ Copy /var to /var2 with
cp -a /var/* /var2
(/var2 should now contain the files previously on /var including symlinks)

3/ Revise /etc/fstab so /the partition currently mounted as /var2 will be 
mounted as /var

4/ Reboot

derek
-- 
www.jennings.homelinux.net
http://twiki.mdklinuxfaq.org

____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to