LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-23-2008, 09:35 AM   #1
jhaxxar
LQ Newbie
 
Registered: Sep 2008
Posts: 11

Rep: Reputation: 0
FTP folder size too small


I have setup a FTP server on my RHES4 system. The problem is the folder is too small to handle the files that will be sent/received. Is there a way to increase the amount of space on the folder my FTP server points to?

I noticed that my /dev/sda5 drive is 2.04TB. Is there a way I can use it for my FTP storage?

Last edited by jhaxxar; 09-23-2008 at 10:04 AM.
 
Old 09-23-2008, 10:33 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,945

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by jhaxxar View Post
I have setup a FTP server on my RHES4 system. The problem is the folder is too small to handle the files that will be sent/received. Is there a way to increase the amount of space on the folder my FTP server points to?

I noticed that my /dev/sda5 drive is 2.04TB. Is there a way I can use it for my FTP storage?
Well, the folder size is a function of the drive it's on, unless you've got quotas enabled. Alot of it depends on how you've got FTP set up, too.

If you're using anonymous FTP, and everyone is going to one folder, just move that folder (and change your config, obviously, to reflect the move), to the new drive. Restart FTP, and you should have more space.
 
Old 09-23-2008, 11:09 AM   #3
jhaxxar
LQ Newbie
 
Registered: Sep 2008
Posts: 11

Original Poster
Rep: Reputation: 0
Ok, say I have a drive /dev/sda4 that is 1.8TB is size and the FTP folder is on /dev/sda2 that is 420MB, so how do I move it to /dev/sda4?
 
Old 09-23-2008, 01:48 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,945

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by jhaxxar View Post
Ok, say I have a drive /dev/sda4 that is 1.8TB is size and the FTP folder is on /dev/sda2 that is 420MB, so how do I move it to /dev/sda4?
The drive is immaterial. What the mount point is counts. If the /dev/sda4 device is mounted as "/home", you would mount the /dev/sda2 as something else, then (after you kick everyone else off the system, to make sure there are no open files), "mv /home/* <whatever mount point /dev/sda2 is>". Look at the man page for mv first, though, there's an option to preserve ownership that you have to put on there..not at a linux box now to look it up.

After you get the directory moved, edit your /etc/fstab file to mount /home under /dev/sda2. Either reboot, or manually unmount/remount correctly. That's it.../home is now under the /dev/sda2 physical device, and mounted as /home, with 1.8 TB of space. The 420 MB can be mounted as something else.

And as I said earlier, if you have your ftp server set up to go to one particular directory, just modify the config file to point to the new drive, and move that directory there. Bounce the FTP service, and it'll go to the new drive.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
files not visible in ftp site (but present in the /var/ftp/folder of the server) dongrila Linux - Newbie 2 12-23-2007 11:09 PM
Folder Max Size and Limiting SSH access to home folder. Mefistofeles Linux - General 4 11-26-2005 03:09 PM
how can i default the max folder file size when it create inside a folder antony_csf Linux - Software 1 06-17-2004 03:26 AM
Font size is too small. qsilver Linux - General 3 07-21-2001 11:25 AM
Now the disk size is to small... Hachaso Linux - Software 5 05-18-2001 06:33 PM


All times are GMT -5. The time now is 07:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration