[SOLVED] After updating doesn't start, too little space.

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
Sarvijaakko
Level 1
Level 1
Posts: 7
Joined: Mon Oct 21, 2019 3:52 am

[SOLVED] After updating doesn't start, too little space.

Post by Sarvijaakko » Mon Oct 21, 2019 4:02 am

Hi!

I am a total newbie and someone else installed this linux mint Sarah for me. I did some updating with the update manager and after that the laptop wouldn't start. I know that the problem is too little space, but don't know how to fix this. I can start the laptop via recovery mode and managed to get this info out of the space used by googling similar problems.

Code: Select all

samsung@sarvijaakko ~ $ df -h
Filesystem                 Size  Used Avail Use% Mounted on
udev                       1,9G     0  1,9G   0% /dev
tmpfs                      387M  6,2M  381M   2% /run
/dev/mapper/mint--vg-root  454G   17G  415G   4% /
tmpfs                      1,9G   56M  1,9G   3% /dev/shm
tmpfs                      5,0M  4,0K  5,0M   1% /run/lock
tmpfs                      1,9G     0  1,9G   0% /sys/fs/cgroup
/dev/sda1                  472M  472M     0 100% /boot
cgmfs                      100K     0  100K   0% /run/cgmanager/fs
tmpfs                      387M   36K  387M   1% /run/user/1000
/dev/sdb1                   15G  4,2G   11G  29% /media/samsung/7981-2955
samsung@sarvijaakko ~ $ 
But don't know what to do next.
Last edited by Moem on Mon Oct 21, 2019 6:42 am, edited 1 time in total.
Reason: Marked this as [SOLVED] for you; please note that you can and should do this for your own topics. Thanks!

gittiest personITW
Level 5
Level 5
Posts: 774
Joined: Tue May 28, 2019 4:27 pm

Re: After updating doesn't start, too little space.

Post by gittiest personITW » Mon Oct 21, 2019 4:16 am

Hi,
Welcome to the forums.
The first thing would be to boot up to a Live installation then delete some files.
In general though, this question comes up quite regularly, and is usually down to Timeshift - which is an amazing piece of software to have especially when you are just starting out (believe me), it just should be pointing to back up to a separate partition and preferably a separate partition on another hard drive.
viewtopic.php?f=90&t=301570

Sometimes it seems to be down to too many kernels still on the system:
viewtopic.php?f=90&t=303827

And always remember to delete files from your Rubbish bin every so often.
viewtopic.php?f=18&t=303141&p=1697338&h ... h#p1697338

gm10
Level 19
Level 19
Posts: 9704
Joined: Thu Jun 21, 2018 5:11 pm

Re: After updating doesn't start, too little space.

Post by gm10 » Mon Oct 21, 2019 4:26 am

Sarvijaakko wrote:
Mon Oct 21, 2019 4:02 am
I know that the problem is too little space, but don't know how to fix this.
You filled up your /boot partition with old kernels (the current Linux Mint 19.2 includes functionality to clean those out automatically, but your old LM 18 release does not).

It's unusual for that to lead to an unbootable system though. See if you can successfully boot using an older kernel. At the GRUB boot menu, instead of recovery mode select an older kernel in non-recovery mode from the advanced options. If that works, let us know and I'll post you some commands for a quick cleanup.
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

Sarvijaakko
Level 1
Level 1
Posts: 7
Joined: Mon Oct 21, 2019 3:52 am

Re: After updating doesn't start, too little space.

Post by Sarvijaakko » Mon Oct 21, 2019 4:31 am

It's unusual for that to lead to an unbootable system though. See if you can successfully boot using an older kernel. At the GRUB boot menu, instead of recovery mode select an older kernel in non-recovery mode from the advanced options.
Yes. When I start the laptop, I press F4 to get to the advanced options menu and actually take kernel(?) that hasn't this (recovery mode) thing after it. So I'm doing it right?

Sarvijaakko
Level 1
Level 1
Posts: 7
Joined: Mon Oct 21, 2019 3:52 am

Re: After updating doesn't start, too little space.

Post by Sarvijaakko » Mon Oct 21, 2019 4:33 am

gittiest personITW wrote:
Mon Oct 21, 2019 4:16 am
Hi,
Welcome to the forums.
The first thing would be to boot up to a Live installation then delete some files.
In general though, this question comes up quite regularly, and is usually down to Timeshift - which is an amazing piece of software to have especially when you are just starting out (believe me), it just should be pointing to back up to a separate partition and preferably a separate partition on another hard drive.
viewtopic.php?f=90&t=301570

Sometimes it seems to be down to too many kernels still on the system:
viewtopic.php?f=90&t=303827

And always remember to delete files from your Rubbish bin every so often.
viewtopic.php?f=18&t=303141&p=1697338&h ... h#p1697338
Thanks for the links, but as I said, I'm really not used to this languege of Grubs and kernels and need really specific instructions. Rubbish bin is empty, though. I don't know if I have timeshift. And yes, kernels are propably my problem.

Sarvijaakko
Level 1
Level 1
Posts: 7
Joined: Mon Oct 21, 2019 3:52 am

Re: After updating doesn't start, too little space.

Post by Sarvijaakko » Mon Oct 21, 2019 4:35 am

