doc:appunti:linux:tux:grub
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:linux:tux:grub [2025/09/12 17:17] – [GRUB su sistema EFI con due dischi RAID1] niccolo | doc:appunti:linux:tux:grub [2026/07/17 17:32] (current) – [Errore grub-install: disk `mduuid/...' not found.] niccolo | ||
|---|---|---|---|
| Line 284: | Line 284: | ||
| ls | ls | ||
| set root=(md/4) | set root=(md/4) | ||
| + | ls (md/4)/ | ||
| linux /vmlinuz ro root=/ | linux /vmlinuz ro root=/ | ||
| initrd /initrd.img | initrd /initrd.img | ||
| Line 345: | Line 346: | ||
| </ | </ | ||
| - | Con **efibootmgr** si ispezione lo stato corrente del boot manager EFI: | + | Con **efibootmgr |
| < | < | ||
| - | efibootmgr | + | efibootmgr |
| BootCurrent: | BootCurrent: | ||
| Timeout: 0 seconds | Timeout: 0 seconds | ||
| BootOrder: 0002,0004 | BootOrder: 0002,0004 | ||
| - | Boot0002* debian | + | Boot0002* debian |
| Boot0004* Windows Boot Manager | Boot0004* Windows Boot Manager | ||
| </ | </ | ||
| Line 435: | Line 436: | ||
| La prima voce è quella predefinita, | La prima voce è quella predefinita, | ||
| + | |||
| + | ===== Errore grub-install: | ||
| + | |||
| + | In qualche particolare condizione non ben indentificata, | ||
| + | |||
| + | < | ||
| + | grub-install: | ||
| + | </ | ||
| + | |||
| + | L' | ||
| + | |||
| + | * Esecuzione di grub-install in ambiente chroot. | ||
| + | * Sistema chroot Debian 13 Trixie. | ||
| + | * Partizione root su disco RAID1 in modalità degradta. | ||
| + | * Boot legacy, ma ambiente chroot UEFI. | ||
| + | * RAID metadata versione 1.2. | ||
| + | |||
| + | L' | ||
| + | |||
| + | < | ||
| + | grub-probe -t device / | ||
| + | /dev/md0 | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | grub-probe -t drive / | ||
| + | (mduuid/ | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | mdadm --detail /dev/md0 | ||
| + | ... | ||
| + | | ||
| + | ... | ||
| + | UUID : c0fb45cc: | ||
| + | ... | ||
| + | </ | ||
| + | |||
| + | Come si vede grub-install identifica correttamente il device **/ | ||
| + | |||
| + | Un workaround semba che possa essere quello di fornire informazioni sbagliate nella device.map di GRUB: | ||
| + | |||
| + | < | ||
| + | echo ' | ||
| + | grub-install /dev/sda | ||
| + | </ | ||
| + | |||
| + | In questo modo **grub-install** produce comunque dei messaggi di warning, ma completa la sua installazione. | ||
doc/appunti/linux/tux/grub.1757690273.txt.gz · Last modified: by niccolo
