0

I have a machine that isn't booting (even into GRUB). I suspect that it is not booting because of a lack of hard drive space in some partitions. I have the hard drive of this machine mounted using a USB live distribution. How would I manually delete files and directories such that older kernels are removed?

3
  • 1
    It seems unlikely that a machine won't even boot into GRUB due to lack of disk space. It is however possible that GRUB (re)configuration failed previously due to lack of disk space and therefore the machine doesn't boot. Just freeing the disk space will not fix the issue, GRUB reconfiguration would be probably necessary.
    – raj
    Sep 21, 2021 at 21:24
  • 1
    You can just rm the unwanted kernels and ramdisks, but then the package manager will complain when you try to properly remove the package. Replace the removed files with zero length files, and keep the package manager happy. As noted, wont necessarily fix things.
    – ubfan1
    Sep 21, 2021 at 21:37
  • 1
    Boot into a LiveUSB's "Try Ubuntu" environment and confirm that space is really a cause, and exactly which partition has such a problem. Don't guess. Prove your suspicions before acting, or you might make things worse. While booted into the "Try Ubuntu" environment is also a good time to backup your data.
    – user535733
    Sep 22, 2021 at 4:15

0

You must log in to answer this question.

Browse other questions tagged .