ECEn Help Wiki

Log In
Home Sitemap Recent Changes Media Manager

Trace:

wiki:student:how_to_clear_a_full_boot_partition

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
wiki:student:how_to_clear_a_full_boot_partition [2019/03/19 16:04]
cwday
wiki:student:how_to_clear_a_full_boot_partition [2019/03/19 16:08]
cwday
Line 6: Line 6:
 ​Here are some tricks to solve this problem: ​Here are some tricks to solve this problem:
   -​​ If you've run into a kernel panic at boot time, select the //Advanced Boot// option from the Grub menu and select an older kernel version to boot from (do not use recovery mode). You may have to try a few before you find one that works.   -​​ If you've run into a kernel panic at boot time, select the //Advanced Boot// option from the Grub menu and select an older kernel version to boot from (do not use recovery mode). You may have to try a few before you find one that works.
-  - When you have a functioning terminal to use, check the Linux kernel version you are currently running ​with the ** ''​uname -r'' ​** command. DO NOT remove this kernel.+  - When you have a functioning terminal to use, check the Linux kernel version you are currently running**DO NOT REMOVE THIS KERNEL**. 
 +    * <​code>​uname -r</​code> ​
   - Check which old kernels you have   - Check which old kernels you have
     *  <​code>​ls /​boot</​code>​     *  <​code>​ls /​boot</​code>​
Line 12: Line 13:
     * <​code>​sudo dpkg --force-all -P linux-image-3.13.0-32-generic</​code> ​     * <​code>​sudo dpkg --force-all -P linux-image-3.13.0-32-generic</​code> ​
     * ​You will probably need to use the same command to delete the ''​linux-image-extra''​ version of the corresponding kernels to fix dependency problems.     * ​You will probably need to use the same command to delete the ''​linux-image-extra''​ version of the corresponding kernels to fix dependency problems.
-  - ​Once you are certain you have enough free space fix any existing dependency problems. Make sure this command does not try to reinstall the kernels you just removed. If it does, you need to remove the ''​linux-image-extra''​ packages for those kernels (there may be other such dependencies,​ check online).+  - ​Once you are certain you have enough free space fix any existing dependency problems. ​
     * <​code>​sudo apt-get install -f</​code>​     * <​code>​sudo apt-get install -f</​code>​
 +    * //Make sure this command does not try to reinstall the kernels you just removed.// If it does, you need to remove the ''​linux-image-extra''​ packages for those kernels (there may be other such dependencies,​ check online).
   - Once you've got any dependency issues resolved, run **''​sudo apt-get autoremove''​** to remove the other old kernels.   - Once you've got any dependency issues resolved, run **''​sudo apt-get autoremove''​** to remove the other old kernels.
-    ​As an alternative to ''​autoremove'',​ you try the following command, though using a low-level utility such as dpkg is not necessarily recommended. It will remove all kernels except the one currently running. +    ​As an alternative to ''​autoremove'',​ you try the following command, though using a low-level utility such as dpkg is not necessarily recommended. It will remove all kernels except the one currently running. 
-      ​<WRAP prewrap><​code>​sudo apt-get purge $(dpkg -l linux-{image,​headers}-"​[0-9]*"​ | awk '/​ii/​{print $2}' | grep -ve "​$(uname -r | sed -r '​s/​-[a-z]+//​)"​)</​code></​WRAP>​+      ​<WRAP prewrap><​code>​sudo apt-get purge $(dpkg -l linux-{image,​headers}-"​[0-9]*"​ | awk '/​ii/​{print $2}' | grep -ve "​$(uname -r | sed -r '​s/​-[a-z]+//​)"​)</​code></​WRAP>​
   - Odds are, there'​s a new kernel waiting to be installed. Once you've done all this to clear out your ''/​boot''​ partition, run **''​apt-get update''​** and **''​apt-get upgrade''​** to update your system (including any new kernels).   - Odds are, there'​s a new kernel waiting to be installed. Once you've done all this to clear out your ''/​boot''​ partition, run **''​apt-get update''​** and **''​apt-get upgrade''​** to update your system (including any new kernels).
wiki/student/how_to_clear_a_full_boot_partition.txt · Last modified: 2019/03/21 14:56 by mchamber