1) determine the connection of the hard drive.
your hda (current) hard drive is an IDE device. the cable is thick and probably all gray or all black, with 40-pins on the end. the way linux names IDE devices is /dev/hdX, where X is a letter a-z. /dev/hda means 'primary master IDE device', /dev/hdb is 'primary slave IDE device', /dev/hdc is 'secondary master IDE device', etc.
'primary' vs 'secondary' means how is the device connected to your motherboard. this connection is probably labeled.
'master' or 'slave' is determined by which part of the cable the drive is attatched to. IDE cables have 3 connections: 1-motherboard, 2-master device, 3-slave device. check how the new drive is connected or how the jumpers are set on the back of the hard drive to determine what it is.
if the drive is actually 'new', it is probably USB or SATA. if this is the case, the device file will be something else, i dont know what because i dont have any USB or SATA devices. i imagine its /dev/sda, though.
check the startup log named 'messages' (which may be located in either /var/log/ or just /var/). your looking for '/dev/hd' or '/dev/sd'. there should be at least 2--your current drive (/dev/hda) and your new one, which you have to determine.
2. set up the partition
once you have your proper device file name for your new hard drive (ill assume /dev/hdb), you have to create a partition on it and format before you can use it.
open a command window and use 'su' [enter] (then supply root user password) to switch user to root. check this link here on using cfdisk
clicky. if you just want it to be all one big partition, then just make it the max size possible. for the filesystem i would pick reiserfs or ext3. dont forget to apply changes.
after applying this your new partition is ready. to use it you have to mount it.
3. mount your device
while still in the terminal window as 'root' user, create a folder where to mount your device. the best place would be in /mnt/, and name it whatever you want to identify it, ex 'mkdir /mnt/media'. this will be the place where, once mounted, you can access the files on your partition. now open the /etc/fstab file to add an entry for this device so its automatically mounted when you boot.
use any editor you want (vi, vim, etc), example 'pico /etc/fstab'. once in the editor, use the arrows to go to the end of the file and add a line such as this:
Code:
/dev/hdb1 /mnt/media reiserfs auto,rw,user 0 2
of course you need to substitute the first 3 fields with the ones you chose. after adding this entry, press CTRL + X to save the file and exit the editor. type 'exit' in the console to return to your 'normal user' account, and run 'mount -a', to have the system mount all devices in /etc/fstab that arent already mounted. it _should_ mount your new entry, to the location you specified. now explore to the folder where you mounted, and try to create a file/folder there.
if the mount didnt work or if it says you dont have permissions, give us the errors, your /etc/fstab file, and any relevant parts of the messages log file mentioned earlier.