一区二区三区在线-一区二区三区亚洲视频-一区二区三区亚洲-一区二区三区午夜-一区二区三区四区在线视频-一区二区三区四区在线免费观看

服務器之家:專注于服務器技術及軟件下載分享
分類導航

Linux|Centos|Ubuntu|系統進程|Fedora|注冊表|Bios|Solaris|Windows7|Windows10|Windows11|windows server|

服務器之家 - 服務器系統 - Linux - Linux下partprobe命令的使用詳解

Linux下partprobe命令的使用詳解

2019-08-29 10:3351CTO守住每一天 Linux

這篇文章主要介紹了Linux下partprobe命令的使用詳解,partprobe命令主要用于處理硬盤分區的相關操作,需要的朋友可以參考下

linux上,在安裝系統之后,可否創建分區并且在不重新啟動機器的情況下系統能夠識別這些分區?
解決方法:

你可以使用一個叫做partprobe的工具。它包含在parted的rpm軟件包中。在Red Hat Enterprise Linux 3上他的版本是parted-1.6。 partprobe 是一個可以修改kernel中分區表的工具??梢允筴ernel重新讀取分區表。如下命令可以查看你的系統是否安裝了parted軟件包

復制代碼

代碼如下:


rpm -q parted


舉例來說:

復制代碼

代碼如下:


# rpm -q parted


parted-1.6.3-29

你可以使用up2date命令安裝這個軟件包,如果在你的系統已經正確地注冊到RHN上了。否則你可以從光盤上安裝這個文件。

你可以使用fdisk或者其他命令創建一個新的分區,然后使用partprobe命令重新讀取分區表。

復制代碼

代碼如下:


# 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@localhost ~]# fdisk /dev/sde


 
The number of cylinders for this disk is set to 18928.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
 
Command (m for help): p
 
Disk /dev/sde: 155.6 GB, 155692564480 bytes
255 heads, 63 sectors/track, 18928 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
   Device Boot      Start         End      Blocks   Id  System
/dev/sde1               1       18275   146793906    5  Extended
/dev/sde5               1       18275   146793874+  83  Linux
 
Command (m for help): n
Command action
   l   logical (5 or over)
   p   primary partition (1-4)

Partition number (1-4): 2
First cylinder (18276-18928, default 18276): 
Using default value 18276
Last cylinder or +size or +sizeM or +sizeK (18276-18928, default 18928): 
Using default value 18928
 
Command (m for help): w
The partition table has been altered!
 
Calling ioctl() to re-read partition table.
 
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.
Syncing disks.
 
此時使用fdisk命令看不到新建的分區信息,可以使用partprobe命令解決這個問題而不用重啟系統,因為partprobe可以使kernel重新讀取分區信息,從而避免重啟系統。

復制代碼

代碼如下:


partprobe - inform the OS of partition table changes


 
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.

延伸 · 閱讀

精彩推薦
主站蜘蛛池模板: 午夜精品亚洲 | 四虎地址8848aa4hc44四虎 四虎成人永久地址 | 国产一区二区精品久久91 | 国产一久久香蕉国产线看观看 | 桃色综合网 | 精品视频免费在线观看 | 国产精品短视频 | 性啪啪chinese东北女人 | 日日免费视频 | 国产精品久久久久久岛国 | 亚洲高清视频在线观看 | 果冻传媒在线完整免费观 | 香蕉91xj.cc | 91噜噜噜噜色 | 亚洲 日韩 国产 中文视频 | 国产激情视频在线 | 99视频福利| 精品麻豆 | 日韩欧美中文字幕一区二区三区 | 男生操男生 | 精品久久久久香蕉网 | 插鸡网站 | 国产欧美va欧美va香蕉在线观看 | naruto tube18动漫| poronovideos极度变态 | 车上小婕子系列辣文小说 | 国产91一区二区在线播放不卡 | 男女车车好快的车车免费网站 | 西西人体大胆啪啪私拍色约约 | 动漫美女胸被狂揉扒开吃奶动态图 | 日韩精品免费一级视频 | 水多多凹凸福利视频导航 | 亚州精品永久观看视频 | 欧美日韩一区二区综合 | 人人干97 | 国产欧美日韩精品在线 | 国产欧美日韩成人 | 欧美日韩视频在线第一区二区三区 | 99影视在线视频免费观看 | 男女污网站| a v在线男人的天堂观看免费 |