I am using UEFI now for the first time. Everything is worḱing fine, but I do not understand
everything. Please allow me to ask:
1. In /etc/fstab there is my entry
UUID=5ABD-D634 /boot/efi vfat umask=0077 0 1
and df -h shows
/dev/nvme0n1p1 96M 32M 65M 33% /boot/efi
which is correct so far. But I also find the directory
/efi
which has the same content as /boot/efi. It shows, both are the same.
Questions:
1. Is the folder /efi correct and who is creating it?
2. If not, how can I get rid of it?
3. Which packages of debian must I install, to automate all settings of UEFI during grub-install
or update-grub. I read of grub-efi, grub-efi-amd64, grub-efi-amd64-bin and grub-efi-amd64-
signed. But which one I should install to get no pain. At the moment only grub-efi-amd64-bin
and grub-efi-amd64-signed and of course grub2-common are installed. Do I need more?
Hi folks,
I am using UEFI now for the first time. Everything is worḱing fine,
but I do not understand everything.
Please allow me to ask:
1. In /etc/fstab there is my entry
UUID=5ABD-D634 /boot/efi vfat umask=0077 0 1
and df -h shows
/dev/nvme0n1p1 96M 32M 65M 33% /boot/efi
which is correct so far.
But I also find the directory
/efi
which has the same content as /boot/efi. It shows, both are the same.
Questions:
1. Is the folder /efi correct and who is creating it?
2. If not, how can I get rid of it?
3. Which packages of debian must I install, to automate all settings
of UEFI during grub-install or update-grub. I read of grub-efi, grub-efi-amd64, grub-efi-amd64-bin and grub-efi-amd64- signed. But
which one I should install to get no pain. At the moment only grub-efi-amd64-bin and grub-efi-amd64-signed and of course
grub2-common are installed. Do I need more?
Thanks for enlightening me!
Best
Hans
So far, so good. However, please show us the complete command and
output by copy and paste. E.g.:
root@peregrine:~# grep efi /etc/fstab
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=91AE-3A24 /boot/efi vfat umask=0077 0 1 root@peregrine:~# df -h /boot/efi/
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p1 93M 5.9M 87M 7% /boot/efi
root@peregrine:~#
For example, the output I show confirms that the correct partition is
mounted on /boot/efi.
But I also find the directory
/efi
which has the same content as /boot/efi. It shows, both are the same.
"It shows" ??? What shows? How?
2. If not, how can I get rid of it?
That depends on what it is. If it is a regular directory, then "rm -r
/efi" should do it. However, if your EFI partition is also mounted on
/efi, or /efi is a symbolic or hard link to /boot/efi, that would be catastrophic.
Probably not. If you used a Debian 12 (bookworm) netinst installer, you should have everything you need. For most people, grub and efi are
"fire and forget" systems: the system is set up once and runs
automatically as needed.
See, what I mean? /dev/nvme0n1p1 is mounted twice! But df does not show it! That looks strange for me.
Lastly, there's that efibootmgr package. I installed it while battling
my past fails but never used it. I've seen it mentioned here at
Debian- User so someone here likely knows if and/or how it might help somehow.
"It shows" ??? What shows? How?
See:
root@protheus3:~# ls -la /boot/efi/
insgesamt 7
drwx------ 4 root root 1024 1. Jan 1970 .
drwxrwxrwx 5 root root 4096 19. Jan 20:28 ..
drwx------ 5 root root 1024 18. Jan 12:10 EFI
drwx------ 2 root root 1024 18. Jan 12:43 'System Volume Information'
root@protheus3:~# ls -la /efi/
insgesamt 7
drwx------ 4 root root 1024 1. Jan 1970 .
drwxr-xr-x 26 root root 4096 22. Jan 16:43 ..
drwx------ 5 root root 1024 18. Jan 12:10 EFI
drwx------ 2 root root 1024 18. Jan 12:43 'System Volume Information' root@protheus3:~#
The installation I did was a little bit tricky. As I needed to
transfer my old Debian from ssd to nvme and it is dual-boot, I first installed Windows, then installed debian. After ist, backuped /etc to somewhere. Then rsynced / , / home, /var, /usr and so on to the NVME.
After ist, rsynced the backupped /etc back, so that I got all the
devicenames back.
This worked well so far. Instead of this little issue.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 153:30:31 |
Calls: | 10,383 |
Files: | 14,054 |
Messages: | 6,417,840 |