Linux 硬盤分區(qū)生效命令partprobe
Linux 硬盤分區(qū)生效命令partprobe
藍(lán)隊(duì)云小課堂:
在linux磁盤管理中,使用fdisk將剩余的容量繼續(xù)分區(qū),但是在保存分區(qū)表時(shí),會(huì)出現(xiàn)以下報(bào)錯(cuò):
The partition table has been altered!Calling ioctl() to re-read partition table.WARNING: Re-reading the partition table failed with error 16: 設(shè)備或資源忙.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
該提示為:
重載分區(qū)出現(xiàn)的上述信息中,當(dāng)時(shí)對(duì)于警告提示“設(shè)備或資源忙,需要重啟系統(tǒng)才能使更改生效”直接忽略,以為是正常現(xiàn)象。但是對(duì)于錯(cuò)
誤信息“Error: 無效的分區(qū)表 - /dev/sr0 出現(xiàn)遞歸分區(qū)。
此時(shí)使用fdisk命令看不到新建的分區(qū)信息,可以使用partprobe命令解決這個(gè)問題而不用重啟系統(tǒng),因?yàn)閜artprobe可以使kernel重新讀
取分區(qū)信息,從而避免重啟系統(tǒng)。
partprobe
fdisk -l
此時(shí)看分區(qū)成功加載
更多小知識(shí),可聯(lián)系藍(lán)隊(duì)云一起探討。