Centos format the new hard disk and add a new hard disk to the automatically mounted server when it is started. Only one sdb device can be seen under/dev. As a result, you need to partition, create a file system, and set automatic mounting upon startup. The process is as follows: 1. Create a partition using the parted command partition: [plain] # parted/dev/sdb (parted) the parameter after mktable gpt (parted) mkpart data 1024KiB-1 (parted print) parted is the device name. The three parameters of the mkpart command are the partition name (starting at will), the start address, and the end address (-1 indicates the end of the block device). The space in front may be used to store partition information, if you do not leave it, you will receive a warning. Print view partition result 2. After the partition is formatted and created, the/dev/sdb1 partition appears. Use the mkfs command to format the partition: [plain] # mkfs/dev/sdb1 ext4 3. Set the boot mount to modify the/etc/fstab file, and add a line at the end: [plain]/dev/sdb1/data ext4 defaults 0 0 each field is partition, mount point, file format, Mount parameter. The last two generally restart with 0 to see if the settings are successful.