[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libparted ped_disk_get_max_partition_geometry() gives wrong size

From: Curtis Gedak
Subject: Re: libparted ped_disk_get_max_partition_geometry() gives wrong size
Date: Wed, 15 Jun 2011 09:14:12 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110424 Thunderbird/3.1.10

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]