Linux中使用fdisk命令進行分區(qū)時出現(xiàn)警告信息怎么辦-創(chuàng)新互聯(lián)

這篇文章主要介紹“Linux中使用fdisk命令進行分區(qū)時出現(xiàn)警告信息怎么辦”,在日常操作中,相信很多人在Linux中使用fdisk命令進行分區(qū)時出現(xiàn)警告信息怎么辦問題上存在疑惑,小編查閱了各式資料,整理出簡單好用的操作方法,希望對大家解答”Linux中使用fdisk命令進行分區(qū)時出現(xiàn)警告信息怎么辦”的疑惑有所幫助!接下來,請跟著小編一起來學習吧!

讓客戶滿意是我們工作的目標,不斷超越客戶的期望值來自于我們對這個行業(yè)的熱愛。我們立志把好的技術通過有效、簡單的方式提供給客戶,將通過不懈努力成為客戶在信息化領域值得信任、有價值的長期合作伙伴,公司提供的服務項目有:空間域名、雅安服務器托管、營銷軟件、網(wǎng)站建設、奇臺網(wǎng)站維護、網(wǎ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.

到此,關于“Linux中使用fdisk命令進行分區(qū)時出現(xiàn)警告信息怎么辦”的學習就結束了,希望能夠解決大家的疑惑。理論與實踐的搭配能更好的幫助大家學習,快去試試吧!若想繼續(xù)學習更多相關知識,請繼續(xù)關注創(chuàng)新互聯(lián)-成都網(wǎng)站建設公司網(wǎng)站,小編會繼續(xù)努力為大家?guī)砀鄬嵱玫奈恼拢?/p>

文章標題:Linux中使用fdisk命令進行分區(qū)時出現(xiàn)警告信息怎么辦-創(chuàng)新互聯(lián)
網(wǎng)址分享:http://www.muchs.cn/article20/ddsjjo.html

成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站策劃移動網(wǎng)站建設、軟件開發(fā)、品牌網(wǎng)站建設、品牌網(wǎng)站設計、網(wǎng)站設計

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉載內(nèi)容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉載,或轉載時需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站優(yōu)化排名