This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux:filesystems:boot [2013/08/03 14:21] tkilla |
linux:filesystems:boot [2022/11/06 21:39] (current) tkilla |
||
---|---|---|---|
Line 122: | Line 122: | ||
grub-install /dev/sdX | grub-install /dev/sdX | ||
+ | |||
+ | ===== Bugs ===== | ||
+ | |||
+ | Inside a chroot, grub complains | ||
+ | # update-grub | ||
+ | Generating grub configuration file ... | ||
+ | WARNING: Device /dev/ram0 not initialized in udev database even after waiting 10000000 microseconds. | ||
+ | ... | ||
+ | |||
+ | Fix: | ||
+ | |||
+ | Outside chroot /debian/: | ||
+ | |||
+ | mkdir / | ||
+ | mount --bind /run/udev / | ||
+ | mount --bind /run/udev / | ||
+ | |||
+ | |||
+ | ===== Crypto Bugs ===== | ||
+ | |||
+ | |||
+ | Grub complains root device couldn' | ||
+ | |||
+ | Fix: | ||
+ | - set | ||
+ | GRUB_ENABLE_CRYPTODISK=y | ||
+ | |||
+ | apt install cryptsetup-initramfs lvm2 | ||
+ | | ||
+ | |||
+ | - if it is a brtfs, set in / | ||
+ | btrfs | ||
+ | |||
+ | |||
+ | Commands to execute in chroot to reinstall grub: | ||
+ | |||
+ | update-initramfs -c -k all | ||
+ | grub-install /dev/sdX | ||
+ | update-grub | ||
+ | |||
+ | |||
+ | If update-grub echos: " | ||
+ | |||
+ | mount -o " | ||
+ | |||
+ | is required to mount the @ subvol! | ||