Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| linux:boot [2019/05/22 09:21] – created lamboringo | linux:boot [2023/03/01 07:15] (current) – [pendejo MBR → cru4sys GPT] lamboringo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ==== pendejo MBR → cru4sys GPT ==== | ||
| + | |||
| + | mount cru4sys | ||
| + | mount /dev/sdc3 /mnt/cru4 | ||
| + | |||
| + | backup system | ||
| + | rsync --dry-run --delete --itemize-changes --exclude /etc/fstab --exclude /home --exclude /mnt --exclude /dev --exclude /proc --exclude /run --exclude /sys --archive --hard-links --acls --xattrs / /mnt/cru4/ | ||
| + | |||
| + | | ||
| + | edit ''/ | ||
| + | vi / | ||
| + | |||
| + | troubleshoot | ||
| + | efibootmgr | ||
| + | mount --bind /dev / | ||
| + | mount --bind /proc / | ||
| + | mount --bind /run / | ||
| + | mount --bind /sys / | ||
| + | mount --bind / | ||
| + | dnf reinstall grub2-efi shim | ||
| + | |||
| + | |||
| ==== grub ==== | ==== grub ==== | ||
| Line 8: | Line 30: | ||
| grub2-mkconfig | grub2-mkconfig | ||
| | | ||
| + | rebuild/ | ||
| + | drvpath=/ | ||
| + | mkdir /mnt/drv | ||
| + | mount / | ||
| + | mount / | ||
| + | | ||
| + | mount --bind /dev $drvpath/ | ||
| + | mount --bind /sys $drvpath/ | ||
| + | mount --bind /proc $drvpath/ | ||
| + | | ||
| + | chroot $drvpath | ||
| + | grub2-install /dev/sdX | ||
| + | # regenerate drivers | ||
| + | dracut --regenerate-all --force | ||
| + | | ||
| + | exit | ||
| + | | ||
| + | umount $drvpath/ | ||
| + | umount $drvpath/ | ||
| + | umount $drvpath | ||
| ==== plymouth ==== | ==== plymouth ==== | ||