Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 10 months ago.
mbed mounts on linux as a read only filesystem
Hi there, I've got an mbed LPCU1124, that after failing to close a file on the local filesystem will not mount read write on linux. Holding down the button doesn't seem to help or change its status and provide a method to read with....
any help much appreciated.
Chris
1 Answer
11 years, 10 months ago.
I have found that some GUI file managers in linux don't handle the MBED filesystem well. I have not had any problems from the firefox "save" dialog though.
On the one occasion I had the MBED filesystem do weird stuff, I just reformatted using the info at the bottom of this link.... http://mbed.org/cookbook/deadmbed
NOTE: there is an easier way to get the device (ie: /dev/sdx) on many modern systems. it is shown here......
Linux User:
First we need to delete the old partitions that remain on the USB key.
- Open a terminal and type the following commands
sudo blkid -L MBED # note your MBED device. sudo fdisk /dev/sdx #(replacing x with your drive letter)
- Type p to print the current partition table
- Type d to proceed to delete a partition
- Type 1 to select the 1st partition and press enter
- Repeat to delete all partitions as required Then format
mkfs.vfat -F 12 -I -nMBED /dev/sdx #(replacing x with your USB key drive letter)
edit: I have just updated the "deadmbed" page with this info.
The following command worked for me to resolve the read-only issue on Linux.
sudo mount -o remount,rw /media/$USER/MBED
https://os.mbed.com/questions/6063/Mbed-filesystem-goes-into-readonly-mode/
posted by 09 Apr 2019
Quick fix may be to try it on Windows PC. Download a working bin that does not touch the local filesystem. Reset to activate new bin. Then delete locked file and retry on Linux.
posted by Wim Huiskamp 18 Jan 2013