[리눅스] 데비안 grub-pc 설치 후 MS-Windows 엔트리 추가 방법

2023. 4. 5. 23:56리눅스 실제 사용 팁

작성일 : 2009. 9. 8. 22:30


패키지명 이력)

grub 두 번째 버전이 나오면서 옛 버전은 grub-legacy 로 패키지명이 바뀌었고

기존 grub 패키지명은 grub-pc 를 가리키게 되었다.

 

옛 버전과의 호환여부)

grub 2 이전 버전은 /boot/grub/menu.lst 에 주석형태로 유저가 OS 엔트리를 직접 입력할 수 있었음.

grub 2 는 /boot/grub/grub.cfg 에 부팅정보가 기록되며 작성형식이 버전 1과 문법적으로 다르며 비호환이다. 그러나 패키지 설치 시 리눅스 커널정보를 알아서 추가하기 때문에 리눅스 커널에 한해서는 걱정안해도 됨.

 

문제점)

grub-pc 만 설치 시 타 OS 정보를 검색하지 못해서 멀티부팅을 할 수 없다.

 

해결방법)

os-prober 패키지를 설치하고 update-grub 를 실행하면 됨.

 

참고)

$ dpkg -s os-prober
Package: os-prober
Status: install ok installed
Priority: extra
Section: utils
Installed-Size: 180
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Architecture: amd64
Version: 1.31
Depends: libc6 (>= 2.4)
Description: utility to detect other OSes on a set of drives
 This package detects other OSes available on a system and outputs the
 results in a generic machine-readable format.