On 11-06-15 02:13 AM, Jim Meyering wrote:
ben wrote:
With libparted, version 2.3, I have been having a problem with
ped_disk_get_max_partition_geometry(). The function returns values that are
correct for the beginning of a partition but too small for the end. This only
seems to happen with MS-DOS disk labels. The returned value can be short by
over 2 megabytes and can even be *smaller* than the partition that already
exists there.
I have seen the same behavior with disks of 40 GB too 1 TB and even flash
drives. GParted reports the correct sizes and often shows substantial
unallocated space after a partition that was supposed to be maximized.
I am running Debian Linux.
Ben, this is just a thought, but perhaps the values you are seeing are
due to cylinder alignment?
With today's large disk devices, one cylinder is about 8 megabytes in size.
(255 heads) * (63 sectors/track) * (512 bytes/sector) = 8,225,280 bytes.
_______________________________________________
bug-parted mailing list
bug-parted@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-parted