加入收藏 | 设为首页 | 会员中心 | 我要投稿 威海站长网 (https://www.0631zz.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Unix > 正文

Linux/Unix命令:partporbe 系统不重启而使新的磁盘分区生效

发布时间:2023-01-09 16:01:40 所属栏目:Unix 来源:未知
导读: 学习了一个新的命令:partprobe,英语字面意思是分区探测,这个命令可以使操作系统不需要重启而使新的磁盘分区生效。
默认位置/sbin/partprobe。相关命令:parted.
实际使用过程中,有时会

学习了一个新的命令:partprobe,英语字面意思是分区探测,这个命令可以使操作系统不需要重启而使新的磁盘分区生效。

默认位置/sbin/partprobe。相关命令:parted.

实际使用过程中,有时会报告警告信息unix命令图解,没有成功更新分区信息。

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 显示程序版本信息。

NAMEpartprobe - inform the OS of partition table changes SYNOPSISpartprobe[-d][-s][devices...] DESCRIPTIONThis 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.

OPTIONSThis 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.

(编辑:威海站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章