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
If you set it in the bottom of printer.cfg should do the trick.
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?
It has to he before the overrides.
Everything starting with #*# is not a commented thing. Is an override.
So, do it before the ########### line
I don't have a
##########
line, it just starts like this:
But anyway, I did try it just before that part, and no joyThat 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?
/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 thereHowever, I did an upgrade and it failed with an error:

However, I just reverted back to not using a symlink, and the update failed ion the same way
Is it mounted?
Change to normal gcodes path and retry.
Are you runing 2.1?
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
Cloning a damaged data card will give damaged data. Better to flash again
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
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.

Run the complete set of commands I shared.
Too late for the moment. I just started a clone of the original SD card
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…
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
Hmm, I was just updating RatOS and I noticed this in the log as it scrolled by

I think the update may have borked tho, it's been stuck like this for well over 10 mins

Gonna leave it overnight, see if it manages to recover. If not, I will try your
ratos doctor
/ ssh commandsF5/refresh solves it.