Re: Bug in parted command .
"MASTHAN DUDEKULA" <[email protected]> Fri, 25 Aug 2006 12:34:29 +0530
| Newsgroups | gmane.linux.suse.ia64,gmane.linux.suse.programming-e,gmane.comp.gnu.parted.bugs |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_29310_25379925.1156489469531 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 <[email protected]> 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 > ------=_Part_29310_25379925.1156489469531 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline <font color="#0000ff" size="2"> <p>For your information, I am using SUSE LINUX Enterprise Server 10 machine and the version of parted tool is <a href="http://1.6.25.1">1.6.25.1</a></p> <p>lx88245:~ # parted -v</p> <p>GNU Parted <a href="http://1.6.25.1">1.6.25.1</a></p> <div></div></font>Regards <div> </div> <div>Masthan<br><br> </div> <div><span class="gmail_quote">On 8/25/06, <b class="gmail_sendername">MASTHAN DUDEKULA</b> <<a href="mailto:[email protected]">[email protected]</a>> wrote:</span> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"> <div> <div> </div> <div> </div> <div>Hi All, </div> <div> </div> <div>Here an intresting issue on parted command.</div> <div> </div> <div>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.</div> <div> </div> <div><font size="2"> <p>lx88245:~ # parted -s /dev/sdc print</p> <p>Disk geometry for /dev/sdc: 0kB - 1074MB</p> <p>Disk label type: msdos</p> <p>Number </p></font><font color="#ff0000" size="2">Start </font><font size="2">End Size Type File system Flags <p>lx88245:~ # parted -s /dev/sdc mklabel msdos</p> <p>lx88245:~ # parted -s /dev/sdc mkpart p 0 1065</p> <p>lx88245:~ # parted -s /dev/sdc print</p> <p>Disk geometry for /dev/sdc: 0kB - 1074MB</p> <p>Disk label type: msdos</p> <p>Number </p></font><font color="#ff0000" size="2">Start </font><font size="2"> </font><font face="Arial" size="2"></font><font size="2">End </font><font face="Arial" size="2"></font><font size="2">Size </font> <font face="Arial" size="2"></font><font size="2">Type File system Flags <p>1 </p></font><font face="Arial" size="2"></font><font color="#ff0000" size="2">1kB</font><font size="2"> 1065MB 1065MB primary </font><font face="Arial" size="2"></font><font size="2">type=83 <p>lx88245:~ # parted -s /dev/sdc rm 1</p> <p>lx88245:~ # parted -s /dev/sdc print</p> <p>Disk geometry for /dev/sdc: 0kB - 1074MB</p> <p>Disk label type: msdos</p> <p>Number </p></font><font color="#ff0000" size="2">Start</font><font size="2"> End Size Type File system Flags <p>lx88245:~ # parted -s /dev/sdc mklabel msdos</p> <p>lx88245:~ # parted -s /dev/sdc mkpart p 0 1069</p> <p>lx88245:~ # parted -s /dev/sdc print</p> <p>Disk geometry for /dev/sdc: 0kB - 1074MB</p> <p>Disk label type: msdos</p> <p>Number </p></font><font color="#ff0000" size="2">Start </font><font size="2"></font><font face="Arial" size="2"></font><font size="2">End </font><font face="Arial" size="2"></font><font size="2">Size </font> <font size="2">Type File system Flags <p>1 </p></font><font color="#ff0000" size="2">32kB </font><font size="2">1069MB 1069MB primary ext3 </font><font face="Arial" size="2"></font><font size="2">type=83 <p>lx88245:~ # parted -s /dev/sdc rm 1</p> <p>lx88245:~ # parted -s /dev/sdc mklabel msdos</p> <p>lx88245:~ # parted -s /dev/sdc mkpart p 0 1071</p> <p>lx88245:~ # parted -s /dev/sdc print</p> <p>Disk geometry for /dev/sdc: 0kB - 1074MB</p> <p>Disk label type: msdos</p> <p>Number </p></font><font color="#ff0000" size="2">Start </font><font size="2"></font><font face="Arial" size="2"></font><font size="2">End </font><font face="Arial" size="2"></font><font size="2">Size </font> <font size="2">Type File system Flags <p>1 </p></font><font face="Arial" size="2"></font><font size="2"></font><font color="#ff0000" size="2">1kB</font><font size="2"> 1071MB 1071MB primary </font><font face="Arial" size="2"></font> <font size="2">type=83 <p>lx88245:~ # </p> <p> </p> <p> </p> <p> </p> <p>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 ? </p> <p> </p> <p> </p> <p>is it bug in parted command ?</p> <p> </p> <p>Your help is appreciated ?</p> <p> </p> <p>Regards</p> <p>Masthan</p></font></div></div></blockquote></div><br> ------=_Part_29310_25379925.1156489469531--