Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've been running a Pi as an embedded controller for a time-lock safe for several years without issue. It's programmed to open up twice a week on a Tuesday and a Friday and just recently I wanted to change the Tuesday for a Wednesday, which with this script is just a case of changing a '2' for a '3' on a single line of code, so no overall increase in space required (this is on a 4Gb SD card). However, when I try to save the change, I get an error message saying the card is full and I need to delete some files to make space! I'm pretty damn sure there's plenty of space on the card in reality and what I'm trying to do doesn't even require a single bit of extra space anyway, so what's going on here? I'm sure I've had this issue before many years ago but Linux is so reliable I so rarely need to fix anything so forget what I previously did.
Can some kind soul tell me what I'm doing wrong? Thanks.
If the Pi has been running for several years its possible the card has worn out.
If so, I would create a backup if you do not have one ASAP
My brain will wear out before the card, since it's write-protected in this application. In fact, maybe that's what's already happened.
I need to sleep on this inode business. Hopefully it'll make more sense in the morning.
How sure? Have you checked?
Provide the output requested in post #5.
Use code tags for that (see my signature).
Sigh.. I only wish I could. Unfortunately a colleague of mine has slammed the door shut and it's latched again. Now I won't be able to re-open it to get to the Pi and the card until Tuesday. Thanks for trying to help, everyone. I'll have to re-post in a few days' time with the outcomes to your various suggestions.
Sorry for the delay. Yes, the 'lock' switch on the card has been disabled to make it writable, but it still won't save. And the error message specifically says there's no space on the card, too.
Here's the outputs I'm seeing from the two suggested commands:
The card is mounted on dev/sdb for the avoidance of any doubt.
I'm going to have to return this card to the controller very shortly so if there are any further suggestions requiring access, I may have to defer trying them until Friday when the safe will be open again.
Thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.