Unlike Windows, Linux cannot automatically identify and mount newly added physical hard drives. Requires administrators to configure, the main steps are as follows:
1. Use parted or fdisk to create partitions for new hard drives: [root @ locahost ~] # fdisk / dev / sdbcommand (m for help): NCommand Action: e Extended P Primary Partition (1 ~ 4) EPArtition Number (1 ~ 4 : 1First Cylinder (1 ~ 522 Default 1): 1 Last Cylinder OR SIZE OR SIZEM SIZEK (1 ~ 522 Default 522): 522Command (M for Help): Wthe Partition Table Has Been Altered! ...... .. [root @ locahost ~ # ----------------------------------------- ---- Red user entered command to explain the command above: The first sentence doesn't say more, / dev / sdb is the device file corresponding to the new hard disk, in general, SDX is a SCSI hard drive, and IDE The hard disk may be HDX COMMAND N is Add A New Partition, you can enter M to get help typically add the extension partition, so select Extended. Partition Number (1 ~ 4): 1 Solution to enter the neighboring column number of each partition, FDisk has promptedly clear that the last Command W saves exit.
2. Format the partition root @ locahost ~] # mkfs / dev / sdb using MKFS
3. Use the E2Label to partition tag root @ locahost ~] # e2label / dev / sdb label
4. Create a mount point root @ locahost ~] # mkdir / mnt / newdisk
5. Modify / etc / fstab is a partition in system startup is automatically mounted.