partprobe報錯Device or resource busy

Warning: the kernel failed to re-read the partition table on /dev/vda (Device or resource busy)

我在初始化Linux數據盤時,執行將partprobe,新的分區表變動同步至操做系統,遇到了如下問題:bash

Warning: WARNING: the kernel failed to re-read the partition table on /dev/vda (Device or resource busy).
 As a result, it may not reflect all of your changes until after reboot.


我首先嚐試了一個方法ide

假設新增的分區是/dev/sda9,那麼執行partx -a /dev/sda9 /dev/sda就能夠了spa

2019090215151759.png

宣佈失敗。操作系統


partprobe必須具體到新建的那個分區,不然沒法成功從新讀取分區表debug

如:orm

partprobe
Warning: WARNING: the kernel failed to
re-read the partition table on /dev/sda (Device or resource busy).
As a result, it may not reflect all of your changes until after reboot.

(錯誤信息,提示重啓,可是重啓以後也沒法成功,由於partprobe須要針對單個新增分區才適當)blog

如:同步

partprobe /dev/sda9it

/dev/sda9爲剛用fdisk新建的分區,顯示成功io

partprobe這個命令執行完畢以後不會輸出任何返回信息

成功debug√

相關文章
相關標籤/搜索