pretty sure DScraft used a modified libnds/libfat that exposed those _FAT_getPosition, readSectors and writeSectors functions. I don't know that I have that version of libnds handy, so you'd probably need to reimplement them... i guess i could take a look at some point