LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Adding a Harddrive (https://www.linuxquestions.org/questions/linux-newbie-8/adding-a-harddrive-741676/)

xzenix 07-21-2009 07:41 AM

Adding a Harddrive
 
Im new to linux, and im having some issues adding a new harddrive, im using Redhat 9. I have no clue how to go about this, i google'd it and most of the result i found were confusing, and the others i attempted to do gave me no results. if anyone could help it would be much appreciated.

tredegar 07-21-2009 07:57 AM

Plug it in. Boot.
(For all the next commands, you need to be root: )
List the disks installed:
Code:

fdisk -l
Work out which is your new one (Eg /dev/sdb )
Partition it:
Code:

fdisk /dev/sdb
Write the partition information and quit fdisk
Format it (Eg as ext3)
Code:

mkfs.ext3 /dev/sdb1
Make a mountpoint and mount it at your mountpoint:
Code:

mkdir /media/newdisk
mount  -t  ext3  /dev/sdb1  /media/newdisk

Quit being root, and use your new disk.
If you want it to be mounted at boot time, you'll need to make an entry for it in /etc/fstab

Welcome to LQ.


All times are GMT -5. The time now is 11:19 AM.