<div dir="ltr"><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;font-size:small;color:rgb(0,0,153)"><span style="font-family:arial;color:rgb(34,34,34)">On Tue, Jun 3, 2014 at 9:20 AM, Rahul Nabar </span><span dir="ltr" style="font-family:arial;color:rgb(34,34,34)"><<a href="mailto:rpnabar@gmail.com" target="_blank">rpnabar@gmail.com</a>></span><span style="font-family:arial;color:rgb(34,34,34)"> wrote:</span><br>

</div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I accidentally managed to fill up the persistent COW snapshot overlay<br>


on my Fedora20 USB & it got flagged Invalid thus rendering the Live<br>
USB unbootable since the root filesystem couldn't be mounted.<br>
<br>
dmsetup status<br>
live-rw 0 8388608 snapshot Invalid.<br>
<br>
 Subsequently I used a 2011 thread(link below) on the dm-devel mailing<br>
list ( Alasdair Kergon, Frederick Grose etc.) and flipped the invalid<br>
bit in the overlay file by booting a different system and attaching<br>
the USB stick to it.<br>
<br>
Like so:  echo $'\x01' | dd<br>
of=/run/media..../liveuser/LIVE.../overlay-LIVE-17F4-055A  bs=1<br>
count=1 seek=4 conv=notrunc<br>
<br>
hexdump of the file verified the flipped 5th byte. Now the LiveUSB<br>
boots & I can successfully see my data but it's hard to do anything<br>
more since it gets full almost immediately after I boot.<br>
<br>
Is there a way to grow the overlay file? Would this work?<br>
<br>
 dd if=/dev/zero of=overlay-LIVE-17F4-055A seek=overlay_size count=size_increase<br>
<br>
How do I compute the number overlay_size?</blockquote><div><br></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,153)"><span style="font-family:'trebuchet ms',sans-serif">​</span><font face="courier new, monospace">blockdev -q --getsz <overlay/device/path or overlay/file/path>​</font></div>

<div class="gmail_default" style="font-size:small;color:rgb(0,0,153)"><font face="courier new, monospace"><br></font></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,153)"><font face="courier new, monospace">or the denominator in the </font></div>

<div class="gmail_default" style="font-size:small;color:rgb(0,0,153)"><font face="courier new, monospace"><br></font></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,153)"><font face="courier new, monospace">dmsetup status</font></div>

<div class="gmail_default" style="font-size:small;color:rgb(0,0,153)"><font face="courier new, monospace"><br></font></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,153)"><font face="courier new, monospace">for the live-rw snapshot</font></div>

<div class="gmail_default" style="font-size:small;color:rgb(0,0,153)"><font face="courier new, monospace"><br></font></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,153)"><font face="courier new, monospace">(Units are 512 byte sectors.)</font></div>

<div class="gmail_default" style="font-size:small;color:rgb(0,0,153)"><font face="courier new, monospace"><br></font></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

 I suppose size_increase can<br>
be some large number?<br>
<br>
Or are more steps needed to expand the overlay?<br>
<br>
<br>
<a href="http://thread.gmane.org/gmane.linux.kernel.device-mapper.devel/14644" target="_blank">http://thread.gmane.org/gmane.linux.kernel.device-mapper.devel/14644</a></blockquote><div><br></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,153)">

<span style="font-family:'trebuchet ms',sans-serif">​</span><font face="courier new, monospace">See</font></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,153)"><font face="courier new, monospace">​<a href="https://fedoraproject.org/wiki/LiveOS_image#Merge_overlay_into_new_image">https://fedoraproject.org/wiki/LiveOS_image#Merge_overlay_into_new_image</a></font></div>

<div class="gmail_default" style="font-size:small;color:rgb(0,0,153)"><font face="courier new, monospace"><br></font></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,153)"><font face="courier new, monospace">     --Fred</font></div>

</div></div></div>