JFAT says "division by zero" when no filesystem

Project:JNode FS
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:active
Description

Reproduction:
1. Partition a harddrive (in Linux using cfdisk) with one partition, give the partition type 0B (FAT32 Win95)
2. Do not format the partition.
3. Boot JNode with that partition

Actual result:
During boot, JFAT throws an exception "Division by zero".

Expected result:
JNode or JFAT report "no filesystem found in FAT partition".

#1

Title:JFAT says "devision by zero" when no filesystem» JFAT says "division by zero" when no filesystem

fixed type error