Error:
when formatting the partition of the Linux extended disk, if an error is reported:
warning: failed to re read the partition table, error 16: the device or resource is busy.
[root@ly host0]# fdisk /dev/sda -l
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 or after you run partprobe(8) or kpartx(8)
Syncing disks.
Solution:
Sync.
centos6
[root@ly ~]# partprobe /dev/sdb # centos6 has bugs that don't work well
[root@ly ~]# partx -a /dev/sdb # Add partition
[root@ly ~]# partx -d --nr 5-7 /dev/sdb # -d delete partition, --nr 6 specify range
centos5,7:
partprobe
Read More:
- Ubuntu Startup Error: warning failed to connect to lvmetad,falling back to device scanning
- [Ubuntu] How to Solve dpkg Error: dpkg: error: failed to open package info file ‘/usr/local/var/lib/dpkg/status’ for reading: No such file or directory
- [Solved] pxp_lib.h:19:10: fatal error: linux/pxp_device.h: No such file or directory
- [Solved] Python Import mmcv Warning: ImportError: libGL.so.1: cannot open shared object file: No such file or directory
- WARNING: Download failure <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
- [Solved] nova-compute.log Error: Instance failed block device setup
- [Solved] Failed to execute/bin/bash: resource temporarily unavailable
- stream copy error: reading from a closed fifo [How to Solve]
- [Solved] Sshd startup error: Failed at step CGROUP spawning /usr/sbin/sshd: No space left on device
- [Solved] Rocketmq error: service not available now, may disk full, CL: 0.95, CQ: 0.95, index: 0.95
- [Solved] Error: Connection activation failed: No suitable device found for this connection.
- The solution of insufficient disk space of docker in Ubuntu
- Error: ENOSPC: no space left on device [How to Solve]
- Solution of device eth0 does not see to be present, delaying initialization. Error in network card under Linux
- [Solved] SSH WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
- [Solved] Some index files failed to download.They have been ignored, or old ones used instead
- C# implementation of TXT document to table example code
- [Solved] Jenkins+Ant Error: Error reading project file xxxxx
- [Solved] SSH connect Error: “WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED“
- [Solved] linux kernel load driver Error: module verification failed: signature and/or required key missing – tainting kernel