public static void printInfo(File file, PrintWriter out)
throws IOException, FileSystemException {
FileDevice fd = new FileDevice(file, "r");
try {
final FileSystemService fSS = InitialNaming.lookup(FileSystemService.NAME);
FatFileSystemType type = fSS.getFileSystemType(FatFileSystemType.ID);
FatFileSystem fs = new FatFileSystem(fd, false, type);
try {
BootSector bs = fs.getBootSector();
bs.read(fd);