SST Lab Dokuwiki Header
内容へ移動
@surface
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
トレース:
linux:bootの掃除
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
===== Ubuntu serverで/bootパーティションがいっぱいになってしまったときの対処 ===== <code sh> $ df Filesystem 1K-blocks Used Available Use% Mounted on udev 8144248 4 8144244 1% /dev tmpfs 1631148 1004 1630144 1% /run /dev/dm-0 213461240 3452184 199142780 2% / none 4 0 4 0% /sys/fs/cgroup none 5120 0 5120 0% /run/lock none 8155728 0 8155728 0% /run/shm none 102400 0 102400 0% /run/user /dev/sda2 241965 241963 0 100% /boot /dev/sda1 523248 3456 519792 1% /boot/efi </code> おお、見事に100%使い切り。 インストールされているカーネルのバージョンを確認する。 <code sh> $ dpkg --get-selections | grep linux-image linux-image-4.2.0-27-generic install linux-image-4.2.0-35-generic install linux-image-4.2.0-36-generic install linux-image-4.2.0-38-generic install linux-image-4.2.0-41-generic install linux-image-4.2.0-42-generic install linux-image-extra-4.2.0-27-generic install linux-image-extra-4.2.0-35-generic install linux-image-extra-4.2.0-36-generic install linux-image-extra-4.2.0-38-generic install linux-image-extra-4.2.0-41-generic install linux-image-extra-4.2.0-42-generic install </code> 今使っているカーネルのバージョンを確認。 <code sh> $ uname -a Linux sstweb 4.2.0-42-generic #49~14.04.1-Ubuntu SMP Wed Jun 29 20:22:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux </code> ちまちま消す。 <code sh> $ sudo apt-get remove linux-image-4.2.0-27-generic $ sudo apt-get remove linux-image-4.2.0-35-generic . . . </code> 確認。 <code> $ dpkg --get-selections | grep linux-image linux-image-4.2.0-27-generic deinstall linux-image-4.2.0-35-generic deinstall linux-image-4.2.0-36-generic deinstall linux-image-4.2.0-38-generic deinstall linux-image-4.2.0-41-generic install linux-image-4.2.0-42-generic install linux-image-extra-4.2.0-27-generic deinstall linux-image-extra-4.2.0-35-generic deinstall linux-image-extra-4.2.0-36-generic deinstall linux-image-extra-4.2.0-38-generic deinstall linux-image-extra-4.2.0-41-generic install linux-image-extra-4.2.0-42-generic install </code> 消せました。 <code sh> $ sudo apt-get autoremove $ df Filesystem 1K-blocks Used Available Use% Mounted on udev 8144248 12 8144236 1% /dev tmpfs 1631148 1012 1630136 1% /run /dev/dm-0 213461240 1944576 200650388 1% / none 4 0 4 0% /sys/fs/cgroup none 5120 0 5120 0% /run/lock none 8155728 0 8155728 0% /run/shm none 102400 0 102400 0% /run/user /dev/sda2 241965 53148 176325 24% /boot /dev/sda1 523248 3456 519792 1% /boot/efi </code>
linux/bootの掃除.txt
· 最終更新: 2022/08/23 13:34 by
127.0.0.1
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