On Fri, 26 Nov 2004 12:00 pm, 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.
Can't see a whole lot wrong with what you did, but maybe I am missing something in your explanation. Anyway FWIW, here's how I would do the move: - make a partition on the new disk - init 1 to boot into single user mode - mount the new partition as /newvar - cp -a /var /newvar - cd / - mv var oldvar - mkdir var - change fstab to mount the new partition as /var - reboot Having verified that all is working, you can now safely: rm -rf /oldvar If you prefer to use a GUI editor to change fstab, just create a copy of it with the change in place before booting into level 1, then: mv /etc/fstab /etc/fstab-old mv /etc/fstab-new /etc/fstab in place of the "change fstab..." step. HTH Brian
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________