samsung@sarvijaakko ~ $ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465,8G 0 disk
├─sda1 8:1 0 487M 0 part /boot
├─sda2 8:2 0 1K 0 part
└─sda5 8:5 0 465,3G 0 part
└─sda5_crypt 252:0 0 465,3G 0 crypt
├─mint--vg-root 252:1 0 461,4G 0 lvm /
└─mint--vg-swap_1 252:2 0 3,9G 0 lvm [SWAP]
sdb 8:16 1 15G 0 disk
└─sdb1 8:17 1 15G 0 part /media/samsung/7981-2955
sr0 11:0 1 1024M 0 rom
samsung@sarvijaakko ~ $ df -h | grep "^/dev/"
/dev/mapper/mint--vg-root 454G 17G 415G 4% /
/dev/sda1 472M 472M 0 100% /boot
/dev/sdb1 15G 4,1G 11G 28% /media/samsung/7981-2955
samsung@sarvijaakko ~ $

Sarvijaakko
Level 1
Level 1
Posts: 7
Joined: Mon Oct 21, 2019 3:52 am

Re: After updating doesn't start, too little space.

Post by Sarvijaakko » Mon Oct 21, 2019 4:46 am

So I read the second link of the first reply. It suggested to go to Update manager > wiev > Linux kernels and then removing kernels not in use. So I tried to remove a kernel I suspected being an older version (because of the lower number).

But it gave me this error:
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report.

So I put it in the terminal and:
samsung@sarvijaakko ~ $ dpkg --configure -a
dpkg: error: requested operation requires superuser privilege
samsung@sarvijaakko ~ $

And I don't know what to do. In the mean time I'll probably try removing other kernels if it lets me do it

gm10
Level 19
Level 19
Posts: 9704
Joined: Thu Jun 21, 2018 5:11 pm

Re: After updating doesn't start, too little space.

Post by gm10 » Mon Oct 21, 2019 5:16 am

Sarvijaakko wrote:
Mon Oct 21, 2019 4:46 am
And I don't know what to do. In the mean time I'll probably try removing other kernels if it lets me do it
It won't. Run this (copy & paste into a terminal window - you can click SELECT ALL to select):

Code: Select all

dpkg-query -W -f '${Version}\n' 'linux-image-[^gl]*'|sort -u|sed -e "/^$/d;s/\~[^~]*$//;s/\.[^.]*$//;/$(uname -r|sed s/-generic//)/d;s/.*/sudo rm -rfv \/boot\/*-&-*/"|source /dev/stdin
followed by

Code: Select all

sudo dpkg --configure -a
If that produces an error message, post it, otherwise continue with this:

Code: Select all

sudo apt-get install -f -y  #this will generate errors no matter what
sudo apt-get autoremove --purge -y
and finally:

Code: Select all

dpkg-query -Wf'${Version}\n' 'linux-image-[^gl]*'|sort -u|sed "/^$/d;s/\~[^~]*$//;s/\.[^.]*$//;/$(uname -r|sed 's/-generic\|-lowlatency//')/d;s/.*/linux-*-&*/"|tr '\n' ' '|xargs -r sudo apt-get remove --purge -y
For a quick explanation, the first command makes some room in /boot by removing other kernel boot images, the next command configures the aborted last update that got you into this, the next two make sure nothing else was stuck in the pipeline and also clean up some left-overs while we're at it. Then we fully remove all other kernels.
Last edited by gm10 on Mon Oct 21, 2019 5:23 am, edited 2 times in total.
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

Sarvijaakko
Level 1
Level 1
Posts: 7
Joined: Mon Oct 21, 2019 3:52 am

Re: After updating doesn't start, too little space.

Post by Sarvijaakko » Mon Oct 21, 2019 5:21 am

Hi!

It won't let me remove any of the kernels. My flatmate suggested I run

Code: Select all

sudo dpkg --configure -a
and I did. But...

Code: Select all

 Configuring grub-pc 
 GRUB failed to install to the following devices:  
 
 /dev/sda                               
 
 Do you want to continue anyway? If you do, your computer may not start 
 up properly.                                                      
 Writing GRUB to boot device failed - continue? 

gm10
Level 19
Level 19
Posts: 9704
Joined: Thu Jun 21, 2018 5:11 pm

Re: After updating doesn't start, too little space.

Post by gm10 » Mon Oct 21, 2019 5:22 am

See my post above.
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

Sarvijaakko
Level 1
Level 1
Posts: 7
Joined: Mon Oct 21, 2019 3:52 am

Re: After updating doesn't start, too little space.

Post by Sarvijaakko » Mon Oct 21, 2019 5:50 am

gm10 wrote:
Mon Oct 21, 2019 5:22 am
See my post above.
I did. I think it did the trick! Thank you ever so much. I have no idea what it did, but apparently all the other kernels were deleted. Now I started again by updating the kernel :)

gm10
Level 19
Level 19
Posts: 9704
Joined: Thu Jun 21, 2018 5:11 pm

Re: After updating doesn't start, too little space.

Post by gm10 » Mon Oct 21, 2019 6:05 am

Happy to help. Note that while the latest Linux Mint 19.2 includes functionality to automatically clean out old kernels, but your old release does not, so you'll need to get rid of old kernels once in a while to prevent this from happening again.
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

Post Reply

Return to “Installation & Boot”