Can I simply remove folders from fat32 EFI_SYSTEM?  [Solved]

When you run into problems installing MX Linux XFCE
Message
Author
jj 5117
Posts: 152
Joined: Sun Aug 07, 2016 1:13 pm

Can I simply remove folders from fat32 EFI_SYSTEM?

#1 Post by jj 5117 »

Hi,
I have folders in the MBR for OSes that are no longer installed.
I wanted to make sure that it is safe to simply delete those folders.

Code: Select all

demo@mx1:/media/EFI_SYSTEM
$ ll EFI
total 28K
drwxrwxr-x 2 demo users 4.0K Nov 13 00:22 BOOT
drwxrwxr-x 2 demo users 4.0K Nov 13 00:22 fedora
drwxrwxr-x 2 demo users 4.0K Apr 18 18:52 Garuda
drwxrwxr-x 4 demo users 4.0K Dec  8 13:11 Microsoft
drwxrwxr-x 2 demo users 4.0K Feb  6  2024 MX
drwxrwxr-x 7 demo users 4.0K Apr 19 21:59 refind
drwxrwxr-x 2 demo users 4.0K Jan 29 11:22 tools
demo@mx1:/media/EFI_SYSTEM
$ 

Code: Select all

Snapshot created on: 20241228_1235
System:
  Kernel: 6.14.2-1-liquorix-amd64 [6.14-3~mx23ahs+1] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0 parameters: audit=0
    intel_pstate=disable amd_pstate=disable BOOT_IMAGE=/vmlinuz-6.14.2-1-liquorix-amd64
    root=UUID=<filter> ro no
  Desktop: Xfce v: 4.20.0 tk: Gtk v: 3.24.38 info: xfce4-panel wm: xfwm v: 4.20.0 vt: 7 dm: SDDM
    Distro: MX-23.6_ahs_x64 Libretto October 15 2023 base: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: ProArt X670E-CREATOR WIFI v: Rev 1.xx serial: <superuser required>
    UEFI: American Megatrends v: 1904 date: 01/29/2024
CPU:
  Info: model: AMD Ryzen 9 7950X3D bits: 64 type: MT MCP MCM arch: Zen 4 gen: 5 level: v4
    note: check built: 2022+ process: TSMC n5 (5nm) family: 0x19 (25) model-id: 0x61 (97) stepping: 2
    microcode: 0xA601206
  Topology: cpus: 1x cores: 16 tpc: 2 threads: 32 dies: 2 smt: enabled cache: L1: 1024 KiB
    desc: d-16x32 KiB; i-16x32 KiB L2: 16 MiB desc: 16x1024 KiB L3: 128 MiB desc: 1x32 MiB, 1x96 MiB
  Speed (MHz): avg: 3025 high: 4200 min/max: 3000/4200 boost: enabled scaling:
    driver: acpi-cpufreq governor: ondemand cores: 1: 2994 2: 2994 3: 2994 4: 3000 5: 2994 6: 3000
    7: 3000 8: 3000 9: 2821 10: 3000 11: 3000 12: 3000 13: 2834 14: 3000 15: 3000 16: 3000 17: 3000
    18: 3000 19: 3000 20: 3000 21: 3000 22: 3000 23: 3000 24: 3000 25: 3000 26: 3000 27: 3000
    28: 3000 29: 3000 30: 3000 31: 4200 32: 3000 bogomips: 268295
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: ghostwrite status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow mitigation: Safe RET
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Enhanced / Automatic IBRS; IBPB: conditional; STIBP: always-on;
    RSB filling; PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Navi 32 [Radeon RX 7700 XT / 7800 XT] vendor: Sapphire driver: amdgpu v: kernel
    pcie: gen: 4 speed: 16 GT/s lanes: 16 ports: active: DP-2 empty: DP-1, HDMI-A-1, HDMI-A-2,
    Writeback-1 bus-ID: 03:00.0 chip-ID: 1002:747e class-ID: 0300
  Device-2: AMD Raphael vendor: ASUSTeK driver: amdgpu v: kernel arch: RDNA-2 code: Navi-2x
    process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4 speed: 16 GT/s lanes: 16 ports: active: none
    empty: DP-3, DP-4, HDMI-A-3, Writeback-2 bus-ID: 6e:00.0 chip-ID: 1002:164e class-ID: 0300
    temp: 38.0 C
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.20.0 driver: X: loaded: amdgpu
    unloaded: fbdev,modesetting,radeon,vesa dri: radeonsi gpu: amdgpu display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 678x382mm (26.69x15.04") s-diag: 778mm (30.64")
  Monitor-1: DP-2 mapped: DisplayPort-1 model: Dell S3220DGF serial: <filter> built: 2020
    res: 2560x1440 dpi: 93 gamma: 1.2 size: 697x392mm (27.44x15.43") diag: 806mm (31.7") ratio: 16:9
    modes: max: 2560x1440 min: 720x400
  API: OpenGL v: 4.6 Mesa 24.2.8-1mx23ahs renderer: AMD Radeon RX 7800 XT (radeonsi navi32 LLVM
    15.0.6 DRM 3.61 6.14.2-1-liquorix-amd64) direct-render: Yes
