Override virtual_sdcard ? (Move gcodes folder somewhere else)

I wish to move my gcodes folder to another partition. Mainsil.cfg is read only within the configurator I could edit it via SSH, but I am wondering if this is the wrong way to do it. Can anyone advise? I tried overriding it in printer.cfg, but that did not seem to work
22 Replies
MDFPereira
MDFPereira3mo ago
If you set it in the bottom of printer.cfg should do the trick.
evilC
evilCOP3mo ago
I did it at the bottom of the user part. Do you maybe mean below all the commented out beacon stuff right at the end?
MDFPereira
MDFPereira3mo ago
It has to he before the overrides. Everything starting with #*# is not a commented thing. Is an override. So, do it before the ########### line
evilC
evilCOP3mo ago
I don't have a ########## line, it just starts like this:
# REMEMBER TO CALIBRATE YOUR BEACON!
# Run BEACON_RATOS_CALIBRATE for automatic calibration.

#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [beacon model default]
#*# model_coef = 1.5512015397067467,
# REMEMBER TO CALIBRATE YOUR BEACON!
# Run BEACON_RATOS_CALIBRATE for automatic calibration.

#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [beacon model default]
#*# model_coef = 1.5512015397067467,
But anyway, I did try it just before that part, and no joy
MDFPereira
MDFPereira3mo ago
That is only where klipper is looking for the files. You also need to change where the slicer uploads them Will check later today If you upload them by hand, should work. What folder are you using?
evilC
evilCOP3mo ago
/mnt/data which is a 3rd partition on the SD card It defo can see it, cos what I initially did was delete the normal gcodes folder and replace it with a symlink to there
evilC
evilCOP3mo ago
However, I did an upgrade and it failed with an error:
No description
evilC
evilCOP3mo ago
However, I just reverted back to not using a symlink, and the update failed ion the same way
MDFPereira
MDFPereira3mo ago
Is it mounted? Change to normal gcodes path and retry. Are you runing 2.1?
evilC
evilCOP3mo ago
I did, and same error, but could be to do with any changes. Am about to take a clone of the original SD card, before I did any messing around, and see if the issue persists
MDFPereira
MDFPereira3mo ago
Cloning a damaged data card will give damaged data. Better to flash again
evilC
evilCOP3mo ago
Forget exact version. It's a couple of months old I took a clone of the SD card when everything was good and un-fucked-with Gonna clone that card to a new one and see if the issue persists
MDFPereira
MDFPereira3mo ago
If 2.1, ssh to the rpi and try “ratos doctor” (without the “) If not, Try this, line by line: ssh to the machine cd printer_data/config/RatOS git fetch origin git checkout -b v2.1.x origin/v2.1.x sudo ./scripts/ratos-update.sh cd ~/ratos-configurator git fetch origin git checkout -b v2.1.x-deployment origin/v2.1.x-deployment sudo ./scripts/update.sh sudo systemctl restart ratos-configurator sudo systemctl restart klipper sudo systemctl restart moonraker This should restore and completely update RatOS If 2.x, this does not work.
evilC
evilCOP3mo ago
No description
MDFPereira
MDFPereira3mo ago
Run the complete set of commands I shared.
evilC
evilCOP3mo ago
Too late for the moment. I just started a clone of the original SD card
MDFPereira
MDFPereira3mo ago
There are a tone of updates over what you have. Then, after restarting moonraker do a hard refresh on your browser (ctrl+shift+r) You will get the same. Updates needed…
evilC
evilCOP3mo ago
I will try the system update once I have done that, so that I know if the failure to update is related to me messing around with things, or just a general problem At the end of the day, all I really am trying to do is facilitate taking a backup of the printer OS, without the gcode files bloating the backup But for all I know, before I started doing this, my system was in a state where the update would have failed anyway. So I guess answer that question first. I have been avoiding doing an update for quite a while, because I am using a workaround to a bug in RatOS that caused print head crashes mikl has said that it's "possibly fixed" by new updates, but if not, I need to be able to go back to what I have now, should I need to
evilC
evilCOP3mo ago
Hmm, I was just updating RatOS and I noticed this in the log as it scrolled by
No description
evilC
evilCOP3mo ago
I think the update may have borked tho, it's been stuck like this for well over 10 mins
No description
evilC
evilCOP3mo ago
Gonna leave it overnight, see if it manages to recover. If not, I will try your ratos doctor / ssh commands
MDFPereira
MDFPereira3mo ago
F5/refresh solves it.

Did you find this page helpful?