<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Posting again as I was not a member…<o:p></o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:gray;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:EN-GB">From:</span></b><span lang="EN-US" style="mso-fareast-language:EN-GB"> Smith, Peter1 (GE Renewable Energy)
<br>
<b>Sent:</b> 07 March 2019 16:31<br>
<b>To:</b> 'yocto@yoctoproject.org' <yocto@yoctoproject.org><br>
<b>Subject:</b> Resizing extended partition in image created with wic (poky sumo)<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am having trouble with resizing a partition inside of an extended partition in an image created using wic (poky sumo).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Here is the .wks file I have used:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">part /mnt/boot --source bootimg-partition --ondisk mmcblk0 --label edgeos-boot --active --align 4096 --fixed-size=100M --fstype=msdos --use-uuid<o:p></o:p></p>
<p class="MsoNormal">part / --source rootfs --rootfs-dir=sdcard-image --ondisk mmcblk0 --use-uuid --uuid=EA2EEE0B-5C82-4817-8439-1202B5E5651A --fstype=ext3 --label edgeos-root --align 4096 --fixed-size 1G<o:p></o:p></p>
<p class="MsoNormal">part /mnt/rootfs2 --ondisk mmcblk0 --use-uuid --uuid=EA2EEE0B-5C82-4817-8439-1202B5E5651B --fstype=ext3 --label rootfs2 --align 4096 --fixed-size 1G<o:p></o:p></p>
<p class="MsoNormal">part /mnt/conf --ondisk mmcblk0 --use-uuid --fstype=ext3 --label edgeos-conf --align 4096 --fixed-size 20M<o:p></o:p></p>
<p class="MsoNormal">part /mnt/data --ondisk mmcblk0 --use-uuid --fstype=ext3 --label edgeos-data --align 4096 --fixed-size 2947M<o:p></o:p></p>
<p class="MsoNormal">bootloader --ptable msdos<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">…and here is what parted thinks about the content of the image:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Sector size (logical/physical): 512B/512B<o:p></o:p></p>
<p class="MsoNormal">Partition Table: msdos<o:p></o:p></p>
<p class="MsoNormal">Disk Flags:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Number Start End Size Type File system Flags<o:p></o:p></p>
<p class="MsoNormal">1 8192s 212991s 204800s primary fat16 boot<o:p></o:p></p>
<p class="MsoNormal">2 212992s 2310143s 2097152s primary ext3<o:p></o:p></p>
<p class="MsoNormal">3 2310144s 4407295s 2097152s primary ext3<o:p></o:p></p>
<p class="MsoNormal">4 4415487s 10500095s 6084609s extended lba<o:p></o:p></p>
<p class="MsoNormal">5 4415488s 4456447s 40960s logical ext3<o:p></o:p></p>
<p class="MsoNormal">6 4464640s 10500095s 6035456s logical ext3<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When I try and resize the extended partition to the end of the disk (it’s a 16GB SDCARD) with the following command I get an error<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">parted /dev/… resizepart 4 -1s<o:p></o:p></p>
<p class="MsoNormal">bash[177]: Expand extended partition(4)... Error: Unable to satisfy all constraints on the partition.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have searched the internet but can’t seem to find any suggestions about what could be wrong, any ideas?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Best Regards Peter Smith<o:p></o:p></p>
</div>
</body>
</html>