fdisk WARNING: Re-reading the partition

网友投稿 846 2022-10-10

fdisk WARNING: Re-reading the partition

fdisk WARNING: Re-reading the partition

[root@test ~]# fdisk /dev/sdaWARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.Welcome to fdisk (util-linux 2.23.2).Changes will remain in memory only, until you decide to write them.Be careful before using the write command.Command (m for help): nPartition number (4-128, default 4): First sector (34-1873045470, default 1017546752): Last sector, +sectors or +size{K,M,G,T,P} (1017546752-1873045470, default 1873045470): Created partition 4Command (m for help): wThe 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 atthe next reboot or after you run partprobe(8) or kpartx(8)Syncing disks.

fdisk -l看不到磁盘分区,执行命令刷新,使用fdisk工具只是将分区信息写到磁盘,如果需要mkfs磁盘分区则需要重启系统,而使用partprobe则可以使kernel重新读取分区 信息,从而避免重启系统。

[root@test ~]# partprobe

linux

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Linux下inode满的解决方法
下一篇:FibJS- 协程应用开发框架(fibjs 兼容 node)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~