How to add a hard disk in Centos full tutorial Linux hard disk recognition: sda indicates 1st SCSI hard disks. hda indicates 1st IDE hard disks. content 0 indicates 1st USB optical drives. Generally, the "fdisk-l" command can be used to list the hard disks currently connected to the system. Steps: www.2cto.com 1. disable the server and add a new hard disk. start the server and log on as the root user. view hard Disk information fdisk-l: www.2cto.com Disk/dev/sda: 146.1 GB, 146163105792 bytes 255 heads, 63 sectors/track, 17769 cylinders Units = cylinders of 16065*512 = 8225280 bytes Device Boot Start End Blocks Id System/dev/sda1 * 1 13 104391 83 Linux/dev/sda2 14 5112 40957717 + 83 Linux/dev/sda3 5113 5243 1052257 + 82 Linux swap/Solaris/dev/sda4 5244 17769 100615095 5244 5 Extended/dev/sda5 17769 100615063 + 83 Linux Disk/ dev/sdb: 291.3 GB, 291331192320 bytes 255 heads, 63 sectors/track, 17769 cylinders Units = cylinders of 16065*512 = 8225280 bytes Disk/dev/sdb1: 291.3 GB, 291331192320 bytes 4. to create a new hard disk partition, run the "m" command to view the internal command of the "fdisk" command. a: Command to specify the start partition; d: Command to delete In addition to an existing partition, the command l: displays the list of partition ID numbers; m: displays the help of the fdisk command; n: Creates a new partition; p: displays the partition list; t: command to modify the ID of the partition type. w: command is used to modify the disk for the partition table. Fdisk/dev/sdb Command (m for help): n Command action e extended // input e to create an extended partition p primary partition (1-4) p Partion number (1-4): 1 Command (m for help): w input n press enter, p press enter, 1 Press enter, one press enter, enter w and press enter to save. View: fdisk-l shows/dev/sdb1 partition 5. format partition: # mkfs-t ext3-c/dev/sdb16. create/data Directory: mkdir/data7. Mount partition: www.2cto.com mount/dev/sdb1/data8. it is automatically mounted after startup # vim/etc/fstab 9. add the following content to the last line:/dev/sdb1/data ext3 defaults 0 0 0 10. test umount/data/mount-a/datadf-h