earlephilhower / mklittlefs

Utility for creating LittleFS images for upload on the ESP8266 and RP2040 Pico
MIT License
147 stars 52 forks source link

"File system is full" with small build #25

Closed mark-hahn closed 2 years ago

mark-hahn commented 2 years ago

I'm getting File system is full with what seems to me to be a small amount of data (72K). This is the directory I'm trying to pack ...

ls -alR dist
dist:
total 8
drwxrwxrwx 1 root root  512 Apr  3 15:47 .     
drwxrwxrwx 1 root root  512 Apr  3 15:52 ..    
drwxrwxrwx 1 root root  512 Apr  3 15:47 assets
-rwxrwxrwx 1 root root 4286 Apr  3 10:21 favicon.ico
-rwxrwxrwx 1 root root  494 Apr  3 15:47 index.html

dist/assets:
total 64
drwxrwxrwx 1 root root   512 Apr  3 15:47 .
drwxrwxrwx 1 root root   512 Apr  3 15:47 ..
-rwxrwxrwx 1 root root  2213 Apr  3 15:47 index.11733589.js
-rwxrwxrwx 1 root root   202 Apr  3 15:47 index.a7f5625d.css
-rwxrwxrwx 1 root root  6849 Apr  3 15:47 logo.03d6d6da.png
-rwxrwxrwx 1 root root 51456 Apr  3 15:47 vendor.5312c675.js

... and this is my attempt to pack ...

$ mklittlefs -c ../tiny-app/dist ../tiny/littlefs-image
/assets/index.11733589.js
/assets/index.a7f5625d.css
/assets/logo.03d6d6da.png
/assets/vendor.5312c675.js
littlefs/lfs.c:560:error: No more free space 27
lfs_write error(-28): File system is full.

error adding file!
Error for adding content from assets!
/favicon.ico
/index.html

$ mklittlefs -l  ../tiny/littlefs-image
<dir>   /assets Sun Apr  3 22:47:37 2022
2213    /assets/index.11733589.js       Sun Apr  3 22:47:37 2022
202     /assets/index.a7f5625d.css      Sun Apr  3 22:47:37 2022
6849    /assets/logo.03d6d6da.png       Sun Apr  3 22:47:37 2022
0       /assets/vendor.5312c675.js
4286    /favicon.ico    Sun Apr  3 17:21:00 2022
494     /index.html     Sun Apr  3 22:47:37 2022
Creation time:  Sun Apr  3 22:59:49 2022

I'm using default build options for mklittlefs. I tried adding --size 80000 which I assumed meant the max output image filesize. Any idea what I'm doing wrong?

mark-hahn commented 2 years ago

Oh, maybe by File system is full it means on my computer, not the image? If so this is not possible as I have at least 100 gigs free.

mark-hahn commented 2 years ago

Never mind. I've discovered I can easily use platformio from the command line. Although an answer might help others who stumble onto this issue. And I'm a bit curious