일반적인 문제
- Windows 설치 후 GRUB를 덮어쓰고 Windows로 직접 부팅합니다.
- Ubuntu 설치 후 Windows 부팅 항목이 사라짐
- GRUB 메뉴가 표시되지 않거나 “오류: 해당 파티션이 없습니다”라고 보고합니다.
- 업데이트 후 부팅 순서 변경
라이브 USB에서 GRUB 복구
준비
- Ubuntu 26.04 Live USB에서 부팅
- 라이브 환경으로 들어가려면 “Try Ubuntu”를 선택하십시오.
파티션 레이아웃 확인
# List all partitions
sudo fdisk -l
# Confirm Ubuntu root partition and EFI partition
# EFI partition is typically FAT32, around 100-512MB
# Ubuntu root partition is typically ext4
lsblk -f마운트 및 chroot
# Mount Ubuntu root partition (replace sdXn with actual partition)
sudo mount /dev/sdX2 /mnt
# Mount EFI partition
sudo mount /dev/sdX1 /mnt/boot/efi
# Bind necessary virtual filesystems
sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo mount --bind /run /mnt/run
# Enter chroot environment
sudo chroot /mntGRUB 재설치
# UEFI systems
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ubuntu
# Update GRUB configuration
update-grub
# Exit chroot
exit
sudo umount -R /mnt
sudo reboot부팅 복구 도구 사용
더 간단한 그래픽 복구 방법:
# In the Live USB environment
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt update
sudo apt install boot-repair
# Launch boot-repair
boot-repair자동 복구를 원하시면 “권장 복구”를 클릭하세요.
EFI 부팅 항목 수동 관리
efibootmgr 사용
# View all boot entries
efibootmgr -v
# Adjust boot order (ubuntu first)
sudo efibootmgr -o 0001,0000,0002
# Delete a boot entry
sudo efibootmgr -b 0003 -B
# Add a new boot entry
sudo efibootmgr -c -d /dev/sda -p 1 -L "Ubuntu" -l "\EFI\ubuntu\shimx64.efi"일반적인 부팅 진입 경로
| 시스템 | EFI 경로 |
|---|---|
| 우분투 | \EFI\ubuntu\shimx64.efi 또는 \EFI\ubuntu\grubx64.efi |
| 윈도우 | \EFI\Microsoft\Boot\bootmgfw.efi |
GRUB 구성
GRUB가 Windows를 감지하도록 만들기
# Ensure os-prober is installed
sudo apt install os-prober
# Enable os-prober (may be disabled by default in Ubuntu 26.04)
sudo nano /etc/default/grub다음 줄이 포함되어 있는지 확인하세요.
GRUB_DISABLE_OS_PROBER=falseGRUB 업데이트:
sudo update-grub출력에는 “Windows 부팅 관리자 발견”과 같은 내용이 표시되어야 합니다.
GRUB 시간 초과 조정
sudo nano /etc/default/grubGRUB_TIMEOUT=10 # Menu wait time in seconds
GRUB_TIMEOUT_STYLE=menu # Always show the menusudo update-grub기본 부팅 항목 설정
# View menu entry numbers
grep -E "menuentry|submenu" /boot/grub/grub.cfg | head -20
# Set default entry (0 is the first entry)
sudo nano /etc/default/grub
# GRUB_DEFAULT=0
# Or use a name:
# GRUB_DEFAULT="Windows Boot Manager (on /dev/sda1)"
# Remember last selection
# GRUB_DEFAULT=saved
# GRUB_SAVEDEFAULT=true
sudo update-grubWindows 업데이트가 GRUB를 덮어씁니다
주요 Windows 업데이트로 인해 EFI 부팅 순서가 다시 작성될 수 있습니다. 수정 방법:
- BIOS/UEFI 설정을 입력하고 Ubuntu/GRUB를 첫 번째 부팅 항목으로 설정합니다.
- 또는 위 단계에 따라 Live USB를 사용하여 GRUB를 다시 설치하세요.
시간 동기화 문제
이중 부팅 설정에서 Windows와 Ubuntu는 서로 다른 시간을 표시할 수 있습니다.
# Make Ubuntu use local time (consistent with Windows)
timedatectl set-local-rtc 1
# Or make Windows use UTC (recommended)
# In Windows, run:
# reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /t REG_DWORD /d 1보안 부팅
보안 부팅이 활성화된 경우 GRUB가 서명된 부트로더를 사용하는지 확인하세요.
# Check Secure Boot status
mokutil --sb-state
# Ubuntu uses shimx64.efi by default to handle Secure Boot
# Confirm shim is installed
dpkg -l | grep shim-signed