LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 07-16-2017, 03:41 PM   #16
jozmak
Member
 
Registered: Aug 2005
Posts: 81

Original Poster
Rep: Reputation: 1

Quote:
Originally Posted by plasmonics View Post
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]$
 
Old 07-17-2017, 06:08 AM   #17
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Rep: Reputation: 69
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
 
Old 07-17-2017, 06:37 AM   #18
jozmak
Member
 
Registered: Aug 2005
Posts: 81

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by plasmonics View Post
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?
 
Old 07-17-2017, 07:48 AM   #19
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 5,516

Rep: Reputation: 1079Reputation: 1079Reputation: 1079Reputation: 1079Reputation: 1079Reputation: 1079Reputation: 1079Reputation: 1079
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.
 
Old 07-17-2017, 10:49 AM   #20
jozmak
Member
 
Registered: Aug 2005
Posts: 81

Original Poster
Rep: Reputation: 1
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.
 
Old 07-17-2017, 10:54 AM   #21
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 5,516

Rep: Reputation: 1079Reputation: 1079Reputation: 1079Reputation: 1079Reputation: 1079Reputation: 1079Reputation: 1079Reputation: 1079
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.
 
Old 07-17-2017, 10:55 AM   #22
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch
Posts: 1,253

Rep: Reputation: 467Reputation: 467Reputation: 467Reputation: 467Reputation: 467
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,
 
Old 07-17-2017, 12:12 PM   #23
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Rep: Reputation: 69
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.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
resize efi question [/boot/efi] with boot flag gparted mtdew3q Fedora 4 03-19-2017 10:02 PM
[SOLVED] Can't find /boot/efi/EFI/Slackware/vmlinuz kernel configuration ironQiu Slackware 4 02-09-2015 06:21 AM
boot efi disk with without a non-efi bios pc... masavini Programming 1 11-12-2013 08:48 PM
EFI main GPT overwritten everytime (when windows 7 runs) - structure of EFI masuch Linux - Newbie 2 07-20-2012 02:49 PM
how to sort output at latest entries without disturbing the previous entries record nabmufti Programming 4 02-11-2008 11:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration