[lug] Convertion of ext4 Sparse Files

stimits at comcast.net stimits at comcast.net
Sat Jan 6 09:19:56 MST 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20180106/78ebc8fe/attachment.html>


More information about the LUG mailing list