Grub - Bootloader is not properly installed

Nessuna risposta
Ritratto di Chryses
Chryses
(Newbie)
Offline
Newbie
Iscritto: 12/11/2018
Messaggi: 1

Salve a tutti.

Sto utilizzando debian su un nas qnap:
Linux Qnap 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u6 (2018-10-08) x86_64

Tutto ok a parte qualche intoppo durante la fase d'installazione, che ho risolto.

Il problema o potenziale problema, è comparso oggi. C'erano degli aggiornamenti da installare e durante l'aggiornamento dei vari pacchetti mi sono accorto della presenza di un errore:

Setting up grub-efi-amd64 (2.02~beta3-5+deb9u1) ...
Installing for x86_64-efi platform.
File descriptor 3 (pipe:[458909]) leaked on vgs invocation. Parent PID 18014: grub-install
File descriptor 5 (/dev/sdd1) leaked on vgs invocation. Parent PID 18014: grub-install
File descriptor 3 (pipe:[458909]) leaked on vgs invocation. Parent PID 18014: grub-install
File descriptor 5 (/dev/sdd1) leaked on vgs invocation. Parent PID 18014: grub-install
Could not prepare Boot variable: No space left on device
grub-install: error: efibootmgr failed to register the boot entry: Input/output error.
Failed: grub-install --target=x86_64-efi
WARNING: Bootloader is not properly installed, system may not be bootable

Io ho provato a rifare qualche comando cercando di capire che cosa sta succedendo, ma ogni volta l'errore c'è sempre:

lsblk
NAME          MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sdb             8:16   0   3.7T  0 disk
└─sdb1          8:17   0   3.7T  0 part
  └─md0         9:0    0   3.7T  0 raid1
    ├─vg0-lv0 253:0    0   2.9G  0 lvm   [SWAP]
    ├─vg0-lv1 253:1    0   9.3G  0 lvm   /
    ├─vg0-lv2 253:2    0    28G  0 lvm   /home
    └─vg0-lv3 253:3    0   3.6T  0 lvm   /data
sdc             8:32   0   3.7T  0 disk
└─sdc1          8:33   0   3.7T  0 part
  └─md0         9:0    0   3.7T  0 raid1
    ├─vg0-lv0 253:0    0   2.9G  0 lvm   [SWAP]
    ├─vg0-lv1 253:1    0   9.3G  0 lvm   /
    ├─vg0-lv2 253:2    0    28G  0 lvm   /home
    └─vg0-lv3 253:3    0   3.6T  0 lvm   /data
sdd             8:48   1   492M  0 disk
└─sdd1          8:49   1   490M  0 part  /boot/efi
sde             8:64   0 931.5G  0 disk
└─sde1          8:65   0 931.5G  0 part  /data/Travel

cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/vg0-lv1 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sdc1 during installation
UUID=45D0-9CB5  /boot/efi       vfat    umask=0077      0       1
/dev/mapper/vg0-lv3 /data           ext4    defaults    0       2
/dev/mapper/vg0-lv2 /home           ext4    defaults        0       2
/dev/mapper/vg0-lv0 none            swap    sw              0       0
UUID=F00473F20473BA64 /data/Travel   ntfs-3g        permissions,auto,nofail    0  0
#UUID=04AAF7E3AAF7CF64 /data/Dischi-Usb   ntfs-3g        permissions,auto,nofail    0  0

In particolare se lancio:
grub-install -v --target=x86_64-efi --recheck /dev/sdd
Ottengo:

...
grub-install: info: adding a relocation entry for 0xce60.
grub-install: info: adding a relocation entry for 0xce68.
grub-install: info: adding 212 padding fixup entries.
grub-install: info: writing 1048 bytes of a fixup block starting at 0xc000.
grub-install: info: reading /usr/lib/grub/x86_64-efi/fshelp.mod.
grub-install: info: reading /usr/lib/grub/x86_64-efi/ext2.mod.
grub-install: info: reading /usr/lib/grub/x86_64-efi/diskfilter.mod.
grub-install: info: reading /usr/lib/grub/x86_64-efi/lvm.mod.
grub-install: info: reading /usr/lib/grub/x86_64-efi/part_gpt.mod.
grub-install: info: reading /usr/lib/grub/x86_64-efi/mdraid1x.mod.
grub-install: info: kernel_img=0x560e72eb6120, kernel_size=0x18a00.
grub-install: info: the core size is 0x23298.
grub-install: info: writing 0x24600 bytes.
grub-install: info: copying `/boot/grub/x86_64-efi/core.efi' -> `/boot/efi/EFI/debian/grubx64.efi'.
grub-install: info: Registering with EFI: distributor = `debian', path = `\EFI\debian\grubx64.efi', ESP at hostdisk//dev/sdd,gpt1.
grub-install: info: executing efibootmgr --version </dev/null >/dev/null.
grub-install: info: executing modprobe -q efivars.
grub-install: info: executing efibootmgr -c -d /dev/sdd -p 1 -w -L debian -l \EFI\debian\grubx64.efi.
Could not prepare Boot variable: No space left on device
grub-install: error: efibootmgr failed to register the boot entry: Input/output error.

Ovviamente non mi attento a far ripartire il nas, ho paura che non riparta e di dover intervenire con un live cd per fixare il tutto.

Dove sbaglio?

Grazie e buona giornata a tutti