When using fdisk partition, a partition is indeed created, but this partition does not seem to be recognized by the Linux system. Solution
Fault phenomenon description
This is my sdb hard drive. I want to extend it to a partition sdb4.
I started to expand the hard drive
It seems that there is no big problem and it has been synchronized to the disk. Use lsblk to check the partition status.
The system did not scan the extended partition sdb4.
Solution
You can use the partprobe command
partprobe is a Linux command used to reread the hard disk partition table and update the kernel's partition information. Use the partprobe command to update partition information without restarting the computer
The syntax of the partprobe command is as follows
partprobe [选项] [设备]
选项:
-s:显示摘要信息
-d:调试模式,实际上并没有通知操作系统
-h:帮助信息
-v:显示版本信息
设备:指定需要更新新分区信息的设备
Now let's re-read the partition we just created
partprobe
# 如果不指定就是重新读取全部分区
Then check the partition table
Successfully identified
Successfully identified
This content refers to: the content of this blog