Fay32fs
Chris Hall (132) 3558 posts |
Fat32fs 1.42 (12 Jan 2013) seems to have a bug. I have noticed problems when writing a file – the writes proceed without error but only part of the file actually appears. This is on Pandaboard ES with a fat partition on the SD card mounted using
The problem is intermittent and I can’t seem now to persuade it to reappear.. |
Dave Higton (1515) 3534 posts |
Under what circumstances is this happening? Are you moving the SD card between machines? |
Chris Hall (132) 3558 posts |
I am not moving the card between machines. I have formatted the unused part of the SD card (i.e. above the 2G dual partition) as FAT and use it for data and lots of stuff. It is working again now but the problem was noticed when using BPUT#T,“string” to write a large file – it appeared to work, with no errors, but the file was incomplete, once with garbage at the end. Running the same programme on the SD card (SDFS::0) and the file was created correctly. I was also getting an odd error when trying to edit the file I had created (under fat32fs) – Zap said ‘version on disc is newer’ although nothing else was loaded. Today I can’t replicate the problem. |
Chris Johnson (125) 825 posts |
On an ARMini (BB version) I have certainly had random problems when writing large files to a 128GB Fat32 formatted SSD, although in my case the filer sometimes throws up an error, at other times the transfer/save just stops and a reset or reboot is the most reliable way to recover. I have no idea whether the root cause is Fat32Fs, or the usb-scsi stack or hardware. It does happen with more that one SSD, which are always connected via an external powered hub (more than one type has been used). (I have never had much success trying to run hard drives on the ARMini internal hub as supplied). I also have some external (usb) Seagate rotating drives, 300GB, self-powered which I bought cheap at Maplin a few years back, and these have never given any trouble. Thus up to now I have put my problems down to hardware rather than software. |
Chris Hall (132) 3558 posts |
I am not using the USB system – just fat32fs over SD Card, so that seems to implicate fat32fs rather than the USB stack… |
Raik (463) 2061 posts |
I have similar problems. SSD: With the ROMs prior to May 2012 (?), I had no problems. After that it was so, that when copying from HD to SSD, the SSD take in the standby mode while the HD is still reading. The filer aborts because RISC OS does not wake up the SSD again. |
Chris Johnson (125) 825 posts |
I do not use flash drives very much, and haven’t noticed any problems with them. However, I do get somewhat similar problems with SSDs (I have five 120 GB ones in total, not all the same make) and use them on BB and RPi. I always thought it was related to the usb hardware, perhaps lack of speed, because they all seem fine when connected to the Iyonix. Edit: I should add they are all Fat32 formatted. |
Raik (463) 2061 posts |
Sorry, the “wake up problem” is a 60GB ADFS SSD. I have also a 60GB Fat32 one and here I have more the “no copy but it looks like” error. |
Dave Higton (1515) 3534 posts |
The SD card has a driver. That’s where my suspicion lies. I did a lot of work figuring out how to drive SD cards. The first problem is that access to the full standards costs a lot of money, so we have to work from documentation of severely limited content. I’ve never had quite 100% confidence in the status codes returned by the SD interface. There have been instances where my software was used to write cards, but some writes failed. Internally, the status said it was OK, but some of the card was unreadable after. |
Raik (463) 2061 posts |
Maybe thats the reason why the most SoC-boards have a SD-card compatibility list. We are not alone ;-) |
Dave Higton (1515) 3534 posts |
Even a compatibility list is of dubious use. The card manufacturers can produce cards that are externally the same but have any number of different internal designs. |
Raik (463) 2061 posts |
I know :-( ;-) |
Chris Hall (132) 3558 posts |
Have just got an error from fat32fs (1.42) which said ‘Wrote 0 bytes of 512’ when trying a BPUT#r%,b% and then gave the same error after *CLOSE. This is on a Pandaboard ES whilst writing to the third partition (FAT) of an SD card (the other partitions are FAT (for firmware) and filecore (for !Boot etc)). Managed to repeat this but then it worked OK from then on. |
Chris Johnson (125) 825 posts |
I have seen similar types of message on a BB-xm when copying large files from one Fat drive to another, and occasionally when saving a large file. I have never been sure whether it is Fat32Fs itself, or the underlying OS modules. |
David R. Lane (77) 766 posts |
I don’t know whether a problem I have is related to the problems with fat32fs in this thread. |
Dave Higton (1515) 3534 posts |
You do go through the “Safely remove hardware” process before you unplug the USB stick from Windows every time, don’t you? |
Colin (478) 2433 posts |
I’ve seen a similar problem but it happens in both dosfs and fat32fs. I modify a file on a pc and cut and paste it to a memory stick for transfer to my iyonix. Repeating this process a number of times overwriting the original file when pasting – file getting bigger each time – eventually the file can’t be read on the iyonix (though it can on a pc). Its as though there’s a problem when the file extends. I rename the original file then paste to work around it. Is as though riscos has problems with fragmentation. |
Dave Higton (1515) 3534 posts |
They look like two different problems to me, if I’ve understood David Lane’s description correctly. For the file not to be seen at all implies a problem reading the directory. To be unable to access the data, and/or for the file to get bigger each time, implies some problem following the chain in the allocation table. |
David R. Lane (77) 766 posts |
I always dismount the USB stick whether on my Android Pad or on Windows or even on RISC OS. I didn’t include this information in my post as I thought it a bit boring. ;-) |
David R. Lane (77) 766 posts |
I have tested my problem again with a jpg file that came with my Asus transformer pad. I copied it to a FAT32-formatted USB stick, dismounted the stick, stuck it in my Pandaboard, but it can’t be seen by RISC OS. |
Chris Hall (132) 3558 posts |
Is this to do with there being more than one FAT (file allocation table) and that Windows writes to only one of them? That way Windows sees a different set of files to fat32fs? |