资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

Linux中使用fdisk命令进行分区时出现警告信息怎么办

这篇文章主要介绍“Linux中使用fdisk命令进行分区时出现警告信息怎么办”,在日常操作中,相信很多人在Linux中使用fdisk命令进行分区时出现警告信息怎么办问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”Linux中使用fdisk命令进行分区时出现警告信息怎么办”的疑惑有所帮助!接下来,请跟着小编一起来学习吧!

10年积累的网站制作、成都网站设计经验,可以快速应对客户对网站的新想法和需求。提供各种问题对应的解决方案。让选择我们的客户得到更好、更有力的网络服务。我虽然不认识你,你也不认识我。但先制作网站后付款的网站建设流程,更有建平免费网站建设让你可以放心的选择与我们合作。

在Linux中使用fdisk命令进行分区时,有时会遇到“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命令看不到新建的分区信息,可以使用partprobe命令解决这个问题而不用重启系统,因为partprobe可以使kernel重新读取分区信息,从而避免重启系统。

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.

到此,关于“Linux中使用fdisk命令进行分区时出现警告信息怎么办”的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注创新互联网站,小编会继续努力为大家带来更多实用的文章!


网站栏目:Linux中使用fdisk命令进行分区时出现警告信息怎么办
本文路径:http://cdkjz.cn/article/goeioh.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220