# 掛載磁區 root@ajax-ThinkPad-X220:/# mount /dev/sda3 /mnt root@ajax-ThinkPad-X220:/# mount /dev/sda2 /mnt/boot/efi/ root@ajax-ThinkPad-X220:/# mount --bind /dev /mnt/dev root@ajax-ThinkPad-X220:/# mount --bind /dev/pts /mnt/dev/pts root@ajax-ThinkPad-X220:/# mount --bind /proc /mnt/proc root@ajax-ThinkPad-X220:/# mount --bind /sys /mnt/sys root@ajax-ThinkPad-X220:/# chroot /mnt ----------- # 進入 chroot,設定開機
root@ajax-ThinkPad-X220:/# grub-install /dev/sda Installing for x86_64-efi platform. grub-install: warning: EFI variables cannot be set on this system. grub-install: warning: You will have to complete the GRUB setup manually. Installation finished. No error reported. root@ajax-ThinkPad-X220:/# grub-install --recheck /dev/sda Installing for x86_64-efi platform. grub-install: warning: EFI variables cannot be set on this system. grub-install: warning: You will have to complete the GRUB setup manually. Installation finished. No error reported. root@ajax-ThinkPad-X220:/# update-grub Sourcing file `/etc/default/grub' Sourcing file `/etc/default/grub.d/init-select.cfg' Generating grub configuration file ... Found linux image: /boot/vmlinuz-5.15.0-48-generic Found initrd image: /boot/initrd.img-5.15.0-48-generic Found linux image: /boot/vmlinuz-5.15.0-25-generic Found initrd image: /boot/initrd.img-5.15.0-25-generic Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting Warning: os-prober will not be executed to detect other bootable partitions. Systems on them will not be added to the GRUB boot configuration. Check GRUB_DISABLE_OS_PROBER documentation entry. done
|
沒有留言:
張貼留言