Renaming folder
I have just installed a new hard drive to hold my /var/ftp folder. I follow several lines of advice and mounted my new drive with a folder called /new. Then I copied everything from /var/ftp to the /new directory. Now I think I need to unmount the old /var in the /etc/fstab file and then rename the /new directory to /var and then change the mount in /ect/fstab. Is this correct? And how do I change the directory's name. All help is greatly appreciated. Thanks jeff
|
I think this is pretty simple. If this is your second hard drive, and only has the one partition, then:
mount -t ext? /dev/hdb1 /var/ftp (make sure that the existing /var/ftp directory is empty). If this works then edit /etc/fstab accordingly. Then rmdir /new If you're just wanting to rename a directory: mv /old_dir_name /new_dir_name If this is incorrect, guru's feel free to correct me... |
su
umount /new mv /new /var vi /etc/fstab Edit it to replace the /new with /var But I don't think you want /var. It's a default for many system files. Personally, I would rather use /mnt/blah |
All times are GMT -5. The time now is 08:27 PM. |