How can I tell if /boot has free space? [duplicate]
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
3
down vote
favorite
This question already has an answer here:
How to find out how much disk space is remaining?
7 answers
How do I free up more space in /boot?
20 answers
gksudo
for Baobab Disk Usage Analyzer doesn't show /boot. I recently removed several old kernels. How can I verify that I've freed up space in /boot?
Backstory âÂÂ
I started spring cleaning because Ubuntu wasn't booting properly without workarounds. I diagnosed the error when my computer warned me that /boot was almost full. The warning opened Disk Usage Analyzer without root permission so /boot wasn't scanned. Now the analyzer can't seem to find the directory at all.
What I Did âÂÂ
After updating to most recent kernel, I removed old kernels one at a time with:
sudo apt purge linux-image-[VERSION].
When I was done, I updated grub2.
Each time the purge
command said it would free up 0 Bytes of space. They are gone tho according to:
dpkg --list | grep linux-image
boot grub2 kernel disk-usage purge
marked as duplicate by user535733, karel, Fabby, WinEunuuchs2Unix, Kevin Bowen May 24 at 3:06
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |Â
up vote
3
down vote
favorite
This question already has an answer here:
How to find out how much disk space is remaining?
7 answers
How do I free up more space in /boot?
20 answers
gksudo
for Baobab Disk Usage Analyzer doesn't show /boot. I recently removed several old kernels. How can I verify that I've freed up space in /boot?
Backstory âÂÂ
I started spring cleaning because Ubuntu wasn't booting properly without workarounds. I diagnosed the error when my computer warned me that /boot was almost full. The warning opened Disk Usage Analyzer without root permission so /boot wasn't scanned. Now the analyzer can't seem to find the directory at all.
What I Did âÂÂ
After updating to most recent kernel, I removed old kernels one at a time with:
sudo apt purge linux-image-[VERSION].
When I was done, I updated grub2.
Each time the purge
command said it would free up 0 Bytes of space. They are gone tho according to:
dpkg --list | grep linux-image
boot grub2 kernel disk-usage purge
marked as duplicate by user535733, karel, Fabby, WinEunuuchs2Unix, Kevin Bowen May 24 at 3:06
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
This question already has an answer here:
How to find out how much disk space is remaining?
7 answers
How do I free up more space in /boot?
20 answers
gksudo
for Baobab Disk Usage Analyzer doesn't show /boot. I recently removed several old kernels. How can I verify that I've freed up space in /boot?
Backstory âÂÂ
I started spring cleaning because Ubuntu wasn't booting properly without workarounds. I diagnosed the error when my computer warned me that /boot was almost full. The warning opened Disk Usage Analyzer without root permission so /boot wasn't scanned. Now the analyzer can't seem to find the directory at all.
What I Did âÂÂ
After updating to most recent kernel, I removed old kernels one at a time with:
sudo apt purge linux-image-[VERSION].
When I was done, I updated grub2.
Each time the purge
command said it would free up 0 Bytes of space. They are gone tho according to:
dpkg --list | grep linux-image
boot grub2 kernel disk-usage purge
This question already has an answer here:
How to find out how much disk space is remaining?
7 answers
How do I free up more space in /boot?
20 answers
gksudo
for Baobab Disk Usage Analyzer doesn't show /boot. I recently removed several old kernels. How can I verify that I've freed up space in /boot?
Backstory âÂÂ
I started spring cleaning because Ubuntu wasn't booting properly without workarounds. I diagnosed the error when my computer warned me that /boot was almost full. The warning opened Disk Usage Analyzer without root permission so /boot wasn't scanned. Now the analyzer can't seem to find the directory at all.
What I Did âÂÂ
After updating to most recent kernel, I removed old kernels one at a time with:
sudo apt purge linux-image-[VERSION].
When I was done, I updated grub2.
Each time the purge
command said it would free up 0 Bytes of space. They are gone tho according to:
dpkg --list | grep linux-image
This question already has an answer here:
How to find out how much disk space is remaining?
7 answers
How do I free up more space in /boot?
20 answers
boot grub2 kernel disk-usage purge
asked May 23 at 16:45
![](https://i.stack.imgur.com/N1wpU.jpg?s=32&g=1)
![](https://i.stack.imgur.com/N1wpU.jpg?s=32&g=1)
UsagiYojimbo
2132410
2132410
marked as duplicate by user535733, karel, Fabby, WinEunuuchs2Unix, Kevin Bowen May 24 at 3:06
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by user535733, karel, Fabby, WinEunuuchs2Unix, Kevin Bowen May 24 at 3:06
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |Â
add a comment |Â
3 Answers
3
active
oldest
votes
up vote
3
down vote
df -h
shows you space on all partitions, not just /home, and to see all kernels, do dpkg -l linux-image*
You can remove multiple old kernels at once with a command like sudo apt-get remove linux-image-2.6.32-21,37,38,39,40,41,42,43,44-server
(substitute your numbers based on what you find with dpkg) but be very careful not to remove the current kernel, nor the latest kernel!
uname -r
shows you what you are currently using.
Note:sudo apt-get autoremove
is good to run after removing old kernels as it removes obsolete dependencies.
add a comment |Â
up vote
0
down vote
If /boot
is a separate file system and if you run baobab with sudo, it will not list /boot
as part of the full disk analysis. Instead you have to select the file system you want to analyse at the startup screen of baobab.
Alternatively you can run baobab like this: sudo baobab /boot
to immediately open the disk usage for the /boot
folder.
However, if you are on the command line already there are more ways (see other answer) to query the system disk usage.
add a comment |Â
up vote
0
down vote
Easiest way is to use df
command:
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 3.7G 0 3.7G 0% /dev
tmpfs 759M 1.9M 757M 1% /run
/dev/nvme0n1p7 44G 19G 24G 44% /
tmpfs 3.8G 52M 3.7G 2% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
/dev/nvme0n1p8 9.1G 49M 9.0G 1% /mnt/e
/dev/nvme0n1p2 95M 28M 68M 29% /boot/efi
/dev/nvme0n1p4 391G 130G 262G 34% /mnt/c
/dev/sda3 920G 42G 878G 5% /mnt/d
tmpfs 759M 64K 759M 1% /run/user/1000
/dev/sdb5 6.3G 101M 5.9G 2% /media/rick/casper-rw
/dev/sdb1 6.4G 43M 6.4G 1% /media/rick/usbdata
/dev/sdb4 1.4G 1.4G 0 100% /media/rick/Ubuntu 18.04 LTS amd64
On my system /boot
is embedded in root (/
) directory. So I can see it's on partition /dev/nvme0n1p7
which is 44% full (24G available). This is enough to store 48 new kernels without purging any of the existing ones.
If you have a separate /boot
partition you will see it on the df
listing.
To see how much disk space, not only in /boot
but also in /src/lib
and /lib/modules
each kernel consumes you can use rm-kernels
to display storage used without removing anything:
In this case there are 6.9 GB used in kernels not only in /boot
but across rest of /
. The display shows a separate column for how much is used in /boot
directory.
You can also run the du
(Disk Usage) command:
$ du /boot -h -s
1.2G /boot
add a comment |Â
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
df -h
shows you space on all partitions, not just /home, and to see all kernels, do dpkg -l linux-image*
You can remove multiple old kernels at once with a command like sudo apt-get remove linux-image-2.6.32-21,37,38,39,40,41,42,43,44-server
(substitute your numbers based on what you find with dpkg) but be very careful not to remove the current kernel, nor the latest kernel!
uname -r
shows you what you are currently using.
Note:sudo apt-get autoremove
is good to run after removing old kernels as it removes obsolete dependencies.
add a comment |Â
up vote
3
down vote
df -h
shows you space on all partitions, not just /home, and to see all kernels, do dpkg -l linux-image*
You can remove multiple old kernels at once with a command like sudo apt-get remove linux-image-2.6.32-21,37,38,39,40,41,42,43,44-server
(substitute your numbers based on what you find with dpkg) but be very careful not to remove the current kernel, nor the latest kernel!
uname -r
shows you what you are currently using.
Note:sudo apt-get autoremove
is good to run after removing old kernels as it removes obsolete dependencies.
add a comment |Â
up vote
3
down vote
up vote
3
down vote
df -h
shows you space on all partitions, not just /home, and to see all kernels, do dpkg -l linux-image*
You can remove multiple old kernels at once with a command like sudo apt-get remove linux-image-2.6.32-21,37,38,39,40,41,42,43,44-server
(substitute your numbers based on what you find with dpkg) but be very careful not to remove the current kernel, nor the latest kernel!
uname -r
shows you what you are currently using.
Note:sudo apt-get autoremove
is good to run after removing old kernels as it removes obsolete dependencies.
df -h
shows you space on all partitions, not just /home, and to see all kernels, do dpkg -l linux-image*
You can remove multiple old kernels at once with a command like sudo apt-get remove linux-image-2.6.32-21,37,38,39,40,41,42,43,44-server
(substitute your numbers based on what you find with dpkg) but be very careful not to remove the current kernel, nor the latest kernel!
uname -r
shows you what you are currently using.
Note:sudo apt-get autoremove
is good to run after removing old kernels as it removes obsolete dependencies.
answered May 23 at 17:36
![](https://i.stack.imgur.com/IfEQx.jpg?s=32&g=1)
![](https://i.stack.imgur.com/IfEQx.jpg?s=32&g=1)
K7AAY
3,73221443
3,73221443
add a comment |Â
add a comment |Â
up vote
0
down vote
If /boot
is a separate file system and if you run baobab with sudo, it will not list /boot
as part of the full disk analysis. Instead you have to select the file system you want to analyse at the startup screen of baobab.
Alternatively you can run baobab like this: sudo baobab /boot
to immediately open the disk usage for the /boot
folder.
However, if you are on the command line already there are more ways (see other answer) to query the system disk usage.
add a comment |Â
up vote
0
down vote
If /boot
is a separate file system and if you run baobab with sudo, it will not list /boot
as part of the full disk analysis. Instead you have to select the file system you want to analyse at the startup screen of baobab.
Alternatively you can run baobab like this: sudo baobab /boot
to immediately open the disk usage for the /boot
folder.
However, if you are on the command line already there are more ways (see other answer) to query the system disk usage.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
If /boot
is a separate file system and if you run baobab with sudo, it will not list /boot
as part of the full disk analysis. Instead you have to select the file system you want to analyse at the startup screen of baobab.
Alternatively you can run baobab like this: sudo baobab /boot
to immediately open the disk usage for the /boot
folder.
However, if you are on the command line already there are more ways (see other answer) to query the system disk usage.
If /boot
is a separate file system and if you run baobab with sudo, it will not list /boot
as part of the full disk analysis. Instead you have to select the file system you want to analyse at the startup screen of baobab.
Alternatively you can run baobab like this: sudo baobab /boot
to immediately open the disk usage for the /boot
folder.
However, if you are on the command line already there are more ways (see other answer) to query the system disk usage.
answered May 23 at 23:45
![](https://i.stack.imgur.com/33gTl.jpg?s=32&g=1)
![](https://i.stack.imgur.com/33gTl.jpg?s=32&g=1)
Sebastian Stark
4,603838
4,603838
add a comment |Â
add a comment |Â
up vote
0
down vote
Easiest way is to use df
command:
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 3.7G 0 3.7G 0% /dev
tmpfs 759M 1.9M 757M 1% /run
/dev/nvme0n1p7 44G 19G 24G 44% /
tmpfs 3.8G 52M 3.7G 2% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
/dev/nvme0n1p8 9.1G 49M 9.0G 1% /mnt/e
/dev/nvme0n1p2 95M 28M 68M 29% /boot/efi
/dev/nvme0n1p4 391G 130G 262G 34% /mnt/c
/dev/sda3 920G 42G 878G 5% /mnt/d
tmpfs 759M 64K 759M 1% /run/user/1000
/dev/sdb5 6.3G 101M 5.9G 2% /media/rick/casper-rw
/dev/sdb1 6.4G 43M 6.4G 1% /media/rick/usbdata
/dev/sdb4 1.4G 1.4G 0 100% /media/rick/Ubuntu 18.04 LTS amd64
On my system /boot
is embedded in root (/
) directory. So I can see it's on partition /dev/nvme0n1p7
which is 44% full (24G available). This is enough to store 48 new kernels without purging any of the existing ones.
If you have a separate /boot
partition you will see it on the df
listing.
To see how much disk space, not only in /boot
but also in /src/lib
and /lib/modules
each kernel consumes you can use rm-kernels
to display storage used without removing anything:
In this case there are 6.9 GB used in kernels not only in /boot
but across rest of /
. The display shows a separate column for how much is used in /boot
directory.
You can also run the du
(Disk Usage) command:
$ du /boot -h -s
1.2G /boot
add a comment |Â
up vote
0
down vote
Easiest way is to use df
command:
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 3.7G 0 3.7G 0% /dev
tmpfs 759M 1.9M 757M 1% /run
/dev/nvme0n1p7 44G 19G 24G 44% /
tmpfs 3.8G 52M 3.7G 2% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
/dev/nvme0n1p8 9.1G 49M 9.0G 1% /mnt/e
/dev/nvme0n1p2 95M 28M 68M 29% /boot/efi
/dev/nvme0n1p4 391G 130G 262G 34% /mnt/c
/dev/sda3 920G 42G 878G 5% /mnt/d
tmpfs 759M 64K 759M 1% /run/user/1000
/dev/sdb5 6.3G 101M 5.9G 2% /media/rick/casper-rw
/dev/sdb1 6.4G 43M 6.4G 1% /media/rick/usbdata
/dev/sdb4 1.4G 1.4G 0 100% /media/rick/Ubuntu 18.04 LTS amd64
On my system /boot
is embedded in root (/
) directory. So I can see it's on partition /dev/nvme0n1p7
which is 44% full (24G available). This is enough to store 48 new kernels without purging any of the existing ones.
If you have a separate /boot
partition you will see it on the df
listing.
To see how much disk space, not only in /boot
but also in /src/lib
and /lib/modules
each kernel consumes you can use rm-kernels
to display storage used without removing anything:
In this case there are 6.9 GB used in kernels not only in /boot
but across rest of /
. The display shows a separate column for how much is used in /boot
directory.
You can also run the du
(Disk Usage) command:
$ du /boot -h -s
1.2G /boot
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Easiest way is to use df
command:
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 3.7G 0 3.7G 0% /dev
tmpfs 759M 1.9M 757M 1% /run
/dev/nvme0n1p7 44G 19G 24G 44% /
tmpfs 3.8G 52M 3.7G 2% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
/dev/nvme0n1p8 9.1G 49M 9.0G 1% /mnt/e
/dev/nvme0n1p2 95M 28M 68M 29% /boot/efi
/dev/nvme0n1p4 391G 130G 262G 34% /mnt/c
/dev/sda3 920G 42G 878G 5% /mnt/d
tmpfs 759M 64K 759M 1% /run/user/1000
/dev/sdb5 6.3G 101M 5.9G 2% /media/rick/casper-rw
/dev/sdb1 6.4G 43M 6.4G 1% /media/rick/usbdata
/dev/sdb4 1.4G 1.4G 0 100% /media/rick/Ubuntu 18.04 LTS amd64
On my system /boot
is embedded in root (/
) directory. So I can see it's on partition /dev/nvme0n1p7
which is 44% full (24G available). This is enough to store 48 new kernels without purging any of the existing ones.
If you have a separate /boot
partition you will see it on the df
listing.
To see how much disk space, not only in /boot
but also in /src/lib
and /lib/modules
each kernel consumes you can use rm-kernels
to display storage used without removing anything:
In this case there are 6.9 GB used in kernels not only in /boot
but across rest of /
. The display shows a separate column for how much is used in /boot
directory.
You can also run the du
(Disk Usage) command:
$ du /boot -h -s
1.2G /boot
Easiest way is to use df
command:
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 3.7G 0 3.7G 0% /dev
tmpfs 759M 1.9M 757M 1% /run
/dev/nvme0n1p7 44G 19G 24G 44% /
tmpfs 3.8G 52M 3.7G 2% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
/dev/nvme0n1p8 9.1G 49M 9.0G 1% /mnt/e
/dev/nvme0n1p2 95M 28M 68M 29% /boot/efi
/dev/nvme0n1p4 391G 130G 262G 34% /mnt/c
/dev/sda3 920G 42G 878G 5% /mnt/d
tmpfs 759M 64K 759M 1% /run/user/1000
/dev/sdb5 6.3G 101M 5.9G 2% /media/rick/casper-rw
/dev/sdb1 6.4G 43M 6.4G 1% /media/rick/usbdata
/dev/sdb4 1.4G 1.4G 0 100% /media/rick/Ubuntu 18.04 LTS amd64
On my system /boot
is embedded in root (/
) directory. So I can see it's on partition /dev/nvme0n1p7
which is 44% full (24G available). This is enough to store 48 new kernels without purging any of the existing ones.
If you have a separate /boot
partition you will see it on the df
listing.
To see how much disk space, not only in /boot
but also in /src/lib
and /lib/modules
each kernel consumes you can use rm-kernels
to display storage used without removing anything:
In this case there are 6.9 GB used in kernels not only in /boot
but across rest of /
. The display shows a separate column for how much is used in /boot
directory.
You can also run the du
(Disk Usage) command:
$ du /boot -h -s
1.2G /boot
answered May 24 at 0:09
![](https://i.stack.imgur.com/2SXNl.jpg?s=32&g=1)
![](https://i.stack.imgur.com/2SXNl.jpg?s=32&g=1)
WinEunuuchs2Unix
34.3k756131
34.3k756131
add a comment |Â
add a comment |Â