Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
07-16-2017, 03:41 PM
|
#16
|
Member
Registered: Aug 2005
Posts: 81
Original Poster
Rep:
|
Quote:
Originally Posted by plasmonics
Assuming that your EFI partition is mounted at /boot/efi, you can try the following to see which application is taking up the space:
Code:
cd /boot/efi
du -h .
|
Hi plasmonics,
Here is the result:
Code:
[mak@jmak-pc efi]$ du -h .
153K ./EFI/Microsoft/Boot/bg-BG
196K ./EFI/Microsoft/Boot/cs-CZ
194K ./EFI/Microsoft/Boot/da-DK
202K ./EFI/Microsoft/Boot/de-DE
205K ./EFI/Microsoft/Boot/el-GR
147K ./EFI/Microsoft/Boot/en-GB
191K ./EFI/Microsoft/Boot/en-US
198K ./EFI/Microsoft/Boot/es-ES
153K ./EFI/Microsoft/Boot/es-MX
149K ./EFI/Microsoft/Boot/et-EE
196K ./EFI/Microsoft/Boot/fi-FI
157K ./EFI/Microsoft/Boot/fr-CA
202K ./EFI/Microsoft/Boot/fr-FR
151K ./EFI/Microsoft/Boot/hr-HR
200K ./EFI/Microsoft/Boot/hu-HU
198K ./EFI/Microsoft/Boot/it-IT
175K ./EFI/Microsoft/Boot/ja-JP
175K ./EFI/Microsoft/Boot/ko-KR
149K ./EFI/Microsoft/Boot/lt-LT
149K ./EFI/Microsoft/Boot/lv-LV
194K ./EFI/Microsoft/Boot/nb-NO
200K ./EFI/Microsoft/Boot/nl-NL
198K ./EFI/Microsoft/Boot/pl-PL
196K ./EFI/Microsoft/Boot/pt-BR
196K ./EFI/Microsoft/Boot/pt-PT
54K ./EFI/Microsoft/Boot/qps-ploc
151K ./EFI/Microsoft/Boot/ro-RO
197K ./EFI/Microsoft/Boot/ru-RU
153K ./EFI/Microsoft/Boot/sk-SK
151K ./EFI/Microsoft/Boot/sl-SI
46K ./EFI/Microsoft/Boot/sr-Latn-CS
153K ./EFI/Microsoft/Boot/sr-Latn-RS
195K ./EFI/Microsoft/Boot/sv-SE
194K ./EFI/Microsoft/Boot/tr-TR
153K ./EFI/Microsoft/Boot/uk-UA
169K ./EFI/Microsoft/Boot/zh-CN
169K ./EFI/Microsoft/Boot/zh-HK
169K ./EFI/Microsoft/Boot/zh-TW
13M ./EFI/Microsoft/Boot/Fonts
5.0K ./EFI/Microsoft/Boot/Resources/en-US
33K ./EFI/Microsoft/Boot/Resources
24M ./EFI/Microsoft/Boot
41K ./EFI/Microsoft/Recovery
24M ./EFI/Microsoft
1.3M ./EFI/Boot
5.0K ./EFI/Dell/logs
12M ./EFI/Dell/Bios/Recovery
12M ./EFI/Dell/Bios
12M ./EFI/Dell
121K ./EFI/Manjaro
121K ./EFI/grub
121K ./EFI/archLXQT_2
121K ./EFI/antergos_grub_vl0n
121K ./EFI/ArchLabs
38M ./EFI
2.8M ./grub/x86_64-efi
3.9M ./grub/locale
2.8M ./grub/themes/starfield
2.8M ./grub/themes
2.3M ./grub/fonts
12M ./grub
82M .
[mak@jmak-pc efi]$
|
|
|
07-17-2017, 06:08 AM
|
#17
|
Member
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224
Rep:
|
I can't comment on the usage of space by Microsoft and Dell, since Windows is not my area.
I don't know how the grub starfield theme ended up on your efi partition. It is taking up 12M. It is usually in /usr/share/grub/themes or /boot/grub/theme.
I do not have a /boot/efi/grub directory. There is a /boot/grub.
Starfield is used in the file /etc/default/grub by setting the variable
Code:
GRUB_THEME=/path/to/theeme
|
|
|
07-17-2017, 06:37 AM
|
#18
|
Member
Registered: Aug 2005
Posts: 81
Original Poster
Rep:
|
Quote:
Originally Posted by plasmonics
I can't comment on the usage of space by Microsoft and Dell, since Windows is not my area.
I don't know how the grub starfield theme ended up on your efi partition. It is taking up 12M. It is usually in /usr/share/grub/themes or /boot/grub/theme.
I do not have a /boot/efi/grub directory. There is a /boot/grub.
Starfield is used in the file /etc/default/grub by setting the variable
Code:
GRUB_THEME=/path/to/theeme
|
I have both the /boot/grub and the /boot/efi/grub directories. It seems that the /boot/efi/grub directory is a duplicate of one of the /boot/grub directories.
Should I remove it?
|
|
|
07-17-2017, 07:48 AM
|
#19
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,843
|
Quote:
I have both the /boot/grub and the /boot/efi/grub directories. It seems that the /boot/efi/grub directory is a duplicate of one of the /boot/grub directories.
Should I remove it?
|
That would depend on which grub you use for booting, and if you use the uefi bios to switch between bootloaders.
|
|
|
07-17-2017, 10:49 AM
|
#20
|
Member
Registered: Aug 2005
Posts: 81
Original Poster
Rep:
|
Thank you for the help to everyone, especially to "plasmonics" for telling me that "grub" directory shouldn't be on the efi partition.
But wait, it was not only the grub directory but also "initramfs-linux-fallback.img initramfs-linux.img intel-ucode.img vmlinuz-linux" files were also there what the "du -h ." command didn't show.
I removed them all. I rebooted the machine and it works fine.
I have no clue how those folders and files ended up on the efi partition.
After the removal of grub and the other files only 39% of my efi partition is used, the rest is free.
Look:
Code:
[mak@myhost ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
dev 3.9G 0 3.9G 0% /dev
run 3.9G 1.4M 3.9G 1% /run
/dev/sda9 20G 6.0G 14G 31% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
tmpfs 3.9G 160K 3.9G 1% /tmp
/dev/sda2 96M 37M 60M 39% /boot/efi
tmpfs 786M 8.0K 786M 1% /run/user/1000
[mak@myhost ~]$
Code:
[mak@myhost efi]$ du -h .
153K ./EFI/Microsoft/Boot/bg-BG
196K ./EFI/Microsoft/Boot/cs-CZ
194K ./EFI/Microsoft/Boot/da-DK
202K ./EFI/Microsoft/Boot/de-DE
205K ./EFI/Microsoft/Boot/el-GR
147K ./EFI/Microsoft/Boot/en-GB
191K ./EFI/Microsoft/Boot/en-US
198K ./EFI/Microsoft/Boot/es-ES
153K ./EFI/Microsoft/Boot/es-MX
149K ./EFI/Microsoft/Boot/et-EE
196K ./EFI/Microsoft/Boot/fi-FI
157K ./EFI/Microsoft/Boot/fr-CA
202K ./EFI/Microsoft/Boot/fr-FR
151K ./EFI/Microsoft/Boot/hr-HR
200K ./EFI/Microsoft/Boot/hu-HU
198K ./EFI/Microsoft/Boot/it-IT
175K ./EFI/Microsoft/Boot/ja-JP
175K ./EFI/Microsoft/Boot/ko-KR
149K ./EFI/Microsoft/Boot/lt-LT
149K ./EFI/Microsoft/Boot/lv-LV
194K ./EFI/Microsoft/Boot/nb-NO
200K ./EFI/Microsoft/Boot/nl-NL
198K ./EFI/Microsoft/Boot/pl-PL
196K ./EFI/Microsoft/Boot/pt-BR
196K ./EFI/Microsoft/Boot/pt-PT
54K ./EFI/Microsoft/Boot/qps-ploc
151K ./EFI/Microsoft/Boot/ro-RO
197K ./EFI/Microsoft/Boot/ru-RU
153K ./EFI/Microsoft/Boot/sk-SK
151K ./EFI/Microsoft/Boot/sl-SI
46K ./EFI/Microsoft/Boot/sr-Latn-CS
153K ./EFI/Microsoft/Boot/sr-Latn-RS
195K ./EFI/Microsoft/Boot/sv-SE
194K ./EFI/Microsoft/Boot/tr-TR
153K ./EFI/Microsoft/Boot/uk-UA
169K ./EFI/Microsoft/Boot/zh-CN
169K ./EFI/Microsoft/Boot/zh-HK
169K ./EFI/Microsoft/Boot/zh-TW
13M ./EFI/Microsoft/Boot/Fonts
5.0K ./EFI/Microsoft/Boot/Resources/en-US
33K ./EFI/Microsoft/Boot/Resources
24M ./EFI/Microsoft/Boot
41K ./EFI/Microsoft/Recovery
24M ./EFI/Microsoft
1.3M ./EFI/Boot
5.0K ./EFI/Dell/logs
12M ./EFI/Dell/Bios/Recovery
12M ./EFI/Dell/Bios
12M ./EFI/Dell
121K ./EFI/Manjaro
121K ./EFI/archLXQT_2
121K ./EFI/antergos_grub_vl0n
121K ./EFI/ArchLabs
37M ./EFI
37M .
[mak@myhost efi]
I think I won't have any problem with this thing in the future.
Once again thanks to all who helped solving this problem - in the process, I've also learned a lot.
|
|
|
07-17-2017, 10:54 AM
|
#21
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,843
|
Quote:
But wait, it was not only the grub directory but also "initramfs-linux-fallback.img initramfs-linux.img intel-ucode.img vmlinuz-linux" files were also there w
|
One of the disto's you tried probably put them there. There are a few distros that use the efi partition as /boot.
|
|
|
07-17-2017, 10:55 AM
|
#22
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
Glad you're sorted. You should know, though, that some systems require a copy of the linux kernel and image files on the ESP, especially after upgrading to a new version. I use rEFInd on a SecureBoot system, and this is the case (a Microsoft SurfacePro 3).
Cheers,
|
|
|
07-17-2017, 12:12 PM
|
#23
|
Member
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224
Rep:
|
The final usage of about 39% on a 100MiB EFI partition sounds about right. My desktop EFI (also 100M in size) is at 48%. The percentage difference is because I also use Fedora and CentOS. Fedora/CentOS place the Shim boot loader and the unicode pf2 fonts on the EFI partition. These take up about 8M. Looking at my Ubuntu directory, I can see the Shim bootloader and a custom grubx64.efi. A standard grubx64.efi from debian, gentoo, arch, LFS, efc., is only about 120K. A custom grubx64.efi from Fedora/CentOS and Ubuntu is about 1M.
If you wish to free up additional space, you might want to Google how to delete some of the foreign languages and backup data placed there by Microsoft and Dell.
As you can see, Linux does not take up much space on the EFI. You can easily install about two dozen Linuxes on a 100MiB EFI.
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 04:14 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|