LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-25-2008, 02:38 PM   #1
yusufs
Member
 
Registered: Oct 2007
Posts: 162

Rep: Reputation: 30
After adding one hard disk to the OC


Hai all,

I already have a 320GB Sata HDD attached to my RHEL Box..Tried attaching one more 320 GB to the same machine.. but , it is not detecting..DO I have to complete any additional tasks to acheive this..


Thanks
Yusuf
 
Old 04-25-2008, 02:50 PM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
you need to edit your /etc/fstab to tell the system were and what it is...

Code:
cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hdb3       /               ext3    defaults,errors=remount-ro 0       1
/dev/hdb1       /boot           ext3    defaults        0       2
/dev/hdb4       /home           ext3    defaults        0       2
/dev/hdb2       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
/dev/sda1       /disk/sda1      auto    defaults        0       2
/dev/sda2       /disk/sda2      auto    defaults        0       2
/dev/sda3       /disk/sda3      auto    defaults        0       2

/dev/sdb2       /disk/diskb2    auto    defaults        0       2
that is the fstab off of one of my Debian boxes. it has multiple HDDs.

as i can only guess the 2nd 320G drive you added is ALSO a sATA drive, it will be labeled sdb1 (i think i have that correct)

hda1, hda2, etc are all part of the same drive just different partitions.

hdb1, hdb2, etc. are part of the slave (secondary) IDE drive.

sda1, sda2, etc... is the 1st SCSI, or in your case sATA drive, so sdb1, sdb2, etc... will be the 2nd sATA/SCSI drive connected to your computer.

i hope that helps a tad.

oh after editing your fstab, or while doing so, you will need to create the mount point as well.

example if you want all 320G in 1 partition you could mount is at: /mnt/disk2 then just create the folder(directory) mkdir /mnt/disk2 and set the permissions to what ever you want.
 
Old 04-25-2008, 03:38 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,921

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by yusufs View Post
I already have a 320GB Sata HDD attached to my RHEL Box..Tried attaching one more 320 GB to the same machine.. but , it is not detecting..DO I have to complete any additional tasks to acheive this..
You'll have to put a partition table on it, and make a file system on it, before you can mount it. As lleb said, you'll have to make mount points and edit FSTAB files too.

Find out what device it is, as he said, then fdisk the new drive, then mkfs a file system on it (check out the man pages for those commands).
 
  


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
adding a new hard disk the2k Linux - Hardware 9 02-05-2007 11:52 AM
Adding another Hard disk Unicron Linux - Newbie 4 05-24-2006 02:05 PM
Adding and using another hard disk Greebstreebling Linux - Hardware 5 12-21-2005 03:19 PM
adding new hard disk jkmartha Linux - Newbie 3 08-19-2005 02:09 AM
Adding a hard disk mastahnke Linux - Hardware 15 11-27-2002 08:25 PM


All times are GMT -5. The time now is 10:31 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