|
Add an Additional Disk Drive to Your Linux Computer |
Prerequisite: This tutorial covers adding a new disk drive to your linux computer. First it is assumed that the hard drive was physically added to your system.
IDE based systems, can support two drives on each ribbon cable. The cable is attached to either the Primary or Secondary IDE controller. A "jumper" is pressed onto two pins (thus connecting the two pins) on the drive to define the drive as a "Master" or a "Slave" drive. Each cable can support one master and one slave drive. Typically new desktop systems have one hard drive connected as a Master on the Primary controller and one CD-Rom on the second cable configured as a master.
SCSI drives will have jumpers positioned to assign a SCSI device ID number typically numbered 1-8. A sticker on the top of the drive will often show a diagram of jumper placement for drive assignment.
|
Related YoLinux Tutorials:
°Integrate Linux into MS/Windows environment
Free Information Technology Magazine Subscriptions and Document Downloads
|
IDE drives are referred to as hda for the first drive, hdb for the second etc...IDE uses separate ribbon cables for primary and secondary drives. The partitions on each drive are referred numerically. The first partition on the first drive is referred to as hda1, the second as hda2, the third as hda3 etc ... Linux IDE naming conventions:
Note: SCSI disks are labeled /dev/sda, /dev/sdb, /dev/sdc etc... to represent the first, second, third,... SCSI hard drive devices but not the SCSI ID. SCSI hard drive partitions are represented by an additional number. i.e. First drive first partition, /dev/sda1, second partition, /dev/sda2,... Other SCSI devices such as tape backup are labeled /dev/st0 for the first, /dev/st1 for the second and so forth. See YoLinux SCSI tutorial for more info.
As root perform the following: (as highlighted in bold)
Note: A computer system may have multiple drives with primary partitions but only one primary partition may be active on one drive only. The active primary partition is used for booting the system and is referenced by the Master Boot Record (MBR). Each hard drive may only have a maximum of four primary partitions. One may only boot an OS from a primary partition. Extended partitions allow one to place up to 24 partitions on a single drive. The above example shows the addition of a drive as one whole extended partition used to extend the storage space of the system. It was not created to hold additional operating systems as this would require a primary partition. Primary partitions can be used to extend the storage space of the system as well. It is not precluded from such a function but it will then limit you to four partitions for that hard drive.
Enter the drive into the fstab file so that it is recognized and mounted upon system boot. File: /etc/fstab Red Hat 8.0
Also see: fstab man page for a description of all options.
SCSI Drives:
|
|
|
Return to http://YoLinux.com for more Linux links, information and tutorials
Return to YoLinux Tutorial Index Feedback Form Copyright © 2003, 2004 by Greg Ippolito |