[parted-devel] Sector of free space partition in msdos labels.

Joel Granados jgranado at redhat.com
Thu May 7 16:47:46 UTC 2009


And here comes the patch to solve this issue.
Comments greatly appreciated.

regards.
On Wed, May 06, 2009 at 01:31:48PM +0200, Joel Granados wrote:
> Hi list.
> 
> The question of the day is: Where does an msdos label begin?  In sector
> 0 or in sector 32 or in sector 63?  The answer is: It all depends on
> what partitions you have in the table.
> 
> little script to prove my point (This is run under latest git master
> branch)
> 
> <snip>
> #!/bin/bash
> parted="/usr/local/sbin/parted"
> dd if=/dev/zero of=test bs=1M count=100
> $parted test mklabel msdos
> $parted test unit s print free
> $parted test mkpart primary 50M 100M
> $parted test unit s print free
> rm test
> </snip>
> 
> Notice that the first time the script prints the free space, it starts
> in sector 0.  And the second time it prints the free space it begins in
> sector 32.  Why, I don't know yet.  Going to start to investigate.  IMO
> parted should be consistent as to where the free space begins regardless
> of the number of partitions in the table.
> 
> Comments appreciated.
> 
> Regards.
> 
> -- 
> Joel Andres Granados
> Brno, Czech Republic, Red Hat.
> 
> _______________________________________________
> parted-devel mailing list
> parted-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/parted-devel

-- 
Joel Andres Granados
Brno, Czech Republic, Red Hat.


More information about the parted-devel mailing list