부트로더를 LILO에서 GRUB 로 바꾸고 싶습니다.

elecguy의 이미지

한국데비안 사용자 모임에 질문을 했는데 답변이 없어서리..
삽질이 하면 되지만 하드디스크 내용을 날려먹으면..
생각하면 끔찍합니다.

안녕하세요.
데비안 사지 사용자입니다.
부트로더를 lilo 에서 grub 로 바꿀려고 하는데 특별히 주의해야 될 사항 있는지 궁금합니다.
그냥 grub 를 설치하고 grub.conf 만 잘 편집해주면 되는 건지요??
아래는 현재의 lilo.conf 내용입니다.
그럼 수고하세요.

lba32
boot=/dev/hda
root=/dev/hda7
install=/boot/boot-menu.b
map=/boot/map
delay=20
prompt
timeout=150
vga=normal
default=linux-2.6.8-2

image=/boot/vmlinuz-2.6.8-2-686
	label=linux-2.6.8-2
	initrd=/boot/initrd.img-2.6.8-2-686

image=/boot/vmlinuz-2.4.28
	label=linux-2.4.28
codebank의 이미지

grub을 설치하고 grub-install을 해준후에 /boot/grub/grub.conf 파일을 열고
(grub.conf.sample을 grub.conf에 복사) 보시면 거의 비슷하다는 것을 알 수
있습니다. 주의 하실점은 grub에서는 hd0부터 시작한다는 점이죠.(hd0는 /dev/hda)

default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.10
        root (hd0,0)
        kernel /kernel-2.6.10-gentoo-r6 root=/dev/hda3 vga=0x317 splash=verbose
        initrd /initrd-2.6.10-gentoo-r6

title=Gentoo Linux 2.6.7
        root (hd0,0)
        kernel /kernel-2.6.7-mm6 root=/dev/hda3 vga=0x317

title Red Hat Linux (2.4.20-8)
        root (hd0,0)
        kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
        initrd /initrd-2.4.20-8.img

제가 사용하는 conf파일입니다.
image는 kernel에 넣고 initrd는 initrd에 넣으면 되죠.
저부분만 적용시키면
title=linux-2.6.8-2
    root (hd0,0)
    kernel /vmlinuz-2.6.8-2-686
    initrd /initrd.img-2.6.8-2-686
title=linux-2.4.28
    root (hd0,0)
    kernel /vmlinuz-2.4.28

이렇게 되겠네요.
root (hd0,0)는 /boot의 파티션을 나타내며 hd0,0는 /dev/hda1의 첫번째
파티션이라는 소리입니다.

------------------------------
좋은 하루 되세요.