Hi,

Using 'parted' i am creating a primary ext2 partition on a loop device.
The partition is being created on the entire device under consideration.

For a 7MB device after creating the partition, a print with parted gives the following.
-----------------------------------------------------
Disk geometry for /dev/loop0: 0.000-7.000 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.000 7.000 primary type=83
-----------------------------------------------------



For a 8MB size, the output of parted is as follows.
-----------------------------------------------
Disk geometry for /dev/loop0: 0.000-8.000 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 7.844 primary type=83
-------------------------------------------------

It can be seen that for 8MB device, the start and end of the patition is not 0 and 8, whereas for 7MB size the start and end is 0 and 7.

For disk sizes less than 8MB, the entire disk get partioned. But for disk sizes 8MB and above, this is not the case.

Does anyone have a reasoning for this or is this a bug in parted??

I am using Suse 2.6 kernel 64 bit.

the version of parted is GNU Parted 1.6.21