LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-13-2004, 03:19 AM   #1
benoy4007
Member
 
Registered: Jun 2004
Location: India
Distribution: Red Hat
Posts: 30

Rep: Reputation: 15
Exclamation Add new hard disk to the system.


Hello,

Did any one can help me to connect my new other harddisk to the Linux Redhat system.

How to deteach the hard disk.
How to mount the hard disk.
Which /dev/? i should find my new hdd.

It is ATA drive not a SCSI drive.


Please helpp



Benoy Anthony.
 
Old 08-15-2004, 08:39 AM   #2
jhibbets
Red Hat
 
Registered: Sep 2003
Location: Raleigh, NC
Distribution: Red Hat Enterprise Linux v 2.1, v 3, v 4
Posts: 174

Rep: Reputation: 30
These may help you:

##############################################

http://kbase.redhat.com/faq/FAQ_80_379.shtm

Issue:
How are device files named in Red Hat Enterprise Linux?
Resolution: Last update: 08-14-04
In Red Hat Enterprise Linux, the device files for disk drives appear in the /dev/ directory. The format for each file name depends on several aspects of the actual hardware and how it has been configured. The important points are as follows:

* Device type: If the device is SCSI-based, the device type is sd. If the device is ATA-based, the device type is hd.
* Unit: Following the two-letter device type are one or two letters denoting the specific unit. The unit designator starts with "a" for the first unit, "b" for the second, and so on. Therefore, the first hard drive on your system may appear as hda or sda.
* Partition: The final part of the device file name is a number representing a specific partition on the device, starting with "1." The number may be one or two digits in length, depending on the number of partitions written to the specific device. Once the format for device file names is known, it is easy to understand what each refers to. Here are some examples: /dev/hd1a is the first partition on the first ATA drive; /dev/sdad4 is the fourth partition on the thirtieth SCSI drive (notice the addition of a second unit character to support systems with more than 26 SCSI devices attached).



This article is protected by the Open Publication License, V1.0 or later http://www.opencontent.org/openpub/ Copyright © 2003-2004 by Red Hat, Inc.


##############################################
http://kbase.redhat.com/faq/FAQ_80_381.shtm

Issue:
I just added a disk to my system. How do I create a new ext3 file system on it?
Resolution: Last update: 07-08-04

1. Create the partition using fdisk. To start fdisk at a shell prompt (as root), type the command fdisk/dev/hdb, where /dev/hdb is the device name for the drive you want to configure. The Command (m for help): prompt is displayed. Type n then p, to create a primary partition. You will then be asked to enter a partition number 1-4. You can only have a total of 4 primary partitions. If you need more than 4 partitions, then your 4th partition will become your extended partition and you can create up to 15 partitions that the system will recognize. You will then enter the size of the partition that you want to create. The easiest way to do this is to select the defaulted start cylinder, then issue a size based on MB. Example: +5000MB to create a 5 GB partition.
2. Format the partition with the ext3 file system using mke2fs. Note that an ext3 file system is an ext2 filesystem with journaling (the -j option). See man mke2fs for more options. Type /sbin/mke2fs -j /dev/hdb3.
Note: If mke2fs does not recognize your partition, then you must reboot your system so that the new partition table is recognized.
3. Label the partition using e2label. For example, if you want to label the new partition /work, type e2label /dev/hdb3 /work.
4. As root, create the mount point: mkdir /work
5. As root, edit the /etc/fstab to include the new partition. The new line should similar to the following:

LABEL=/work /work ext3 defaults 1 2

6. Reboot your system so that the new partition table is recognized.

This article is protected by the Open Publication License, V1.0 or later http://www.opencontent.org/openpub/ Copyright © 2003-2004 by Red Hat, Inc.

##############################################


Please note. Both of these FAQs are in the subscriber section of Red Hat's Knowledgebase. A login and a valid entitlement are required to view them from our Knowledgebase. This is the type of value add we are trying to achieve with some of our articlees for our Red Hat Enterprise Linux subscribers.

I hope these can help you out.
 
  


Reply



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
Add a second hard disk manoj142 Linux - Hardware 3 10-25-2005 12:48 PM
how to add a hard drive to a linux system? kike_coello Linux - Hardware 13 10-18-2005 10:35 PM
Reiser file system / Hard Disk/ Hard Drive Problems Oxyacetylene Linux - Software 4 10-10-2005 02:24 PM
How to add a hard drive existing Linux system a1ntsk33r3d Linux - Hardware 5 06-28-2005 02:20 PM
Add Hard disk for swap space with problems in boot sector rkes7 Linux - Hardware 1 01-25-2004 02:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:15 AM.

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