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
df (1) - summarize free disk space
> 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.
>
Not sure what the problem is. AFAIK you can mount any fs on any dir you
want it on. If you want /home/ftp/incoming to occupy the whole drive,
just [umount it from where you have it] and mount it where you want it,
or change /etc/fstab to automount it there..
If you have structure you want to move, it's easiest to do that with an
archiving utility like tar or cpio. I tend to use tar -O |tar -, as I'm
more familiar with its manpage. Also, you can mount a fs on a dir
that is not empty, while it is mounted, the fs will obscure the
directory contents. This might get confusing, though.
> If any can answer either of these questions I'll buy you a car.
>
> Scott.
>
___________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com/getjuno.html
or call Juno at (800) 654-JUNO [654-5866]