學習了一個新的命令:partprobe,英語字面意思是分區探測,這個命令可以使操作系統不需要重啓而使新的磁盤分區生效。
默認位置/sbin/partprobe。相關命令:parted.
實際使用過程中,有時會報告警告信息,沒有成功更新分區信息。
partprobe -s
Warning: WARNING: the kernel failed to re-read the partition table on /dev/sda (Device or resource busy). As a result, it may not reflect all of your changes until after reboot.
名字
partprobe - 把分區表的變化信息通知到系統內核。 摘要
partprobe[-d][-s][devices...]描述
partprobe 是一個程序,通過請求操作系統重新讀取分區表的方式,把分區表的變化信息通知到操作系統內核。選項
該程序使用短格式選項。- -d
- 不更新內核。
- -s
- 顯示設備和分區的彙總信息。
- -h
- 顯示選項的彙總信息。
- -v
- 顯示程序版本信息。
NAME
partprobe - inform the OS of partition table changesSYNOPSIS
partprobe[-d][-s][devices...]DESCRIPTION
This manual page documents briefly thepartprobecommand.partprobe is a program that informs the operating system kernel ofpartition table changes, by requesting that the operating system re-readthe 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.