I don't drive, but I'll answer anyway.

1. the command "df" will list the used and available space on all mounted
filesystems.

2. You say that hdb is "in place, formatted, and mounted". I assume you mean
it has one or more ext2 partitions (/dev/hdb1, /dev/hdb2, etc.) on it. All
you should need to do, then, is create a directory on one of the hdb*
filesystems, then symlink /home/ftp/imcoming to it. Making some arbitrary
assumptions about where you've mounted the new partitions, this would look
something like

rm /home/ftp/incoming (be sure to cp any files in it first)
mkdir /mnt/newdrive/ftp
mkdir /mnt/newdrive/ftp/incoming
ln -s /mnt/newdrive/ftp/incoming /home/ftp/incoming

OR, if you want to dedicate an entire partition to this function, you can
mount the partition on /home/ftp/incoming, with a command like

mount /dev/hdb1 /home/ftp/incoming

At 10:40 AM 3/19/99 -0500, Isaacson, Scott D. wrote:
>Good Morning!  Or evening or afternoon as your timezone allows.
>
>I'm wondering if there is a way to check for available hard drive space on a
>linux machine.  My company needs to setup an FTP server to allow our
>customers to FTP databases to us from time to time.  Well, the server is up
>and running, but a customer tried to send us a 122 meg file last night and
>they said that they weren't able to.  The system says that the file they
>sent is only 47 megs.  I'm wondering if I'm running out of room?
>
>Also, I have a new hard drive I'd like to put in the machine.  I'd like to
>set things up so that everything that goes to the /home/ftp/incoming
>directory goes right to hdb.  Any thoughts on that?  The hard drive is in
>place, formatted and mounted.  Just not sure how to set things up so that
>all data in the /home/ftp/incoming folder is on that new drive.  
>
>If any can answer either of these questions I'll buy you a car.
------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
762 Garland Drive
Palo Alto, CA  94303-3603
650.328.4219 voice                              [EMAIL PROTECTED]        
----------------------------------------------------------------

Reply via email to