Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding a Hard Drive 3

Status
Not open for further replies.

64AMD

Technical User
Mar 15, 2007
28
US
Although I am a Windows Network engineer, I am new to Linux.

I have a older system that I have installed Fedora 6 on that among other things will be using as an FTP Server.

I want to a second hard drive for the use of FTP. However the question is how do I format and mount this drive. I found one web site explaining this however none of the commands worked. Such as lshw, fdisk etc.

The drive is a 100g and is a slave on the Primary IDE.

Thank you for any and all assistance.
 
Forgot to say that I want an ext3 partition.
 
what does
Code:
fdisk -l /dev/hdb
say?
without guarantee:
To create a linux partition:
Code:
fdisk /dev/hdb 
# interactively:
#
# delete partition:
# d 
#
# new partition:
# n
#
# specify type:
# t
#
# linux-type:
# 83 
#
# write:
# w

format it:
Code:
mkfs.ext3 /dev/hdb1

don't visit my homepage:
 
When I attempt to execute fdisk -l /dev/hdb I get the following error
fdisk: command not found
 
fdisk is under /sbin. Most normal users don't have /sbin set in their path environment. Try calling fdisk explicitly as /sbin/fdisk.

--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
ok I was able to preform the above steps and got the drive formated.

Now how do I mount it and make sure that it is mounted when the system starts. I tried type mount dev/hdb1 but got error
can't find /dev/hdb1 in /etc/fstab or /etc/mtab
 
Now that its all format, you will need to make an "anchor" directory for it. So something along these lines will get it mounted:

mkdir /some_name
mount /dev/hdba /some_name

to have it mount automagically on future reboots, add this to the /etc/fstab file:

/dev/hdb1 /some_name ext3 defaults 0 0


be sure to replace some_name with a meaningful name of your choosing.
 
arg.... that first mount (after the mkdir) should read

mount /dev/hdb1 /some_name

 
Got it working

Thanks guys for the help really appreciate it.
 
I know this is off the point but why not run an apache webserver on the linux box and then instead of accessing or downloading your files through ftp command line you access it through the webserver's ip address. like so it then displays a index page on the machine. Or you could access it via ftp but through your browser. Its easier and quicker to use then the ftp command line.

/*******************************

DragonForce
-Is it wrong to be strong
*******************************/
 
Actually I have not set it up yet to be an FTP Server. I was not aware that it would require the use command line to use the FTP option. This will only be for personal use, not for the general public. I would only use a FTP client such as WS-FTP or Cute FRP. However thanks for the info. I will want to upload files as well as download files to it.

Can apache be set up to be an FTP server as well and not just an HTTP server?
 
oh yes; I dont know exactly how that is setup but you can acces it like ftp://192.168.0.19; If it is on a network at your place. Uploading I think you would either need a ftp client or use the command line.

/*******************************

DragonForce
-Is it wrong to be strong
*******************************/
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top