Bug in parted command .

"MASTHAN DUDEKULA" <[email protected]> Fri, 25 Aug 2006 12:26:16 +0530
Newsgroups gmane.linux.suse.programming-e,gmane.linux.suse.ia64,gmane.comp.gnu.parted.bugs
Message-ID <[email protected]>
------=_Part_29246_5230391.1156488976486
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi All,

Here an intresting issue on parted command.

I have a device of size 1074 MB and i tried to create partitions with parted
command. The intresting issue is, the start position of first partition is
not constant. The following snippet explain you more on this.


lx88245:~ # parted -s /dev/sdc print

Disk geometry for /dev/sdc: 0kB - 1074MB

Disk label type: msdos

Number Start End Size Type File system Flags

lx88245:~ # parted -s /dev/sdc mklabel msdos

lx88245:~ # parted -s /dev/sdc mkpart p 0 1065

lx88245:~ # parted -s /dev/sdc print

Disk geometry for /dev/sdc: 0kB - 1074MB

Disk label type: msdos

Number Start   End       Size    Type  File system Flags

1           1kB 1065MB 1065MB primary                type=83

lx88245:~ # parted -s /dev/sdc rm 1

lx88245:~ # parted -s /dev/sdc print

Disk geometry for /dev/sdc: 0kB - 1074MB

Disk label type: msdos

Number Start End Size Type File system Flags

lx88245:~ # parted -s /dev/sdc mklabel msdos

lx88245:~ # parted -s /dev/sdc mkpart p 0 1069

lx88245:~ # parted -s /dev/sdc print

Disk geometry for /dev/sdc: 0kB - 1074MB

Disk label type: msdos

Number Start End         Size     Type    File system Flags

1          32kB 1069MB 1069MB primary  ext3          type=83

lx88245:~ # parted -s /dev/sdc rm 1

lx88245:~ # parted -s /dev/sdc mklabel msdos

lx88245:~ # parted -s /dev/sdc mkpart p 0 1071

lx88245:~ # parted -s /dev/sdc print

Disk geometry for /dev/sdc: 0kB - 1074MB

Disk label type: msdos

Number Start End      Size        Type File system Flags

1          1kB 1071MB  1071MB primary                 type=83

lx88245:~ #







In the first ( parted -s /dev/sdc mkpart p 0 1065)  and third  ( parted -s
/dev/sdc mkpart p 0 1071) case the start position of first partition is 1 KB
( first block ) but in second case ( parted -s /dev/sdc mkpart p 0 1069) it
is ( 32 kB). Can anyone explain it why it is happening like this ?





is it bug in parted command ?



Your help is appreciated ?



Regards

Masthan

------=_Part_29246_5230391.1156488976486--