Mount a new disk in CentOS

A series of articles on working with a hard drive

  • Mount a new disk in CentOS
  • How to grow LVM partition on CentOS 7
  • Add new disc to Centos 7
  • How to delete / home partition and expand root partition in Centos 7
  • Mount LVM partition on Ubuntu 18.04 / 18.10
  • Extend LVM partition for GPT disk tables on Centos 7

See information about disks in the system

[[email protected] ~]# fdisk -l

Create a section

[[email protected] ~]# fdisk /dev/sdb
n - создать новый раздел (если раздел будет 1, значения оставляем по-умолчанию)
p - primary
1 - 1 partition
w - записать

If the file system is ext3, then after having created 1 partition on the entire disk, you need to create a file system on this partition.

[[email protected] ~]# mkfs.ext3 /dev/sdb1

Create a directory where to mount and mount

[[email protected] ~]# mkdir /mnt/sdb1
[[email protected] ~]# mount /dev/sdb1 /mnt/sdb1


We edit the fstab file and add

[[email protected] ~]# nano /etc/fstab
/dev/sdb1     /mnt/sdb1     ext3    defaults 2 1

Don’t forget about line break at the end of the file