[parted-devel] bug: parted gets partitions wrong

Jim Meyering jim at meyering.net
Thu May 29 12:37:07 UTC 2008


Jim Meyering <jim at meyering.net> wrote:
> Colin Watson <cjwatson at ubuntu.com> wrote:
> ...
>> Please consider the following patch, which does basically the same
>> thing. I think it's sufficiently trivial (and obvious based on other
>> implementations) to be non-copyrightable, but I can do assignment
>> paperwork if you feel you need it.
>>
>> With this patch, the supplied boot sector prints as follows:
>>
>>   $ LD_LIBRARY_PATH=`pwd`/libparted/.libs parted/.libs/parted ~/parted-test
>>   WARNING: You are not superuser.  Watch out for permissions.
>>   GNU Parted 1.8.8.1.30-c31f
>>   Using /home/cjwatson/parted-test
>>   Welcome to GNU Parted! Type 'help' to view a list of commands.
>>   (parted) print
>>   Model:  (file)
>>   Disk /home/cjwatson/parted-test: 1573MB
>>   Sector size (logical/physical): 512B/512B
>>   Partition Table: msdos
>>
>>   Number  Start   End     Size   Type     File system  Flags
>>    1      16.4kB  751MB   751MB  primary               boot
>>    2      751MB   1027MB  276MB  primary
>>
>> Signed-off-by: Colin Watson <cjwatson at canonical.com>

Thanks again, Colin,
I've edited the log entry and pushed the following,
along with a test (coming up in a separate message).



More information about the parted-devel mailing list