On Fri, 19 Mar 1999, 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?
df
> 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.
Add this line to /etc/fstab :
/dev/hdb1 /home/ftp/incoming /ext2 defaults 1 1
where /dev/hdb1 is the partition you formatted (or /dev/hdb if you don't
use partitions)
If you want to mount it by hand (and do this again after each reboot)
mount /dev/hdb /home/ftp/incoming
> If any can answer either of these questions I'll buy you a car.
>
I'll hold you to that :)
> Scott.
>
Frank