这篇文章主要介绍“Linux中使用fdisk命令进行分区时出现警告信息怎么办”,在日常操作中,相信很多人在Linux中使用fdisk命令进行分区时出现警告信息怎么办问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”Linux中使用fdisk命令进行分区时出现警告信息怎么办”的疑惑有所帮助!接下来,请跟着小编一起来学习吧!在Linux中使用fdisk命令进行分区时,有时会遇到“WARNING: Re-reading the partition table failed with error 16: Device or resource busy.The kernel still uses the old tab开发云主机域名le.The new table will be used at the next reboot.”这种告警信息。如下所示[root@localhost ~]# fdisk /dev/sdeThe 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): pDisk /dev/sde: 155.6 GB, 155692564480 bytes255 heads, 63 sectors/track, 18928 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDevice Boot Start End Blocks Id System/dev/sde1 1 18275 146793906 5 Extended/dev/开发云主机域名sde5 1 18275 146793874+ 83 LinuxCommand (m for help): nCommand actionl logical (5 or over)p primary partition (1-4)pPartition number活动:慈云数据爆款香港服务器,CTG+CN2高速带宽、快速稳定、平均延迟10+ms 速度快,免备案,每月仅需19元!! 点击查看 (1-4): 2First cylinder (18276-18928, default 18276):Using default value 18276Last cylinder or +size or +sizeM or +sizeK (18276-18928, default 18928):Using default value 18928Command (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 at the next reboot.Syncing disks.此时使用fdisk命令看不到新建的分区信息,可以使用partprobe命令解决这个问题而不用重启系统,因为partprobe可以使kernel重新读取分区信息,从而避免重启系统。partprobe – inform the OS of partition table changesDESCRIPTIONThis 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命令进行分区时出现警告信息怎么办”的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注开发云网站,小编会继续努力为大家带来更多实用的文章!
本文从转载,原作者保留一切权利,若侵权请联系删除。
《Linux中使用fdisk命令进行分区时出现警告信息怎么办》来自互联网同行内容,若有侵权,请联系我们删除!
还没有评论,来说两句吧...