This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

[SOLVED] running out of root space

carmar

Sun Jul 14, 2019 6:44:20 pm

Hi,

Running Zorin OS 15 Core installed on a 80GB drive.
I got a warning that the root partition is getting used up. It has 1.7GB available out of 14.7GB (Disk Usage Analyzer). I ran BleachBit (non-root version) and did a little cleaning. I could try the answer posted here https://askubuntu.com/questions/492054/ ... -partition but I'd like your opinion.
Thanks.

Swarfendor437

Sun Jul 14, 2019 8:57:54 pm

I just went to the main page to see minimum system requirements. That is quite an old post and as far as I can remember, you could only expand a linux partition if you had opted for Large Volume Management (LVM) at point of install.

When GRUB appears (if it doesn't, hold the left Shift key at boot time) how many kernels are listed prior to the current one in use - you'll need to select advanced options to find out - you just may need to remove an earlier kernel - you should really only have 2 kernels present - the current one and the last good working one before your current one. Keep us posted.

carmar

Sun Jul 14, 2019 9:11:47 pm

Thanks, Swarfendor.
It lists:
4.18.0-25-generic
4.18.0-25-generic (recovery mode)
4.18.0-24-generic
4.18.0-24-generic (recovery mode)

PS - I had used an old article to set partition sizes on installation: http://linuxbsdos.com/2012/07/23/dual-b ... -drives/2/

Swarfendor437

Sun Jul 14, 2019 9:23:36 pm

OK, can I take it that the current kernel is newer than that first one you gave me, 4.18.0.25 - you can find the current kernel number in two ways:

In a terminal:

Code:
dmesg | grep Linux


Synaptic Package Mananger - just search for kernel and you should get the current version listed - if this is greater than 4.18.0.25, delete the earlier kernel (ending in 24):

https://linoxide.com/booting/remove-old ... boot-menu/

carmar

Sun Jul 14, 2019 9:47:46 pm

I don't see anything newer than 4.18.0-25.

From terminal output:
[ 0.000000] Linux version 4.18.0-25-generic (buildd@lgw01-amd64-033) (gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)) #26~18.04.1-Ubuntu SMP Thu Jun 27 07:28:31 UTC 2019 (Ubuntu 4.18.0-25.26~18.04.1-generic 4.18.20)
[ 0.060007] ACPI: Added _OSI(Linux-Dell-Video)
[ 0.060007] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[ 0.205972] pps_core: LinuxPPS API ver. 1 registered
[ 1.069722] Linux agpgart interface v0.103
[ 1.096307] usb usb1: Manufacturer: Linux 4.18.0-25-generic ehci_hcd
[ 1.116306] usb usb2: Manufacturer: Linux 4.18.0-25-generic ehci_hcd
[ 1.116861] usb usb3: Manufacturer: Linux 4.18.0-25-generic uhci_hcd
[ 1.117323] usb usb4: Manufacturer: Linux 4.18.0-25-generic uhci_hcd
[ 1.117775] usb usb5: Manufacturer: Linux 4.18.0-25-generic uhci_hcd
[ 1.118215] usb usb6: Manufacturer: Linux 4.18.0-25-generic uhci_hcd
[ 1.118654] usb usb7: Manufacturer: Linux 4.18.0-25-generic uhci_hcd
[ 1.119094] usb usb8: Manufacturer: Linux 4.18.0-25-generic uhci_hcd

Swarfendor437

Mon Jul 15, 2019 11:04:09 pm

I think your report is just stating what is currently running - does the earlier kernel still show up in GRUB? ;) :D

carmar

Tue Jul 16, 2019 1:15:12 am

Only under Advanced Options it shows, like before:
4.18.0-25-generic
4.18.0-25-generic (recovery mode)
4.18.0-24-generic
4.18.0-24-generic (recovery mode)

Swarfendor437

Tue Jul 16, 2019 11:57:31 am

OK, Open Sofware and in the search box enter 'linux-image' without the quotes and see if the 24 shows up in there - highlight and remove. ;) :D

carmar

Tue Jul 16, 2019 11:44:57 pm

Didn't find it in Software but found it in Synaptic Package Manager.
Seems that it wants to remove one image but install an unsigned one in its place. I didn't go ahead with the change since I'm not sure I did this right. Should I go ahead after all?
Thanks.

Swarfendor437

Wed Jul 17, 2019 12:37:15 am

That seems odd to have an unsigned kernel wanting to be installed - will need to delve further. ;)

What happens with sudo autoremove? Don't apply the change without posting back what it states it is going to remove! ;)

carmar

Wed Jul 17, 2019 1:51:34 am

sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

Swarfendor437

Wed Jul 17, 2019 12:02:37 pm

OK, remove with:


Code:
sudo apt-get remove linux-image-4.18.0-24-generic


Keep us posted.

carmar

Wed Jul 17, 2019 2:33:46 pm

Thanks. I uninstalled and reboot (Software Updater popped up and asked me to restart).
GRUB showed the 24 version still there (seems it installed the unsigned version as it had previously stated). I confirmed using Package Manager (screenshot attached).

carmar

Wed Jul 17, 2019 2:35:29 pm

To avoid cluttering the prior post, I'm pasting here the results from terminal after running uninstall (in case you want to see them):

