当前位置:   article > 正文

报错fdisk: cannot write disk label: Invalid argument

fdisk: cannot write disk label: invalid argument

使用parted -l修复一下 即可重新扩容分区

  1. [root@fcecslpbddn21 ~]# parted -l
  2. Model: Virtio Block Device (virtblk)
  3. Disk /dev/vda: 53.7GB
  4. Sector size (logical/physical): 512B/512B
  5. Partition Table: msdos
  6. Disk Flags:
  7. Number Start End Size Type File system Flags
  8. 1 1049kB 53.7GB 53.7GB primary ext4 boot
  9. Model: Virtio Block Device (virtblk)
  10. Disk /dev/vdb: 8590MB
  11. Sector size (logical/physical): 512B/512B
  12. Partition Table: loop
  13. Disk Flags:
  14. Number Start End Size File system Flags
  15. 1 0.00B 8590MB 8590MB linux-swap(v1)
  16. Model: Virtio Block Device (virtblk)
  17. Disk /dev/vdc: 2147GB
  18. Sector size (logical/physical): 512B/512B
  19. Partition Table: msdos
  20. Disk Flags:
  21. Number Start End Size Type File system Flags
  22. 1 1049kB 2147GB 2147GB primary ext4
  23. Error: The backup GPT table is not at the end of the disk, as it should be.
  24. This might mean that another operating system believes the disk is smaller.
  25. Fix, by moving the backup to the end (and removing the old backup)?
  26. Fix/Ignore/Cancel? fix
  27. Warning: Not all of the space available to /dev/vdd appears to be used, you can fix the GPT to use all of the space (an extra
  28. 31457280000 blocks) or continue with the current setting?
  29. Fix/Ignore? fix
  30. Model: Virtio Block Device (virtblk)
  31. Disk /dev/vdd: 21.5TB
  32. Sector size (logical/physical): 512B/512B
  33. Partition Table: gpt
  34. Disk Flags:
  35. Number Start End Size File system Name Flags
  36. 1 1049kB 5369GB 5369GB xfs primary
  37. [root@fcecslpbddn21 ~]# fdisk /dev/vdd
  38. WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
  39. Welcome to fdisk (util-linux 2.23.2).
  40. Changes will remain in memory only, until you decide to write them.
  41. Be careful before using the write command.
  42. Command (m for help): p
  43. Disk /dev/vdd: 21474.8 GB, 21474836480000 bytes, 41943040000 sectors
  44. Units = sectors of 1 * 512 = 512 bytes
  45. Sector size (logical/physical): 512 bytes / 512 bytes
  46. I/O size (minimum/optimal): 512 bytes / 512 bytes
  47. Disk label type: gpt
  48. Disk identifier: 51D6A341-D5EC-4EA9-9740-843E35E10C7A
  49. # Start End Size Type Name
  50. 1 2048 10485757951 4.9T Microsoft basic primary
  51. Command (m for help): d
  52. Selected partition 1
  53. Partition 1 is deleted
  54. Command (m for help): n
  55. Partition number (1-128, default 1):
  56. First sector (34-41943039966, default 2048):
  57. Last sector, +sectors or +size{K,M,G,T,P} (2048-41943039966, default 41943039966):
  58. Created partition 1
  59. Command (m for help): w
  60. The partition table has been altered!
  61. Calling ioctl() to re-read partition table.

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小舞很执着/article/detail/759996
推荐阅读
相关标签
  

闽ICP备14008679号