<div dir="ltr"><div>As Andreas mentioned, using libext2fs (<a href="http://giis.co.in/libext2fs.pdf">http://giis.co.in/libext2fs.pdf</a>) is 100 times easier than writing your own code</div><div>and I learned this hard way :p First two links are insane, I highly recommend not to open them ;)  third link uses libext2fs.</div><div><br></div><div><a href="https://github.com/Lakshmipathi/giis/blob/master/src/init.c#L195">https://github.com/Lakshmipathi/giis/blob/master/src/init.c#L195</a><br></div><div><a href="http://giis.co.in/Kick_start.html">http://giis.co.in/Kick_start.html</a></div><div><br></div><div><a href="https://github.com/Lakshmipathi/giis-ext4/blob/master/src/giis-ext4.c">https://github.com/Lakshmipathi/giis-ext4/blob/master/src/giis-ext4.c</a></div><div><br></div><div><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">----<br>Cheers,<br>Lakshmipathi.G<br>FOSS Programmer.<br><a href="http://www.giis.co.in" target="_blank">www.giis.co.in</a></div></div></div></div></div><br></div></div>