sudo apt-get remove linux-image-4.18.0-24-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
linux-image-unsigned-4.18.0-24-generic
Suggested packages:
fdutils linux-hwe-doc-4.18.0 | linux-hwe-source-4.18.0 linux-hwe-tools
The following packages will be REMOVED:
linux-image-4.18.0-24-generic linux-modules-extra-4.18.0-24-generic
The following NEW packages will be installed:
linux-image-unsigned-4.18.0-24-generic
0 upgraded, 1 newly installed, 2 to remove and 0 not upgraded.
Need to get 8,184 kB of archives.
After this operation, 168 MB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-image-unsigned-4.18.0-24-generic amd64 4.18.0-24.25~18.04.1 [8,184 kB]
Fetched 8,184 kB in 6s (1,418 kB/s)
(Reading database ... 267707 files and directories currently installed.)
Removing linux-modules-extra-4.18.0-24-generic (4.18.0-24.25~18.04.1) ...
Removing linux-image-4.18.0-24-generic (4.18.0-24.25~18.04.1) ...
/etc/kernel/prerm.d/dkms:
dkms: removing: nvidia 430.26 (4.18.0-24-generic) (x86_64)

-------- Uninstall Beginning --------
Module: nvidia
Version: 430.26
Kernel: 4.18.0-24-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

nvidia.ko:
- Uninstallation
- Deleting from: /lib/modules/4.18.0-24-generic/kernel/drivers/char/drm/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


nvidia-modeset.ko:
- Uninstallation
- Deleting from: /lib/modules/4.18.0-24-generic/kernel/drivers/char/drm/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


nvidia-drm.ko:
- Uninstallation
- Deleting from: /lib/modules/4.18.0-24-generic/kernel/drivers/char/drm/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


nvidia-uvm.ko:
- Uninstallation
- Deleting from: /lib/modules/4.18.0-24-generic/kernel/drivers/char/drm/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.

depmod...

DKMS: uninstall completed.
I: /vmlinuz.old is now a symlink to boot/vmlinuz-4.18.0-25-generic
I: /initrd.img.old is now a symlink to boot/initrd.img-4.18.0-25-generic
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.18.0-24-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/zorin/theme.txt
Found linux image: /boot/vmlinuz-4.18.0-25-generic
Found initrd image: /boot/initrd.img-4.18.0-25-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
Found Windows 7 on /dev/sda1
done
Selecting previously unselected package linux-image-unsigned-4.18.0-24-generic.
(Reading database ... 262698 files and directories currently installed.)
Preparing to unpack .../linux-image-unsigned-4.18.0-24-generic_4.18.0-24.25~18.04.1_amd64.deb ...
Unpacking linux-image-unsigned-4.18.0-24-generic (4.18.0-24.25~18.04.1) ...
Setting up linux-image-unsigned-4.18.0-24-generic (4.18.0-24.25~18.04.1) ...
I: /vmlinuz is now a symlink to boot/vmlinuz-4.18.0-24-generic
I: /initrd.img is now a symlink to boot/initrd.img-4.18.0-24-generic
Processing triggers for linux-image-unsigned-4.18.0-24-generic (4.18.0-24.25~18.04.1) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 4.18.0-24-generic

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
unset ARCH; env NV_VERBOSE=1 'make' -j8 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=4.18.0-24-generic IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/4.18.0-24-generic/build LD=/usr/bin/ld.bfd modules...............
cleaning build area...

DKMS: build completed.

nvidia.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.18.0-24-generic/kernel/drivers/char/drm/

nvidia-modeset.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.18.0-24-generic/kernel/drivers/char/drm/

nvidia-drm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.18.0-24-generic/kernel/drivers/char/drm/

nvidia-uvm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.18.0-24-generic/kernel/drivers/char/drm/

depmod...

DKMS: install completed.
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.18.0-24-generic
I: The initramfs will attempt to resume from /dev/sdc6
I: (UUID=5eef1633-c2fd-4133-99ea-42af9860246a)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/zorin/theme.txt
Found linux image: /boot/vmlinuz-4.18.0-25-generic
Found initrd image: /boot/initrd.img-4.18.0-25-generic
Found linux image: /boot/vmlinuz-4.18.0-24-generic
Found initrd image: /boot/initrd.img-4.18.0-24-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
Found Windows 7 on /dev/sda1
done

Swarfendor437

Wed Jul 17, 2019 8:37:15 pm

Before we go any further, when you boot into the 25 image I trust this runs correctly? If so use the apt-get command to remove the unsigned image. ;) :D

carmar

Wed Jul 17, 2019 9:29:55 pm

Done. Package Manager doesn't show the image any more. Thanks.
Still at 2.1GB remaining root space but at least that is one redundancy gone.

PS - I started version 25 using the Advanced option in GRUB to make sure I am in 25. Then tested VLC, Firefox, Libre, a game (Ur-Quan Masters :D ). They all ran fine. Then I went ahead with the terminal command.

Swarfendor437

Wed Jul 17, 2019 10:20:31 pm

Wonderful! Can we mark this thread as [RESOLVED]? ;) :D

carmar

Wed Jul 17, 2019 10:29:14 pm

Oops. Sorry. Thanks for reminder.