Bug in parted command .

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

For your information, I am using SUSE LINUX Enterprise Server 10 machine and the version of parted tool is 1.6.25.1 lx88245:~ # parted -v GNU Parted 1.6.25.1 Regards Masthan On 8/25/06, MASTHAN DUDEKULA <d.mastan@gmail.com> wrote:
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
participants (1)
-
MASTHAN DUDEKULA