Audio:
  Device-1: AMD Navi 31 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s
    lanes: 16 bus-ID: 03:00.1 chip-ID: 1002:ab30 class-ID: 0403
  Device-2: AMD Rembrandt Radeon High Definition Audio vendor: ASUSTeK driver: snd_hda_intel
    v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 6e:00.1 chip-ID: 1002:1640 class-ID: 0403
  Device-3: AMD Family 17h/19h/1ah HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel pcie:
    gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 6e:00.6 chip-ID: 1022:15e3 class-ID: 0403
  API: ALSA v: k6.14.2-1-liquorix-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Ethernet I225-V vendor: ASUSTeK driver: igc v: kernel pcie: gen: 2 speed: 5 GT/s
    lanes: 1 port: N/A bus-ID: 0a:00.0 chip-ID: 8086:15f3 class-ID: 0200
  IF: eth1 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Aquantia AQtion AQC113CS NBase-T/IEEE 802.3an Ethernet [Antigua 10G] vendor: ASUSTeK
    ProArt X570-CREATOR WIFI driver: atlantic v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 1
    link-max: lanes: 2 port: N/A bus-ID: 0b:00.0 chip-ID: 1d6a:94c0 class-ID: 0200
  IF: eth0 state: down mac: <filter>
  IF-ID-1: nordtun state: unknown speed: 10000 Mbps duplex: full mac: N/A
Drives:
  Local Storage: total: 38.33 TiB used: 1.15 TiB (3.0%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital model: WD BLACK SN770 2TB
    size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD
    serial: <filter> rev: 731100WD temp: 33.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:3 vendor: TeamGroup model: TM8FPW004T size: 3.73 TiB
    block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: SN12717 temp: 40.9 C scheme: GPT
  ID-3: /dev/sda maj-min: 8:0 vendor: TeamGroup model: T-FORCE 2TB size: 1.86 TiB block-size:
    physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 0A0 scheme: MBR
  ID-4: /dev/sdb maj-min: 8:16 vendor: Western Digital model: WD101KFBX-68R56N0 size: 9.1 TiB
    block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter>
    rev: 0A03 scheme: GPT
  ID-5: /dev/sdc maj-min: 8:32 vendor: Seagate model: ST20000NM007D-3DJ103 size: 18.19 TiB
    block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter>
    rev: SN01 scheme: GPT
  ID-6: /dev/sdd maj-min: 8:48 type: USB vendor: Samsung model: PSSD T7 Shield size: 3.64 TiB
    block-size: physical: 512 B logical: 512 B type: SSD serial: <filter> scheme: GPT
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
  ID-1: / raw-size: 249.98 GiB size: 245 GiB (98.01%) used: 71.87 GiB (29.3%) fs: ext4
    dev: /dev/dm-0 maj-min: 253:0 mapped: luks-<filter>
  ID-2: /boot raw-size: 1024 MiB size: 973.4 MiB (95.06%) used: 546.4 MiB (56.1%) fs: ext4
    dev: /dev/nvme1n1p2 maj-min: 259:5
  ID-3: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%) used: 46 MiB (9.0%) fs: vfat
    dev: /dev/nvme1n1p1 maj-min: 259:4
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 49.0 C mobo: 31.0 C
  Fan Speeds (RPM): N/A
  GPU: device: amdgpu temp: 49.0 C mem: 66.0 C fan: 47 watts: 22.00 device: amdgpu temp: 39.0 C
Repos:
  Packages: pm: dpkg pkgs: 3014 libs: 1572 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0 pm: flatpak pkgs: 0
  No active apt repos in: /etc/apt/sources.list
  No active apt repos in: /etc/apt/sources.list.d/amdgpu-proprietary.list
  Active apt repos in: /etc/apt/sources.list.d/amdgpu.list
    1: deb https://repo.radeon.com/amdgpu/5.7.2/ubuntu focal main
  Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list
    1: deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://la.mxrepo.com/mx/repo/ bookworm main non-free
    2: deb http://la.mxrepo.com/mx/repo/ bookworm ahs
  Active apt repos in: /etc/apt/sources.list.d/nordvpn.list
    1: deb https://repo.nordvpn.com/deb/nordvpn/debian stable main
  Active apt repos in: /etc/apt/sources.list.d/rocm.list
    1: deb [arch=amd64] https://repo.radeon.com/rocm/apt/5.7.2 focal main
  Active apt repos in: /etc/apt/sources.list.d/extrepo_librewolf.sources
    1: deb [arch=amd64 arm64] https://repo.librewolf.net librewolf main
Info:
  Processes: 637 Uptime: 26m wakeups: 1 Memory: 125.01 GiB used: 3.27 GiB (2.6%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI
Thank You!
Thanks for being there!

User avatar
RedGreen925
Posts: 23
Joined: Sat Feb 01, 2025 3:21 pm

Re: Can I simply remove folders from fat32 EFI_SYSTEM?  [Solved]

#2 Post by RedGreen925 »

jj 5117 wrote: Sun Apr 20, 2025 1:57 am Hi,
I have folders in the MBR for OSes that are no longer installed.
I wanted to make sure that it is safe to simply delete those folders.
Thank You!
Yes it is safe to delete the no longer needed files in your /boot/efi/EFI directory make sure you leave the BOOT directory there if you are thinking this is one you can get rid of. It contains the default fallback boot loader copy and without it on my system drive nothing will show up as boot able on a drive in the one time boot menu when I clone the drive if not original machine installed on. On the machine where installed the distributions that use this broken method will use the entry in the EFI firmware they put there, trying to boot on another machine with cloned drive without the BOOT directory with its boot loader copy present not a hope in hell it will find it..

jj 5117
Posts: 152
Joined: Sun Aug 07, 2016 1:13 pm

Re: Can I simply remove folders from fat32 EFI_SYSTEM?

#3 Post by jj 5117 »

@RedGreen925

Killer. Thank you.
Thanks for being there!

User avatar
RedGreen925
Posts: 23
Joined: Sat Feb 01, 2025 3:21 pm

Re: Can I simply remove folders from fat32 EFI_SYSTEM?

#4 Post by RedGreen925 »

jj 5117 wrote: Sun Apr 20, 2025 2:42 pm @RedGreen925

Killer. Thank you.
You are welcome.

Post Reply

Return to “Installation”