YouTip LogoYouTip

Linux Comm Partprobe

# 2. Let the kernel recognize the new partition table sudo partprobe /dev/sdb # 3. Extend the physical volume sudo pvresize /dev/sdb1

Scenario 2: Processing After Adding a New Partition

Example

# 1. Use parted to create a new partition

sudo parted /dev/sdc mkpart primary ext4 1GB 5GB

# 2. Notify the kernel

sudo partprobe /dev/sdc

# 3. Format the new partition

sudo mkfs.ext4 /dev/sdc1

Best Practices

  1. Back up important data before performing partition operations
  2. Use lsblk or fdisk -l to verify partition changes
  3. In production environments, verify the partition scheme on a test system first
  4. Consider using the -s option to view summary information first

Summary

partprobe is an important tool for Linux system administrators to maintain disk partitions. It solves the problem of needing to reboot the system after modifying the partition table. Mastering the use of partprobe can significantly improve the efficiency of disk management, especially in environments where frequent partition adjustments are needed.


Image 4: Linux Command Manual Linux Command Manual

← Linux Comm BtrfsLinux Comm Timeout β†’