WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
来源:互联网 发布:spice仿真软件下载 编辑:程序博客网 时间:2024/05/20 16:35
在 mkfs.ext4 /dev/sda2 格式化硬盘空间时,可能出现这样的错误。
had this situation at office where I was told to re-partition an already existing partition. The situation was to get the below schema
/dev/sdb1 1 3040 24418768+ 83 Linux
/dev/sdb2 3041 6080 24418800 83 Linux
/dev/sdb3 6081 30515 196274137+ 83 Linux
to
/dev/sdb1 1 3040 24418768+ 83 Linux
/dev/sdb2 3041 6080 24418800 83 Linux
/dev/sdb3 6081 30515 196274137+ 5 Extended
/dev/sdb5 6081 18239 97667136 83 Linux
/dev/sdb6 18240 30515 98606938+ 83 Linux
Alright, now the partition /dev/sdb2 was in use and cannot be unmounted. So what happens when you finish the partitioning with 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.
Syncing disks.
This happends, if you are using/mounted any partitions of the HDD which you just re-partitioned. Normally we do reboot the machine to get this right. But this is not always the easy way out, when you have something running on the machine/multiple users are on the machine working etc. So there comes the “parted” for rescue.
The package “parted” provides a tool called “partprobe“. This will do the magic for you, you just type in the command (see the man page for more info on partprobe) and this will give the information needed about your newly created partition to your kernel.
解决方法:执行下partprobe 命令
partprobe包含在parted的rpm软件包中。partprobe可以修改kernel中分区表,使kernel重新读取分区表。 因此,使用该命令就可以创建分区并且在不重新启动机器的情况下系统能够识别这些分区。
查看是否安装该命令:
[root@db1 dev]# rpm -q parted
parted-1.8.1-23.el5
我们执行一下该命令:
[root@db1 dev]# partprobe
Warning: Unable to open /dev/hdc read-write (Read-only file system). /dev/hdc has been opened read-only.
如果还有错误,可以从错误中看出来,需要reboot重启然后再mkfs格式化硬盘空间就可以了。
- WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
- how to deal with fdisk error: Re-reading the partition table failed with error 16: Device or resource busy.
- WARNING: the kernel failed to re-read the partition table on /dev/sda (Device or resource busy). .
- open failed: EBUSY (Device or resource busy)
- dequeueBuffer failed (Device or resource busy)
- ERROR: Removing '': Device or resource busy
- ERROR: Removing '***': Device or resource busy
- ERROR: Removing 'hello': Device or resource busy
- ERROR: Removing 'hello': Device or resource busy
- Device or resource busy
- Device or resource busy
- device-mapper: remove ioctl failed: Device or resource busy
- oracle RAC OCR device: PROC-26: Error [Device or resource busy] [16]
- insmod: error inserting 'memdev.ko': -1 Device or resource busy
- ubuntu12.04 insmod&rmmod出现Error:Device or resource busy
- mount device or resource busy
- module编程 Device or resource busy
- rmmod 时出现device or resource busy
- VMware 下扩展linux硬盘空间
- Android——SQLite笔记本
- 频域滤波(一) 傅里叶谱与相位
- C++课上ppt6复习 Standard Template Library
- linux快速删除大量小文件
- WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
- 电脑硬盘数据丢失后怎么恢复
- 新版adt下android资源文件string的格式化问题
- 关于编号自增问题
- Ruby on Rails Tutorial 学习笔记 --第三章 基本静态的页面
- CSS3学习笔记之(三)选择器
- java时间与sql时间的转换,
- Android数据库的操作
- classloader 类加载器详解