zoukankan      html  css  js  c++  java
  • 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.
  • 相关阅读:
    Model I/O
    How to create realistic .scn files?
    3ds Max 教程
    ELK Stack企业日志平台文档
    源码搭建Zabbix4.0.23LTS监控系统
    Ansible自动化运维应用实战
    网站架构部署
    MySQL数据库性能优化与监控实战(阶段四)
    MySQL数据库企业集群项目实战(阶段三)
    基于xtrabackup的主从同步
  • 原文地址:https://www.cnblogs.com/rusking/p/5764245.html
Copyright © 2011-2022 走看看