[Gptfdisk-general] verify disk should warn if gpt table ends before end of disk
Brought to you by:
srs5694
From: Martin C. <cas...@un...> - 2024-12-08 15:10:11
|
Hi, I transitioned to a new, bigger storage medium by simply dd(1)ing it. When I tried to increase the last partition, it was not possible. No free space at the end was shown. "verify disk" did not mention any problems around that. I write this mail because I think it would be useful, if this condition would be mentioned. Using the expert command e fixes this. 'v' could recommend that. You can check that with the attached sparse disk image. Martin Castillo $ gdisk disk.iso GPT fdisk (gdisk) version 1.0.10 NOTE: Write test failed with error number 13. It will be impossible to save changes to this disk's partition table! Partition table scan: MBR: protective BSD: not present APM: not present GPT: present Found valid GPT with protective MBR; using GPT. Command (? for help): x Expert command (? for help): v Caution: Partition 3 doesn't end on a 2048-sector boundary. This may result in problems with some disk encryption tools. No problems found. 2014 free sectors (1007.0 KiB) available in 1 segments, the largest of which is 2014 (1007.0 KiB) in size. Expert command (? for help): k Currently, backup partition table begins at sector 937703055 and ends at sector 937703086 Enter new starting location (625142415 to 937703055; default is 937703055; 1 to abort): Aborting change! Expert command (? for help): e Relocating backup data structures to the end of the disk Expert command (? for help): v Caution: Partition 3 doesn't end on a 2048-sector boundary. This may result in problems with some disk encryption tools. No problems found. 312562654 free sectors (149.0 GiB) available in 2 segments, the largest of which is 312560640 (149.0 GiB) in size. Expert command (? for help): |