-
Notifications
You must be signed in to change notification settings - Fork 20
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
truncate on exfat doesn't seem to work #503
Comments
@dlundqvist there's insufficient information here to be able to suggest much of anything. Let's start with the basics. Does your board work properly with a non-exFAT SD card? Have you tried more than one SD card? What version of the firmware are you running? What model of ZuluSCSI are you using? Assume we know nothing about what you've tried up until now, because we don't :) Most of these questions can be answered by providing us with the output from your ZuluSCSI, which you will need to collect via USB serial console, since it isn't writing a log to the SD card. All you need to do is have the board connected to a modern computer via USB, and have a terminal emulation app running, such as GNU screen. The virtual serial interface should enumerate as /dev/ttyACM* |
Apologies, I shouldn't have been so terse.
Yes, the board works fine with vfat and exfat. It's just that creating image file via
Yes.
v2025.01.09
ZuluSCSI RP2040 I'll hook USB and get more information. |
From USB serial:
This is after creating HD1.img with |
@dlundqvist it doesn't look like the image is being properly created, which has nothing to do with the ZuluSCSI firmware itself, since you used the truncate command, which is part of GNU coreutils. This is not a firmware bug. The firmware sees a zero-byte file, which it simply cannot use. I don't know why truncate doesn't work under Linux with exFAT, but it might be worth reporting to the GNU coreutils project
|
The file is there, and it's the correct size and if read with
This is because it's sparse (which is what happens when using The reason why I created this issue is because ZuluSCSI documentation shows to use |
@dlundqvist that makes sense. We use the sdfat library. A cursory examination of the official sdFat repo seems to indicate that it does not have any support for sparse files at this time, or at least the word "sparse" does not exist anywhere in the entire repository, nor any associated issues: https://github.com/search?q=repo%3Agreiman%2FSdFat%20sparse&type=code |
Hi,
Using
truncate
on Linux withexfat
does not seem to work. ZuluSCSI indicates with three blinks that it cannot find any image, and it doesn't even create/updatezululog.txt
. Anything I can do to troubleshoot this issue?The text was updated successfully, but these errors were encountered: