wenig Speicherplatz auf Boot

Support-Forum für deutschsprachige Benutzer

Moderator: karlchen

Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
comunio2008

wenig Speicherplatz auf Boot

Post by comunio2008 »

Hi zusammen,

seit Tagen nervt die Meldung beim Start.

Ich habe eine verschlüsselte Platte, weiß jemand wie man das abstellen kann?

Danke!

Gruß
Chris
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Pjotr
Level 24
Level 24
Posts: 20049
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: wenig Speicherplatz auf Boot

Post by Pjotr »

Leider nicht abstellbar. Im Zukunft nur verschlüsseln, wenn's einen guten Grund dazu gibt.... :wink:

Platz machen im /boot kann wahrscheinlich, durch das Entfernen von alten Kernels. Das ist möglich in der Aktualisierungsverwaltung (Panel: Zeigen - Linux kernels).

Oder ganz schnell, mit diesem Script:

Code: Select all

#!/bin/sh
#
#    purge-old-kernels-2 - remove old kernels and their headers
#    Copyright (C) 2012: Dustin Kirkland <kirkland@ubuntu.com>
#                  2017: Pjotr <pjotrvertaalt@gmail.com>
#
#    Authors: Dustin Kirkland <kirkland@ubuntu.com>
#             Kees Cook <kees@ubuntu.com>
#             Pjotr <pjotrvertaalt@gmail.com> (minor changes in the explanatory notes)
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, version 3 of the License.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.

# Ensure we're running as root
if [ "$(id -u)" != 0 ]; then
   echo "ERROR: This script must be run as root.  Hint:" 1>&2
   echo "  sudo sh $0 $@" 1>&2
   exit 1
fi

# NOTE: This script will ALWAYS keep the currently running kernel and its headers, which should make it safe to use.
# NOTE: Default is 2, which means that it keeps one spare kernel besides the currently running kernel.
# NOTE: Before you can use it, you need to make this shell script executable.
# Usage when in folder Downloads, consists out of three steps:
# 1. Move the script from the folder Downloads to the folder /opt:
# sudo mv -v ~/Downloads/purge-old-kernels-2.sh /opt
# 2. Set the permissions right (also making it executable):
# sudo chmod -v 755 /opt/purge-old-kernels-2.sh
# 3. Launch it:
# sudo sh /opt/purge-old-kernels-2.sh
# NOTE: You can change the number of kept kernels with --keep.
# Example: sudo sh /opt/purge-old-kernels-2.sh --keep 3
KEEP=2
# NOTE: Any unrecognized option will be passed straight through to apt
APT_OPTS=
while [ ! -z "$1" ]; do
   case "$1" in
      --keep)
         # User specified the number of kernels to keep
         KEEP="$2"
         shift 2
      ;;
      *)
         APT_OPTS="$APT_OPTS $1"
         shift 1
      ;;
   esac
done

# Build our list of kernel packages to purge
CANDIDATES=$(ls -tr /boot/vmlinuz-* | head -n -${KEEP} | grep -v "$(uname -r)$" | cut -d- -f2- | awk '{print "linux-image-" $0 " linux-headers-" $0}' )
for c in $CANDIDATES; do
   dpkg-query -s "$c" >/dev/null 2>&1 && PURGE="$PURGE $c"
done

if [ -z "$PURGE" ]; then
   echo "No kernels are eligible for removal"
   exit 0
fi

apt $APT_OPTS remove --purge $PURGE
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
comunio2008

Re: wenig Speicherplatz auf Boot

Post by comunio2008 »

Danke für die schnelle Antwort. Der Grund ist gut, ich wohne in einer WG.

Kann es zum Problem werden, dass dieser Speicherplatz bald erschöpft ist? Oder ist das egal?
User avatar
ehtron
Level 10
Level 10
Posts: 3364
Joined: Thu Apr 14, 2016 8:15 am
Location: Germany / Baltic Sea
Contact:

Re: wenig Speicherplatz auf Boot

Post by ehtron »

Hi :)
egal.. du bist gut.. *lach*
wenn die partition voll ist, kann nicht mehr gebootet werden, da wichtige dafür notwendige daten nicht mehr geschrieben werden können.

entferne mal ältere kernel.. das schafft platz, und schalte die automatik aus.
siehe meine infos zum thema
http://www.ehlertronic.de/linux/tipps-t ... .html#c658
Lg. Ehtron :)
Keine Hilfe bei fehlender System / Desktop Angabe.
Ich gebe Hilfe zur Selbsthilfe.
comunio2008

Re: wenig Speicherplatz auf Boot

Post by comunio2008 »

ehtron danke für die Hilfe!

Ich werde die die neueste Version von Mint auf die Platte frisch installieren.

Ich würde gerne den Home Ordner verschlüsseln. Ist das möglich? Ansonsten müsste ich wieder
das Laufwerk komplett verschlüsseln, da mein Rechner in der WG für jeden zugänglich ist.

Hast Du einen Tipp?
User avatar
Moem
Level 22
Level 22
Posts: 16228
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: wenig Speicherplatz auf Boot

Post by Moem »

comunio2008 wrote:Ich werde die die neueste Version von Mint auf die Platte frisch installieren.
Und was machst du wann das gleiche wieder passiert? Wäre es nicht besser zu lernen wie man dass beheben kann? Es ist ja nicht kompliziert.
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
User avatar
ehtron
Level 10
Level 10
Posts: 3364
Joined: Thu Apr 14, 2016 8:15 am
Location: Germany / Baltic Sea
Contact:

Re: wenig Speicherplatz auf Boot

Post by ehtron »

Hi :)
um platz durch entfernen von alten kerneln zu schaffen, brauchst du nicht neu installieren. ;)
updten auf neue versionen kann man auch, siehe meine page,
und partitionen vergrössern ist auch kein hexenwerk ;)

und ja.. unter was anderes gibt es 2 möglichkeiten..
am anfang vollverschlüsselung (nicht empfehlenswert)
und im weiteren verlauf home verschlüsselung... wenn man es braucht...?

dann gibt es mit zusatzsoftware auch die möglichkeit verschlüsselte daten container anzulegen... m.e. die eleganteste methode um daten sicher zu verwahren.
Lg. Ehtron :)
Keine Hilfe bei fehlender System / Desktop Angabe.
Ich gebe Hilfe zur Selbsthilfe.
comunio2008

Re: wenig Speicherplatz auf Boot

Post by comunio2008 »

ehtron herzlichen Dank!

Ich habs neu installiert. Ging super fix und einrichten ist kein Akt da eh alles in der Cloud schlummert.

Trotzdem vielen DANK!
Locked

Return to “Deutsch - German”