溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

Linux中使用fdisk命令進(jìn)行分區(qū)時出現(xiàn)警告信息怎么辦

發(fā)布時間:2021-09-10 15:23:48 來源:億速云 閱讀:176 作者:chen 欄目:建站服務(wù)器

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

在Linux中使用fdisk命令進(jìn)行分區(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.

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

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI