are the files inside these 2 directories mirror images of each other?

how are they related? for example the below command that i execute:

sudo cp -a initramfs-4.18.16-300.fc29.x86_64.img /boot/EFI/fedora

is it copying the file to the EFI/ESP partition(sda1) or to the root/system file partition?


  • 1
    Suggested edit: do you mean /boot/efi/EFI/fedora ? (In this case, the answer is the command should copy a file to the ESP. Because the ESP should be mounted at /boot/efi.). – sourcejedi Jan 23 '19 at 14:53
  • 2
    Systems vary. most likely /boot/efi points to your EFI partition. But you can type df /boot/EFI/fedora to tell you which partition is mounted there. Alternatively just mount will list all mount points. – Philip Couling Jan 23 '19 at 15:09
  • 1
    or findmnt instead of mount - this a newer command, and tries to make the output easier to read – sourcejedi Jan 23 '19 at 15:42
  • so i used this command: sudo cp -a initramfs-4.18.16-300.fc29.x86_64.img /boot/EFI/fedora to copy the file to my ESP/EFI partition. a few days later(i'm not exactly sure at which point in time), the same file appears in the boot directory of my archlinux root partition. why is this so? thanks – lenovolobo Jan 28 '19 at 12:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.