linux命令之partprobe


使用fdisk工具只是將分區信息寫入到磁盤,如果需要使用mkfs格式化並使用分區,則需要重新啟動系統。partprobe 是一個可以修改kernel中分區表的工具,可以使kernel重新讀取分區表而不用重啟系統。

# partprobe
這個命令執行完畢之后不會輸出任何返回信息,你可以使用mke2fs命令在新的分區上創建文件系統。
在Linux中使用fdisk命令進行分區時,有時會遇到“WARNING: Re-reading the partition table failed with error 16: Device or resource busy.The kernel still uses the old table.The new table will be used at the next reboot.”這種告警信息。

[root@rhel7 ~]# man partprobe
PARTPROBE(8)                                                             GNU Parted Manual                                                            PARTPROBE(8)

NAME
       partprobe - inform the OS of partition table changes

SYNOPSIS
       partprobe [-d] [-s] [devices...]

DESCRIPTION
       This manual page documents briefly the partprobe command.

       partprobe  is  a program that informs the operating system kernel of partition table changes, by requesting that the operating system re-read the partition
       table.

OPTIONS
       This program uses short UNIX style options.

       -d     Don't update the kernel.

       -s     Show a summary of devices and their partitions.

       -h     Show summary of options.

       -v     Show version of program.

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM