Prerequisites
Add a hard drive for the host, we should first understand the Linux systems on the hard disk and partition naming.
In Linux, the device is based on the IDE hd named the first ide device is hda, the second is hdb. And so on
General motherboard has two IDE interfaces, a total of four IDE devices can be installed. The two devices on the primary IDE corresponding hda and hdb, the second IDE port on the two devices correspond to hdc and hdd.
Generally the primary IDE hard disk installed in the main interface, it is hda
CD-ROM is generally installed in the second primary IDE interface, so is hdc (hdb is used should be named on the primary IDE from the interface)
Sd SCSI interface device is named, the first device is sda, second is sdb. And so on
Zoning is the device name plus the number named. For example, the hard disk device hda hda1 on behalf of the first partition.
Each drive can have up to four primary partitions, the role of the primary hard disk partition named 1-4. Logical partition is started from the 5, for each partition, the figures can be.
Such as general systems have a primary partition used to boot the system, we often say that this partition corresponds to the C zone, under the name in the linux is hda1. Behind our three logical partitions used to say corresponding to the D, E, F, under the name in the linux is hda5, hda6, hda7
To the hard disk partition
There are two partitions in the software under slackware fdisk and cfdisk
For example, a hard drive is already, now add another hard disk to the system
Then according to the naming of this newly added hard drive that should be hdb. The following command can be used to partition
fdisk / dev / hdb
You can also use cfdisk to partition, the command is as follows
cfdisk / dev / hdb
Formatting the hard drive
Formatted ext3 format
mkfs.ext3 / dev/hdb1
Formatted reiserfs format
mkfs.reiserfs / dev/hdb1
To automatically mount the hard disk boot
For example, mount / dev/hdb1 partition to / mnt / hd directory
Editing with vi / etc / fstab file, add the following content
/ Dev/dhb1 / mnt / hd reiserfs defaults 1 1