11 years, 3 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

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

1 Answer

11 years, 3 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.

  1. 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)
  1. Type p to print the current partition table
  2. Type d to proceed to delete a partition
  3. Type 1 to select the 1st partition and press enter
  4. 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.

Accepted Answer

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 Miles Frain 09 Apr 2019