LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-21-2009, 08:41 AM   #1
xzenix
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, 08:57 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
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.
 
  


Reply


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 07:15 PM
Adding USB harddrive !!!! TheShemeta Slackware 1 11-06-2003 11:34 AM
Adding a new harddrive and KDE 3 BoonZie Linux - Newbie 6 11-20-2002 05:50 PM
Adding harddrive Enforcer *BSD 7 05-08-2002 11:38 AM
adding a harddrive to linux jonfa Linux - General 6 03-03-2001 02:12 PM


All times are GMT -5. The time now is 02:29 PM.

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