婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > Linux下partprobe命令的使用詳解

Linux下partprobe命令的使用詳解

熱門標簽:地圖上標注點位的圖標 拉薩銷售外呼系統(tǒng)軟件 電銷語音機器人哪個好 常熟外呼系統(tǒng) 文山外呼營銷系統(tǒng) 江蘇小型外呼系統(tǒng)軟件 電話機器人服務(wù)器部署 中山防封卡電銷卡辦理 百度地圖標注未成功
linux上,在安裝系統(tǒng)之后,可否創(chuàng)建分區(qū)并且在不重新啟動機器的情況下系統(tǒng)能夠識別這些分區(qū)?
解決方法:

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

復制代碼
代碼如下:

rpm -q parted

舉例來說:

復制代碼
代碼如下:

# rpm -q parted

parted-1.6.3-29

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

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

復制代碼
代碼如下:

# partprobe

這個命令執(zhí)行完畢之后不會輸出任何返回信息,你可以使用mke2fs命令在新的分區(qū)上創(chuàng)建文件系統(tǒng)。

在Linux中使用fdisk命令進行分區(qū)時,有時會遇到“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)
p
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命令看不到新建的分區(qū)信息,可以使用partprobe命令解決這個問題而不用重啟系統(tǒng),因為partprobe可以使kernel重新讀取分區(qū)信息,從而避免重啟系統(tǒng)。

復制代碼
代碼如下:

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.

標簽:天門 威海 鶴壁 黔南 河南 海北 欽州 景德鎮(zhèn)

巨人網(wǎng)絡(luò)通訊聲明:本文標題《Linux下partprobe命令的使用詳解》,本文關(guān)鍵詞  Linux,下,partprobe,命令,的,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《Linux下partprobe命令的使用詳解》相關(guān)的同類信息!
  • 本頁收集關(guān)于Linux下partprobe命令的使用詳解的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 光泽县| 密山市| 延吉市| 大同市| 连山| 太仓市| 巩留县| 洛宁县| 丹棱县| 合江县| 石渠县| 永登县| 华亭县| 永定县| 大连市| 桐梓县| 奇台县| 永仁县| 建昌县| 普安县| 峨边| 九江县| 佛山市| 房产| 临桂县| 广东省| 贵定县| 汝阳县| 济源市| 潮安县| 泰顺县| 德令哈市| 繁峙县| 册亨县| 景东| 临漳县| 丹凤县| 新民市| 定南县| 青阳县| 大姚县|