so let's say i ran an apt-get update before reading your text and /dev/root is full.. how would one solve this theoretical scenario?
-
1
so let's say i ran an apt-get update before reading your text and /dev/root is full.. how would one solve this theoretical scenario?
so let's say i ran an apt-get update before reading your text and /dev/root is full.. how would one solve this theoretical scenario?
Its pretty easy.
Look at core dumps
find / -xdev -name core -ls -o -path "/lib*" -prune
Remove already installed packages
apt-get autoremove --purge
And clean outdated kernels, if they exist
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge
so let's say i ran an apt-get update before reading your text and /dev/root is full.. how would one solve this theoretical scenario?
Its pretty easy.
Look at core dumps
find / -xdev -name core -ls -o -path "/lib*" -prune
Remove already installed packages
apt-get autoremove --purge
And clean outdated kernels, if they exist
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge
nothing is every easy..
as soon as i try something with apt-get :
E: Write error - write (28: No space left on device)
so let's say i ran an apt-get update before reading your text and /dev/root is full.. how would one solve this theoretical scenario?
Its pretty easy.
Look at core dumps
find / -xdev -name core -ls -o -path "/lib*" -prune
Remove already installed packages
apt-get autoremove --purge
And clean outdated kernels, if they exist
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge
nothing is every easy..
as soon as i try something with apt-get :
E: Write error - write (28: No space left on device)
Even
sudo apt-get clean
show these error?
Edited by Guest
@Sandervg, why in my last comment part of the text is bold? I don't use any formatting for these , just for the code part.
so let's say i ran an apt-get update before reading your text and /dev/root is full.. how would one solve this theoretical scenario?
Its pretty easy.
Look at core dumps
find / -xdev -name core -ls -o -path "/lib*" -prune
Remove already installed packages
apt-get autoremove --purge
And clean outdated kernels, if they exist
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge
nothing is every easy..
as soon as i try something with apt-get :
E: Write error - write (28: No space left on device)
Even
sudo apt-get clean
show these error?
no that one works.. for the rest:
Reading package lists... Error!
E: Could not create temporary file for /var/cache/apt/pkgcache.bin - mkstemp (28: No space left on device)
E: Failed to truncate file - ftruncate (9: Bad file descriptor)
E: The package lists or status file could not be parsed or opened.
so let's say i ran an apt-get update before reading your text and /dev/root is full.. how would one solve this theoretical scenario?
Its pretty easy.
Look at core dumps
find / -xdev -name core -ls -o -path "/lib*" -prune
Remove already installed packages
apt-get autoremove --purge
And clean outdated kernels, if they exist
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge
nothing is every easy..
as soon as i try something with apt-get :
E: Write error - write (28: No space left on device)
Even
sudo apt-get clean
show these error?
no that one works.. for the rest:
Reading package lists... Error!
E: Could not create temporary file for /var/cache/apt/pkgcache.bin - mkstemp (28: No space left on device)
E: Failed to truncate file - ftruncate (9: Bad file descriptor)
E: The package lists or status file could not be parsed or opened.
Try
ps aux | grep mlocate
and post results
Maybe updatedb.mlocate process take too much space. If yes, just kill them
Edited by GuestTry
ps aux | grep mlocate
and post results
Maybe updatedb.mlocate process take too much space. If yes, just kill them
root@ultimakersystem-ccbdd3000318:~# ps aux | grep mlocate
root 15615 0.0 0.0 2068 532 pts/0 S+ 23:45 0:00 grep mlocate
Run these: sudo find / -path /var/ -prune -or -size +250M -print
Whats size of /usr/bin/updatedb.mlocate?
Run these: sudo find / -path /var/ -prune -or -size +250M -print
Whats size of /usr/bin/updatedb.mlocate?
no results from the first cmdlet..
and that second file does not exist..
We are looking into this bug. If you have any more feedback, please post it in the forum feedback post@Sandervg, why in my last comment part of the text is bold? I don't use any formatting for these
, just for the code part.
Last week we found out that I saw some quotes in bold, and my colleague didn't. But after logging in as me, he did. Not sure if this is related, but that is under investigation now.
If you edit your post, and post it again without any edits, does it change back to normal?
Thanks for these great blog posts! It really helps understanding the system.
When I run
mount /dev/mmcblk0p3 /var/lib/apt/
before running
apt-get update
I still run out of disk space. Am I missing something?
......Hit http://security.debian.org stable/updates/main Translation-enReading package lists... Error!E: Write error - write (28: No space left on device)E: IO Error saving source cacheE: The package lists or status file could not be parsed or opened.
While this post is probably antient by now, just to let this lingering questing not go unanswered:
apt-get update stores files in both /var/lib/apt and /var/cache/apt. Removing both these directories solves the disk full issue with regards to files generated from apt.
rm -r /var/lib/apt /var/cache/apt
Having said that, there are two methods to get apt working. One is to use tmpfs (we did this in the latest firmwares, but there's problems and risks there, such as running out of memory)
mkdir -p /var/lib/apt /var/cache/apt
mount -t tmpfs /var/lib/apt
mount -t tmpfs /var/cache/apt
That said, what I (used to) do a lot, is mount /dev/mmcblk0p3 /home/ultimaker/tmp
mkdir -p /home/ultimaker/tmp/apt_cache
mkdir -p /home/ultimaker/tmp/apt_lib
ln -s /home/ultimaker/tmp/apt_cache /var/cache/apt
ln -s /home/ultimaker/tmp/apt_lib /var/lib/apt
after that, after each reboot you still need to mount mmclk0p3, but you have plenty of space to do apt-get update
Hello, I started to change the firmware, but I don't know which command I can use to edit files. Also I wanted to know which commands I can use with the ssh connection for example "nano" or another console editor.
I've been wanting to create a service that saves the .g files when using 'Print Over Network' from Cura. Either by USB or to NAS.
Is there a tmp mount point?
On 10/25/2016 at 7:08 PM, Daid said:You could also resize your root partition. But that is a bit harder.
Hi Daid,
could you elaborate on how to do this?
I'm familiar with resizing partitions/filesystems on x86/non-embedded device, by doing an online-resize or booting into a live-linux-system.
F2FS does not seem to support online resizing.
My goal is to install some more python packages for a research project.
Regards, Jan
You are right that F2FS does not support online resizing. This is also made more difficult by the fact that we allocated the rest of the space for Cura Connect.
Updating to a 5.X release will also resize your partitions to the same size as the S5 firmware. And this update is available at the moment, so that might give you enough space.
Another way would be to boot from the internal SD card slot and do the same method as with a live-linux-system.
Finally, you could also opt for the dirty method, where you place for example /usr/share on the 2nd partition, and symlink /usr/share to that partition.
As always, if you mess up, it's your own risk.
Hi Daid, thanks for your fast response. :)
11 minutes ago, Daid said:Updating to a 5.X release will also resize your partitions to the same size as the S5 firmware. And this update is available at the moment, so that might give you enough space.
Do you have a number how much space would be available? I'm currently at 16MB free space, installing python3-pip will take about 180MB.
The other two options are also fine. I'll probably take the live-linux route, if the 5.X firmware does not provide enough space.
The 5.X firmware has about 900MB for the root partition, up from the 500MB, so that should help a lot.
Are there any commands that can be sent to get the printer out of an "aborted" state? We are trying to do some remote management on machines. As an example, I have a machine right now that I sent a print to, but it is stuck in "Aborted" state. I suspect it may be waiting for a confirmation button press (this is an S5). I have tried logging in as root, and issuing a reboot command, but it comes back up in the same state.
Is there a way to update the Ultimaker S5 through developer mode/ssh? I have a need script these firmware updates over my network.
Recommended Posts
Dim3nsioneer 558
@Daid, I didn't have the time yet to read all your information about the UM3 interns. But I will. As this is by far the most complete description I've seen here about electronics and software in an Ultimaker product. You get a huge thank you from me!
I'm convinced that these threads will be used for many months...
Edited by GuestLink to post
Share on other sites