Jump to content
  • 0

v2.4 SD card full


TitusADuxass

Question

So my v2.4 decide to throw a hissy this morning and refused to print anything else.

I tried updating things through SSH but soon came to realise that the SD Card (8gb) is full and now I cannot get to mainsail via a browser - 404 Not Found.

I can still SSH into the CB1.

df -h gives me this:

V2full.png.4e627032ed28899cb60cbe4284ca00b9.png

Is there any way that I can delete some files or clear out temporary log files, etc?

I am relucant to flash a new SD card because I don't want to break the CANBus set up.

Link to comment
Share on other sites

Recommended Posts

  • 0

It lives again.

Thanks to a link provided by @atrushing I was able to make an image of the 8gb card with w32 disk imager and then I used etcher to write the image to a 16gb card.

I then used Kiauh to remove all installations of klipper, mainsail, etc. Then I did sudo apt get update && sudo apt upgrade -y

Then I used Kiauh to reinstall Klipper, mainsail, etc.

There was/is only one problem - klipper doesn't like something in #[include shell_command.cfg]
It didn't like something in here - 

#[gcode_shell_command update_git_script]
#command: bash -c "bash $HOME/klipper-backup/script.sh"
#timeout: 90.0
#verbose: True

I fix it by commenting it all out and commenting out the include from the printer.cfg.

Link to comment
Share on other sites

  • 0
48 minutes ago, TitusADuxass said:

I fix it by commenting it all out and commenting out the include from the printer.cfg.

or you can install it through kiauh. Option 4 then option 8. You will need this for some functions like automatic backup of your config and some functions of beacon / cartographer.

Link to comment
Share on other sites

  • 0
14 minutes ago, mvdveer said:

or you can install it through kiauh. Option 4 then option 8. You will need this for some functions like automatic backup of your config and some functions of beacon / cartographer.

I installed it through Kiauh.

I'll get it another run through when the latest print stops.

  • Like 1
Link to comment
Share on other sites

  • 0
21 hours ago, TitusADuxass said:

SD Card (8gb) is full

I received a 4 gb card with my fysetc kit.

Since the OS is almost 4gb, my card is very often full 🙂

too lazy to exchange for a bigger one, I guess...

but I delete the uploaded gcode files in mainsail. And that gives me another while to print 🙂

  • Like 2
Link to comment
Share on other sites

  • 0
33 minutes ago, Dirk said:

but I delete the uploaded gcode files in mainsail. And that gives me another while to print 🙂

That's something that I'm going to have adopt.

I've go up to a 16gb card now so have more leeway.

  • Like 1
Link to comment
Share on other sites

  • 0
1 hour ago, TitusADuxass said:

I've go up to a 16gb card now so have more leeway.

I haven't bought anything smaller than 128-256 GB even though my original 32 GB SD card had plenty of room left after a year or so of pretty constant use. I also used to save every g-code file but now I clean out my accumulated files every so often because I change and tweak settings so often that anything I saved prior won't really work that well anymore.

  • Like 2
Link to comment
Share on other sites

  • 0
6 minutes ago, Penatr8tor said:

I haven't bought anything smaller than 128-256 GB even though my original 32 GB SD card had plenty of room left after a year or so of pretty constant use. I also used to save every g-code file but now I clean out my accumulated files every so often because I change and tweak settings so often that anything I saved prior won't really work that well anymore.

I thought 16gb was the maximum that worked.

Link to comment
Share on other sites

  • 0
10 minutes ago, TitusADuxass said:

I thought 16gb was the maximum that worked.

I have a 128GB in a Pi4B installed onto my Leviathan controller that I setup on the test rig and also a 256GB NVME on the Pi5 going into my refurbished 2.4. Both are working without issue. The 128GB on the Pi4 replaced a 32GB card

Link to comment
Share on other sites

  • 0
13 minutes ago, TitusADuxass said:

16gb was the maximum

some MCUs (I know BTT SKR 3 v2) has a limitation on the filestructure they are able to read, for initial flashing. There are further no limitations from Linux.

Unless you choose for a 32 bit OS. I remember something vague about them having a much lower limit in the trend of: "512Kb ought to be enough for anyone - Bill Gates) 

Link to comment
Share on other sites

  • 0
1 minute ago, Dirk said:

some MCUs (I know BTT SKR 3 v2) has a limitation on the filestructure they are able to read, for initial flashing. There are further no limitations from Linux.

Unless you choose for a 32 bit OS. I remember something vague about them having a much lower limit in the trend of: "512Kb ought to be enough for anyone - Bill Gates) 

I think the BTT CB1s and related boards have the limitation.

Link to comment
Share on other sites

  • 0
1 hour ago, TitusADuxass said:

I thought 16gb was the maximum that worked.

I had a 32gb card in my Trident for a while. I think it wore out, so I now have a 16gb because that's what I had on hand; eventually I'll probably reload again on a bigger card (128 or 256gb).

I am getting into the habit of clearing out old gcode files for the same reason as @Penatr8tor noted. Now that I've pretty much moved over to Orca, I'm also getting into the habit of saving project files for the more complicated slicing setups (and ones that are likely to get reprints); that allows me to easily update to my latest config tweaks down the line & re-slice without losing painstaking scaling, support, orientation, and arrangement work.

  • Like 2
Link to comment
Share on other sites

  • 0
1 hour ago, TitusADuxass said:

gcode files in the history.

To see where my largest files were residing, I removed it from the Pi and put it into an sd card reader and looked on my laptop, after adding a driver for reading linux file format 🙂

