Hey! Did you hear what Isaacson, Scott D. was saying on Mar 19 ?

ISD> Good Morning!  Or evening or afternoon as your timezone allows.
ISD> 
ISD> I'm wondering if there is a way to check for available hard drive space on a
ISD> linux machine.  My company needs to setup an FTP server to allow our
ISD> customers to FTP databases to us from time to time.  Well, the server is up
ISD> and running, but a customer tried to send us a 122 meg file last night and
ISD> they said that they weren't able to.  The system says that the file they
ISD> sent is only 47 megs.  I'm wondering if I'm running out of room?

G'day!
        Yep, there sure is!... df ... man df for details
 
ISD> Also, I have a new hard drive I'd like to put in the machine.  I'd like to
ISD> set things up so that everything that goes to the /home/ftp/incoming
ISD> directory goes right to hdb.  Any thoughts on that?  The hard drive is in
ISD> place, formatted and mounted.  Just not sure how to set things up so that
ISD> all data in the /home/ftp/incoming folder is on that new drive.  

        There's two ways I can think of to set this up...

1 - first mount the new hd to a directory somewhere (doesn't
really matter where because it's not going to stay there) with...
        mount -t ext2 /dev/hdb1 /<directory>  

Next cd to where you mounted it and...
        mkdir incoming  
This will create the directory "incoming" on the new hd.  

Next step is to copy everything in /home/ftp/incoming to
/where_you_mounted_the_new_hd/incoming.  

Now unmount the new hd...
        umount /dev/hdb1

Now edit /etc/fstab and add a line which reads...
        /dev/hdb1  /home/ftp/incoming  ext2  defaults 1  1

Last step...
        mount -t ext2 /dev/hdb1 /home/ftp/incoming

Remeber, Linux doesn't use drive letters, so anything copied to
/home/ftp/incoming will be on the new hd.

Or...

2 - Move everything in /home/ftp/incoming to a directory on the new hd
(you did say it was formatted and mounted?), remove the /home/ftp/incoming
directory (be careful not to remove anything else) and put in its place a
symlink called incoming which points to the new hd.

ISD> If any can answer either of these questions I'll buy you a car.

So, when can I expect delivery? :) 

Have A Great Day!!

        Steve Youngs 
        Email: [EMAIL PROTECTED]

Who needs a doomsday virus when we have Windows?

Reply via email to