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, 5 months ago.
Unable to write to MBED LPC1768. Not enough free space. Mac OS X 10.8.4
MBED was working fine for several days. Now suddenly I cannot copy newly compiled .bin to the MBED "USB disk" Mac OS reports:
The item “SPI_Test_LPC1768.bin” can’t be copied because there isn’t enough free space.
Even the smallest 10KB programs.
Running disk Utility reports:
Mount Point : /Volumes/MBED Capacity : 2.1 MB (2,097,152 Bytes) Format : MS-DOS (FAT12) Available : 9 KB (9,216 Bytes) Owners Enabled : No Used : 2.1 MB (2,055,168 Bytes) Number of Folders : 0 Number of Files : 512
So, for some reason, Mac OS thinks the MBED drive is full The only file I see is the MBED.HTM file at 340 bytes.
Terminal dump of USB disk contents:
total 62 drwxrwxrwx@ 1 Liam staff 16384 Jul 4 12:31 . drwxrwxrwt@ 5 root admin 170 Jul 4 12:19 .. drwxrwxrwx@ 1 Liam staff 512 Jun 28 13:07 .TemporaryItems drwxrwxrwx@ 1 Liam staff 512 Jun 26 22:31 .Trashes -rwxrwxrwx 1 Liam staff 4096 Jun 28 13:07 ._.TemporaryItems -rwxrwxrwx 1 Liam staff 4096 Jun 26 22:18 ._.Trashes -rwxrwxrwx 1 Liam staff 4096 Jun 28 13:07 ._.apdisk -rwxrwxrwx@ 1 Liam staff 290 Jun 28 13:07 .apdisk drwxrwxrwx 1 Liam staff 1024 Jul 4 12:19 .fseventsd -rwxrwxrwx 1 Liam staff 340 Jan 1 2008 MBED.HTM
Have reset the board, powered it down, rebooted Mac etc. Have not used Disk Utility to scrub the disk; feels dangerous...
Anyone have any ideas? Thanks.
3 Answers
11 years, 5 months ago.
When you delete things from removable drives on Macs, it moves it to a hidden folder in the root of the drive called ".Trashes"
GUI way: empty the trash. This gets rid of the contents of the .Trashes folders on all volumes that are currently mounted.
Since you are familiar with the command line:
cd /Volumes/MBED (your path might be different) rm -rf .Trashes
-Kevin
11 years, 5 months ago.
It seems to think there are a whole bunch of files on it. I don't have a mac myself, but can those files be hidden? Did you see files on it after copying them to the mbed? Because normally you should still see the files after copying them to the mbed (for the 1768 and 11u24, the KL25Z is a different case), and once in a while you need to delete them to make room for new files.
As said I am not a mac user myself, but on windows it is perfectly fine to format the mbed disk to clean it out. (Have also needed it after getting corrupt files on it).
11 years, 5 months ago.
Thank you for your answers. This worked.
Other solution that I found was to save mbed.htm to the desktop, reformat the USB "drive" and then put the mbed file back. Essentially it's the same thing as above.
Liam.
I had the same problem, and it was something really silly that fixed it. All you have to do is empty the trash of all the files you've deleted over time. Worked for me, hope it works for everyone else.
posted by Brooks McDonnell 05 Oct 2017