There is another directory where there is a lot of files you can delete: /tmp

I deleted everything inside on my windows, and my pi rebooted afterwards without a problem.

I also did look for a command which would give a nice overview of the biggest files I could safely remove, but all I got were some GUI programs that probably do not work on our Pi PC's. 

And a few guides that require you to fiddle around in text user interface.. like here or here. Which is good to get to know your Linux stuff... But I did (almost) like @Penatr8tor does and ordered 2 new SD cards... 32GB. Because I had to spend the other half to the shipping costs 😄 

 

 

Link to comment
Share on other sites

  • 0
1 hour ago, Dirk said:

I also did look for a command which would give a nice overview of the biggest files I could safely remove, but all I got were some GUI programs that probably do not work on our Pi PC's. 

The CLI program ncdu was installed on both of my printers that are online to check. It is very intuitive and easy to navigate with the arrow keys and [enter] will let you check inside of folders. The [/..] at the top of a folder list will take you back up a directory.

ncdu --color dark

2024-06-06-175955_648x386_scrot.png.600994dc460537e84b7ef2b765af7aae.png

  • Like 2
Link to comment
Share on other sites

  • 0
8 hours ago, TitusADuxass said:

I thought 16gb was the maximum that worked.

I have samsung 64GB in all the machines

  • Like 1
Link to comment
Share on other sites

  • 0
15 hours ago, atrushing said:

The CLI program ncdu

Thanks @atrushing I was looking for a program that reminded me of the good old dos file Explorer, but couldn't find one. So NCDU was it. Let me install and try.

Link to comment
Share on other sites

  • 0
18 minutes ago, Dirk said:

Thanks @atrushing I was looking for a program that reminded me of the good old dos file Explorer, but couldn't find one. So NCDU was it. Let me install and try.

On Windows I used xplorer² as my file explorer and it has a good "Folder sizes and disk space visualization" tool. On Linux I use Krusader and it has a good "Disk Usage" tool (shown below). For either of these programs you would need to take the card out of the Pi and access it on a computer with a regular desktop environment. With ncdu, you can run it directly on the Pi when you ssh (putty) into it.

2024-06-07-093103_636x427_scrot.png.66f741b93d09e2741e24deff8183af40.png

Link to comment
Share on other sites

  • 0
6 hours ago, Dirk said:

Thanks @atrushing I was looking for a program that reminded me of the good old dos file Explorer, but couldn't find one. So NCDU was it. Let me install and try.

My go-to Linux non-X-Windows file management tool is Midnight Commander. Back in the DOS olden days I used the original tool: Norton Commander <runs to Google> , which is apparently the original & MC is a multi-platform clone. Huh, I have been thinking it was the other way around.

  • Like 2
Link to comment
Share on other sites

  • 0
3 hours ago, claudermilk said:

Back in the DOS olden days I used the original tool: Norton Commander

Hahaha I remember that tool. I remember loading display drivers in high memory above 64K in my config.sys file. Ahhhhhh the old DOS days of Config.sys and Autoexec.bat files, all wrapped up in an ASCII text-based command line interface. TBT 🫠

Back in the day I wrote a batch file that created a 512K RAM Disk and copied all of the .ovl from AutoCAD 1.17 into the RAM disk because AutoCAD would have to read a .ovl file from disk (.ovl was for Overlay) for each command. Click "line", dudududududu read disk, Circle dududududu read disk, etc. It actually sped things up a good amount. Of course, back then everyone was measuring how fast they could redraw a 2d space shuttle drawing. 😆

  • Like 2
Link to comment
Share on other sites

  • 0
5 hours ago, Penatr8tor said:

Ahhhhhh the old DOS days

Floppies and Stiffies................ And not in the way the young ones are thinking 🤣 Before that cassette recorders. (ZX 1 then ZX Spectrum). Loved Norton commander. Nostalgia.......

  • Like 3
Link to comment
Share on other sites

  • 0

I deleted the job history the other day.

All 100 jobs are back in the list.

I managed to delete 40, but then the delete process stopped working and the system restarted - yes, all the job are once again in the history list. 

Link to comment
Share on other sites

  • 0

Good people, I need your assistance.

My v2.4 no longer prints and I cannot delete the print history.

I've downloaded xplorer2 - but I have no idea where to go to find the files that can/need to be deleted.

card01.png.8fd022168c7eeadb2a08f8f7b8bb555f.png

This is what I see on the card.

Link to comment
Share on other sites

  • 0
Posted (edited)

It looks like you have the image file of linux twice. Vmlinux.img and image.

@atrushingdefinitely will know if you can delete both.

If you have the system installed, I am sure you should be able to delete at least one of them.

Maybe try deleting just one and then see if it still works?

 

I do not think I have these images on my SD card!

mysd.thumb.jpg.8aa2b30987873295b091fc6ec156f760.jpg

this is the screenshot when I install that xplorer2. but I think these are the setup files. I will add the linux file reader driver and look again.

Edited by Dirk
  • Like 1
Link to comment
Share on other sites

  • 0
29 minutes ago, TitusADuxass said:

My v2.4 no longer prints and I cannot delete the print history.

Navigate to /home/pi/printer_data/gcodes/

Then delete the files in the gcodes directory.

I use Cyberduck - cause I use a Mac and this is what it looks like:

   image.thumb.png.e7d0ef6748662216523a2a4418457839.png  image.thumb.png.d793fbce9c3100ca9a77441b8bd70df4.png

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...