linux执行使分区生效的命令,Linux/Unix命令:partprobe 系统不重启而使新的磁盘分区生效...

学习了一个新的命令: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 changes

SYNOPSIS

partprobe[

-d][

-s][

devices...]

DESCRIPTION This manual page documents briefly the

partprobecommand.

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值