LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-24-2009, 04:16 AM   #1
raj.darkmystery
LQ Newbie
 
Registered: Oct 2009
Posts: 28

Rep: Reputation: 15
adding extra hard disk over rhel5


Hi guys..!!
I am trying to add a new hard disk over RHEL5. i tried to create a new partition table and my disk is getting detected as sdb1 (as i numbered it as 1).. but mounting over a new directory is not getting succesful.. any help or troubleshoot...

thanks in advance..
 
Old 12-24-2009, 06:07 AM   #2
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
Here's a basic Step by Step:
Code:
# fdisk /dev/sda
Press “m” to get the help menu
Press “p” to print existing partition table
Press “n” to create new partition
Press “w” to save the partition created
To re-probe the partitions that you created. If you don’t run this command, the kernel won’t be able to see the partition.
Code:
# partprobe
This command is to format the partition with ext3 file system.
Code:
# mkfs.ext3 /dev/sdaX
Mount the partition into a mount point to begin using it. You have to make that directory first of course.
Code:
# mount /dev/sdaX /mnt/data
Finally, you might want to make it permanent by adding the line in fstab.
Code:
# vi /etc/fstab
/dev/sdaX  /mnt/data  ext3  defaults 0 0

Last edited by ongte; 12-24-2009 at 06:13 AM.
 
Old 12-24-2009, 06:34 AM   #3
raj.darkmystery
LQ Newbie
 
Registered: Oct 2009
Posts: 28

Original Poster
Rep: Reputation: 15
thanks for the reply.. le'me try this.. thanks once again
 
  


Reply

Tags
disk, hard


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
Adding second hard disk with windows to boot with grub on first hard disk rushadrenaline Linux - Hardware 3 07-08-2009 04:39 AM
Install 2 RHEL5 Linux onto 1 Hard disk mamijaya Linux - Newbie 3 05-16-2008 04:46 AM
Add an extra hard disk to an existing one without data loss and use them as single??? nics Linux - Hardware 4 04-27-2007 03:57 PM
extra hard disk space ic_torres Linux - Hardware 7 11-03-2005 07:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:08 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
Open Source Consulting | Domain Registration