dev.setDriver(new RamDiskDriver("jnode"));
dm.register(dev);
log.info("Format initrd ramdisk");
final FatFileSystemFormatter formatter = new FatFileSystemFormatter(FatType.FAT16);
final FileSystem<?> fs = formatter.format(dev);
try {
fs.getRootEntry().getDirectory().addDirectory("tmp");
} catch (IOException ex) {
log.error("Cannot create tmp on ramdisk");
}