Corrupted FAT32 USB stick.

Hello David,
Today I suddenly got a strange problem with an USB stick in my Acorn RiscPC,
it let the machine hang completely when inserted in an UniPod USB port.
This stick was less than half full and used very much between RiscPC,
Raspberry Pi 3B with Raspbian Stretch 2018 and with another old Pi 1B
running RISC OS 5.24 where my !ROSBink runs for FidoNet now.
I must have once fortgotten to dismnount before removing, what I normally sure
do, but ANT Inet Suite sometimes crashes the machine, in case dismounting USB
is not possible anymore.
Fist I used FSCK.FAT at the Linux Pi 3B to examine faults after first
unmouting it, and serveral directories and files were reported defective,
but could be read normally when mounted, strange. So only one of the twoo FAT's
were corrupt I think.
So I renamed all defective directories and files to let the Raspbian OS
write the correct FAT info at the stick, and dismounted it afterwards.
Then I ran FSCK.FAT again en cleared the "Dirty" bit.
No other corrections were necessarry then, as I wiped much old files,
and renamed several I wanted to keep.
After that I ran FSCSK.FAT again to see if all was corrected OK.
pi@raspberrypi:~ $ sudo fsck.fat -n /dev/sda1
fsck.fat 4.1 (2017-01-24)
/dev/sda1: 651 files, 33646/61590 clusters
pi@raspberrypi:~ $
So no errors reported anymore.
But still the Stick hangs my RiscPC with RISC OS 4.04 and UniPod.
I did not change the USB MASSFS file OtherDevs for a long time,
so that cannot be the problem.
This stick worked ok since 2016 at all my machines, including RPC.
No it stops my RiscPC, and the only way out is the reset button at the back,
arg ;-(.
The stick still works ok at al my Pi's, RISC OS and Raspbian Stretch,
but nog on the RPC anymore ;-(.
What can I do to get it working again at my Acorn RiscPC with UniPod?
I have the Fat32Formatter for RISC OS, so I could move the data to another free
place, format the stick with Fat32Formatter and copy the data back.
I.e. only at the RISC OS Pi ofcourse, as the RPC hangs when inserting the stick
But will that be sufficient to get it working again at the RPC?
Could it be that the Partition table, or MasterBootRecord is defective?
Hou do I found out that?
Another solution could be to start using !LanMan98 at the RiscPC and share data
with my Pi 3B under Raspbian Stretch.
But I donot know how to share a directory at the Linux Pi.
My !LanMan98FS works OK with an old Win2K laptop on which I run Virtual Acorn
RiscPC. But there I can use RISC OS's !ShareFS too.
Thank you in advance for your help.
Greetings from Henri in NL.
Reply to
Henri Derksen
Loading thread data ...
"used very much".
Any chance you've simply run out of write cycles?
Why not network link the two devices?
 Click to see the full signature
Reply to
David Taylor
Hello David,
Every day only 2 or 3 files are written to. Mostly HTML messages, I want to visit their websites with mij Raspberry Pi 3B Raspbian and FF.
Normally could think that, but then it should still be normal readable. This stick works ok at all my other machine, both reading and writing.
That's an other problem I also gave the background details for. How do I share a map at the Pi 3B Raspbian Stretch Linux in the way I can connect to at the Acorn RiscPC with RISC OS 4.04 and !LanMan98FS? If that works OK, I donot need to use an USB stick for tranportations.
Greetings from Henri.
Reply to
Henri Derksen
Hello David,
especially you.
That's not the case, as it works OK as normal at all my other machines, i.e. Raspberry Pi 1B2 at RISC OS 5.24 and at my Pi 3B at Raspbian Stretch Linux, and also at my Asus L5800C Win2K laptop, both on Windows and Virtual Acorn RiscPC.
I can understand that, but at the RISC PC I am only running its normal built in DOSFS or mostly Win95FS because of long filenames.
Yesterday I discovered the same problem with another good working 2 GB USB stick at the RISC PC's UniPod USB port. I am only using FAT32FS at the Pi 1B2, not at the RiscPC. That other stick also works ok at all my other machines.
So I am going think there is something wrong at that SimTec UniPod USB. Have you or ohers more idea's I could try?
The problem with the UniPod USB stack from Symtec is that it only accepts max 2 GB versions of a small amount of makes. I have to search with a lamp to find new ones that work ok at the RiscPC. The Pi's accept all kind of USB makes and sizes.
So now I transport the files from RPC to Pi 1B2, and copy it form RamDisc to the USB stick. After that I move the stick tot de Pi 3B with Linux, and also the mouse/kb-dongel for wireless mouse and kb. So I would like a more permanent solution without that moving circus ;-(. All machines have EtherNet and InterNet. Can you tell me how I can share a Linux directory for connection with !LanMan98FS at the RiscPC? Thanks for your (and others) advice.
Reply to
Henri Derksen
Any particular David you are aiming at?
Two things, it could either be the card has reached end of life and is now unreliable, or more likely the corruption and repair has left it a state the RISC OS's FAT32FS doesn't like, even if it appears OK else where.
I recommend reformatting with FAT32Formatter. First RMKill FAT32FS and DOSFS so you can insert without out RISC OS trying to mount it and hang. If that still doesn't work, get a new stick, they are cheap enough to make it not worth wasting much time on.
Reply to
Agree with this, but I would also hope someone has notified ROOL. A faulty device shouldn't hang the computer.
Reply to
I was surprised that the absence of a USB hub and hard disc, with an automount of this disc into a sub-directory of "Pi" user's home directory, prevented my Pi (3B+, Raspbian Stretch) from booting. It gave a very brief message about "unable to mount" and booting stopped dead in its tracks. I'd expect that situation to be treated as a warning, and for booting to proceed with the proviso that the external HDD would not appear in the tree structure.
It was easily rectified, by plugging in the hub/HDD - I was trying for a bare-minimum setup for a confidence test, having just installed the Pi in my new house after packing it up (working) at the old house. It took longer to diagnose than otherwise, because the Pi is no longer in the same room as my Windows PC with its monitor, so I had to move monitor, keyboard and mouse to the Pi in the other room to work out why it wasn't booting.
Reply to
Your english is hard to understand on technical matters, but if you want to access files on the Pi remotely, you have several optipons open to you.
1/. Samba. This is the SMB protocol and is compatible with Microsoft Windows and apple file shares. If you canm manage TCP/IP based SAMBA (netbios over TCP) rather then the older netbeui proticoals thais should work fine. Smaba tends to be n te default intsallation
2/. NFS is well supported on the Pi if you install the packages for it. But I dowubt that Aciorn wopuld support it under RISCOS
3/. SFTP is avilable for file transfer if RISCOS supporets TCP/IP and ssh..
4/. FTP is also available.
Note that all of the above depend on a TCP/IP stack on the Acorn...well it LOOKS like that exists all right.
If you set up samba on the RPI you SHOULD see it appear on riscos network viewer.
formatting link

seems a decent guide
"The great thing about Glasgow is that if there's a nuclear attack it'll  
look exactly the same afterwards." 
 Click to see the full signature
Reply to
The Natural Philosopher
Hello Philospherer,
Sorry, but Englisch is not my native language.
Do I have to install something?, or if it is already there, how can I switch it on? I.e. make a Linux map shareable for others on the network?
I have !LanMan98 here on the RISC OS machine. It can handle Shared discs froms Windows machines, such as my Asus L5800c Laptop running at Windows 2000 (yes very old), or an old Windows XP system. I know less of Windows 7, 8 or 10.
That could be doable either. I have !FTPc and !FTPs on RISC OS. But the disadvantage of (S)FTP is that the received files get the date of transfer, not their original creation or modifying date ;-(. I am not interested in the moment of transfer. The big disadvantage is that older files then get newer dates, wich is much misleading ;-(.
I also have !SunFish and !MoonFish at Acorn RISC OS.
Yes it is for years, as I can e-mail too and also have !ROSBink for FTN.
Acorn uses !ShareFS with TCP/IP at the following ports:
aun-data 32768/udp aun-atp 32769/udp freeway1 32770/udp freeway2 32771/udp sharefs 49171/udp
Reply to
Henri Derksen
Probably there by default - I have raspian lite and it's on that.
It probably is on, if not installing it will switch it on
edit /etc/samba/smb.conf and restart the service
Samba then: # Follow these instructions
formatting link

?People believe certain stories because everyone important tells them,  
and people tell those stories because everyone important believes them.  
 Click to see the full signature
Reply to
The Natural Philosopher
With the default Raspbian, then yes you need to intall SAMBA.
formatting link

You will need to configure SAMBA to share the drives using the older SMB V1 protocol to be able to access them from Lanman98, as both Linux and Windows have this disabled due to security issues.
SunFish allows you to access NFS shares, so you need to install an NFS server on the Pi.
formatting link
I don't know of any implementation of Acorn Access/ShareFS, which is a shame, it would be a nice open source project for someone.
Reply to

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.