Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On Ubuntu IOException "missing boot sector signature" is thrown #24

Open
jaapdejong opened this issue Jan 14, 2015 · 4 comments
Open

On Ubuntu IOException "missing boot sector signature" is thrown #24

jaapdejong opened this issue Jan 14, 2015 · 4 comments

Comments

@jaapdejong
Copy link

The same code works under windows and mac.
The exception is thrown after calling
final FatFileSystem fileSystem = FatFileSystem.read(channel, true);
which at some point calls
public static BootSector read(BlockDevice device) throws IOException {

@waldheinz
Copy link
Owner

There is not much logic involved when checking the presence of a boot sector, so I can only assume the problem lies somewhere else. What kind of device are you trying to read from? Was it created by fat32-lib itself? Can it be read by other operating systems?

@jaapdejong
Copy link
Author

I created it under debian with:

dd if=/dev/zero of=tmpimage bs=1M count=120
mkfs.vfat -F32 tmpimage

I can read that image under ubuntu, windows and osx.
Also the same image + code works under windows and osx, but not under ubuntu.

I agree that the boot sector check is plain simple and so I guess I should look somewhere else for the error....

@waldheinz
Copy link
Owner

Thanks for taking the time to have a look. If you can't make any sense of this I'd be interested in getting my hands on the failing image file if you can find some place to upload it.

@jaapdejong
Copy link
Author

And thank you for the support! Will keep that in mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants