LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-21-2002, 06:37 AM   #1
jeffpoulsen
Member
 
Registered: Sep 2002
Posts: 46

Rep: Reputation: 15
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
 
Old 10-21-2002, 07:41 AM   #2
peeples
Member
 
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180

Rep: Reputation: 30
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...

Last edited by peeples; 10-21-2002 at 07:43 AM.
 
Old 10-21-2002, 01:54 PM   #3
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Folder Max Size and Limiting SSH access to home folder. Mefistofeles Linux - General 4 11-26-2005 02:09 PM
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 05:23 PM
Cant add folder into my shared folder? amer_58 Linux - Newbie 2 04-03-2005 11:35 AM
how can i default the max folder file size when it create inside a folder antony_csf Linux - Software 1 06-17-2004 02:26 AM
gnome home folder and trash folder ambelos Linux - Software 2 02-24-2004 06:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration