[lug] Convertion of ext4 Sparse Files

Zan Lynx zlynx at acm.org
Sat Jan 6 09:21:34 MST 2018


On January 6, 2018 9:19:56 AM MST, stimits at comcast.net wrote:
>This also left an exact copy of the sparse image. Apparently this
>"android" sparse image is far enough from "standard" that even the
>android-tools also fail to know how to convert to non-sparse...it
>doesn't surprise me that direct byte copy fails since none of the
>"standard" sparse tools work correctly even though the "file" command
>recognizes this as sparse.
> 
>----- Original Message -----From: Steve Litt
><slitt at troubleshooters.com>To: lug at lug.boulder.co.usSent: Sat, 06 Jan
>2018 06:32:27 -0000 (UTC)Subject: Re: [lug] Convertion of ext4 Sparse
>Files
>
>On Fri, 5 Jan 2018 22:48:29 +0000 (UTC)stimits at comcast.net wrote:
>
>> Unfortunately this does not work (currently testing on Fedora 27),
>at> least not for this file which was originally a dd of a GPT
>partition> and then converted to sparse at a later time. Output and
>input files> are both the sparse file size.
>
>Then do this in C:
>
>while((c = getc(sparsefile)) != EOF) putc(c, normalfile);
>
>I can't imagine that not working. I didn't test this, and you need
>toadd a little open/close/errorhandling scaffolding, but you get
>thepicture. SteveT
>
>Steve Litt December 2017 featured book: Thriving in Tough
>Timeshttp://www.troubleshooters.com/thrive_______________________________________________Web
>Page: http://lug.boulder.co.usMailing List:
>http://lists.lug.boulder.co.us/mailman/listinfo/lugJoin us on IRC:
>irc.hackingsociety.org port=6667 channel=#hackingsociety

Search on Android sparse image. I found all kinds of tools referenced online.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20180106/614f2916/attachment.html>


More information about the LUG mailing list