|
|||
|
Partitions
Hi. I currently have two 120gb hard drives in my server, part of the first is at /home, and the whole second hard drive is at /home2
If I transfer all the accounts from /home2 to /home , it makes a symlink on home2 to the home directory on /home If I delete all the symlinks, can I unmount it as /home2 and remount it as /backup for a backup drive? Will deleting the symlinks affect anything? |
|
|||
|
What could I do to make something run through that file and change all /home2 to /home automatically?
|
|
||||
|
Just remembered, the path is also in the /etc/proftpd/username files, so you will need to look and see if they also show home2. If so, just download all those files and search/replace "/home2/" with "/home/" in them and the httpd.conf file.
|
|
|||
|
Is there a command to look through all files for anything containing /home2
? Thanks. |
|
||||
|
grep is what you want
|
|
|||
|
does anyone have the needed commands to remove /home2 and add /backups in its place? Thanks.
|
|
|||
|
things this will probably break:
1) any users who have php includes in the form /home/username/www/filename.php 2) horde / imap (last time we moved accounts from home2 to home it didnt update the /home/etc/passwd file with the new locations of various files Just thought i would point that out
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|