[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > On the target machine, I have a nice big harddrive with plenty of data > on it, currently mounted at /mnt/200... ideally, I'd like to have that > remounted as /var (because I'm gonna have /var/www, /var/shared on there > shortly), however there are currently lots of files/directories on the > existing /var directory. > > So, how can I duplicate the current /var structure onto the 200GB drive, > remove the current /var structure and the remount the 200GB drive as > /var... possibly without having to reboot? OK, this is actually easier that you might think... in /mnt/200 put 2 directories "www" and "shared" $ mkdir /mnt/200/www $ mkdir /mnt/200/shared then make a symlink in /var to these directories in turn. $ ln -fs /mnt/200/www /var/www $ ln -fs /mnt/200/shared /var/shared Who says GNU/Linux was hard ?? (don't forget the config files in /etc) HTH Neil -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFSQVQz3Av8JKgzxQRAtHlAKCunnULDDa38zFPrzf/hlwfhyqZRACfZ+YA 2wWVD6J38FpwD3HFJ50mwn8= =XEC5 -----END PGP SIGNATURE----- -- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html