Low Disk Space on Filesystem root
#7
(07-06-2022, 12:27 PM)ichbins Wrote: Hello everybody,

I am trying to make a fresh install on my Pinephone, but it results in a device that is not booting anymore. I am flashing mobian-installer-pinephone-phosh-20220621.img to eMMC and the installation works as usual. After the installation I run apt update and apt upgrade and get this message in the status bar:

Low Disk Space on "Filesystem root"
The volume "Filesystem root" has only
166.3 MB disk space remaining.

The update process shows a littlebit later: No more disk space available.

Code:
cp: Fehler beim Schreiben von '/var/tmp/mkinitramfs_sbR54T//usr/lib/aarch64-linux-gnu/libharfbuzz.so.0.20704.0':
Auf dem Gerät ist kein Speicherplatz mehr verfügbar
ERROR: Couldn't copy /bin/osk-sdl
E: /usr/share/initramfs-tools/hooks/osk-sdl failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.15-sunxi64 with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
I: u-boot-menu: syncing /usr/lib/linux-image-5.15-sunxi64 to /boot/dtb-5.15-sunxi64
P: Checking for EXTLINUX directory... found.
P: Writing config for vmlinuz-5.15-sunxi64...
dpkg: Fehler beim Bearbeiten des Paketes linux-image-5.15-sunxi64 (--configure):
»installiertes post-installation-Skript des Paketes linux-image-5.15-sunxi64«-Unterprozess gab den Fehlerwert 1
zurück

I never had this disk space problem before, when I made a fresh installation. How should I make the installation and update to get a working system?

Emmc/SD card not being expanded on the Pinephone

On specific Pinephone installer images the storage medium Mobian is installed to does not get expanded to the full disk size. This can cause storage issues but can be fixed on the Pinephone in the terminal.

Assuming a ext4 setup.

First install parted by running

sudo apt install parted

Next, use parted on the correct drive

sudo parted /dev/mmcblkX

put 2 if its on a emmc. 0 for sd card verify with lsblk

To further verify run

print

Resize the second partition

resizepart 2 100%

Verify it has changed with

print

If you have FDE(Full Disk Encryption) setup run this to resize the encrypted device. If not using disk encryption skip this command.

sudo cryptsetup resize calamares_crypt

Next, resize the ext4 filesystem.

sudo resize2fs /dev/mapper/calamares_crypt

check the result with

df -h

This should fix the issue with file expansion on a fresh install.

If you have problems with parted I saved this from the faq and had to use the updated resize --> resizepart commands https://www.gnu.org/software/parted/manual/parted.html
  Reply


Messages In This Thread
Low Disk Space on Filesystem root - by ichbins - 07-06-2022, 12:27 PM
RE: Low Disk Space on Filesystem root - by biketool - 08-21-2022, 08:34 AM
RE: Low Disk Space on Filesystem root - by Eugo - 08-28-2022, 10:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  boot gets stuck shortly after disk decryption vortex 8 4,040 02-13-2023, 02:11 AM
Last Post: sharase
  low disk space on file system root revisited benedikt55 2 1,515 09-24-2022, 10:16 AM
Last Post: benedikt55
  Does mobian use a root account and password? rp3 6 7,794 04-04-2022, 07:26 PM
Last Post: parry
  Enter disk decryption passphrase error healthyliving101 3 3,028 09-07-2021, 12:21 PM
Last Post: Fenellakw
  Keyboard stopped working on disk encryption screen on Mobian after update cowsay 2 2,605 08-16-2021, 08:31 AM
Last Post: Zebulon Walton
  Encrypted ZFS as root filesystem 3939 0 1,241 08-03-2021, 01:37 PM
Last Post: 3939
  "Low Disk Space on Filesystem root" after installing Axolotl and Podcasts Anna 11 8,743 03-05-2021, 02:33 AM
Last Post: Anna
  Full disk encryption is coming a-wai 15 15,270 02-05-2021, 07:07 AM
Last Post: arno_nuehm
  Full Disk Encryption elagost 0 2,127 11-06-2020, 11:42 AM
Last Post: elagost
  not enough free space in /var/cache/apt/archives HLing 7 8,293 07-29-2020, 08:12 AM
Last Post: HLing

Forum Jump:


Users browsing this thread: 1 Guest(s)