
답변1
GRUB을 설치할지 묻는 메시지가 표시됩니다. 그렇지 않은 경우에는 안타깝습니다. 내가 사용한 모든 배포판에는 요청(debian, ubuntu, suse, manjaro), 비활성화하는 방법(제 생각에는 centos)이 있거나 수동으로 수행하도록 요구합니다(arch).
하지만 멈출 수 없다면 나중에 고칠 수 있습니다. 부트 로더는 나중에 Linux 시스템에서 쉽게 변경할 수 있습니다. (선택사항) 백업하세요. 그런 다음 설치를 완료하고 라이브 또는 복구 미디어에서 부팅한 다음 grub과 proc, sys 및 dev를 관리하는 rootfs 및 /boot를 rootfs에 마운트한 다음 rootfs로 chroot합니다. 그런 다음 grub을 다시 설치하십시오.
예를 들어, chroot를 설정하고 입력하려면 다음을 수행하십시오.
sudo -i
mkdir /mnt/root
mount /dev/sda2 /mnt/root # assuming this is rootfs
mount /dev/sda1 /mnt/root/boot # assuming this is /boot
for d in dev proc sys; do mount -o bind /$d /mnt/root/$d; done
chroot /mnt/root /bin/bash
그런 다음 다른 rootfs에서 grub을 설치하거나 다른 단계를 수행합니다.
grub-install /dev/sda
#optional... especially important if you have modified fstab
# choose one of these depending on distro
mkinitcpio # arch,manjaro
mkinitrd # suse,rh
update-initramfs -u #ubuntu,debian,mint probably
#optional... not required just for grub-install. Required if you have added new kernels or modified /etc/grub.d/ files.
# maybe this will run os-prober for you, saving the step of getting the 2nd OS in the grub menu
update-grub