Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-21-2009, 07:41 AM   #1
LQ Newbie
Registered: Jul 2009
Posts: 2

Rep: Reputation: 0
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.
Old 07-21-2009, 07:57 AM   #2
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Testing"
Posts: 6,112

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Plug it in. Boot.
(For all the next commands, you need to be root: )
List the disks installed:
fdisk -l
Work out which is your new one (Eg /dev/sdb )
Partition it:
fdisk /dev/sdb
Write the partition information and quit fdisk
Format it (Eg as ext3)
mkfs.ext3 /dev/sdb1
Make a mountpoint and mount it at your mountpoint:
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem adding a second harddrive gigglesnorter Linux - Hardware 1 05-21-2004 06:15 PM
Adding USB harddrive !!!! TheShemeta Slackware 1 11-06-2003 10:34 AM
Adding a new harddrive and KDE 3 BoonZie Linux - Newbie 6 11-20-2002 04:50 PM
Adding harddrive Enforcer *BSD 7 05-08-2002 10:38 AM
adding a harddrive to linux jonfa Linux - General 6 03-03-2001 01:12 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration