LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   After adding one hard disk to the OC (https://www.linuxquestions.org/questions/linux-newbie-8/after-adding-one-hard-disk-to-the-oc-637826/)

yusufs 04-25-2008 01:38 PM

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

lleb 04-25-2008 01:50 PM

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.

TB0ne 04-25-2008 02:38 PM

Quote:

Originally Posted by yusufs (Post 3132859)
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).


All times are GMT -5. The time now is 01:46 PM.