다른 사람들은 모르겠지만,

난 리눅스 커널 업데이트 이후 해야 할 일이 있다.

바로 grub 설정 수정이다.

난 한 컴퓨터에 윈도우 XP와 리눅스를 동시에 쓰고

부모님도 내 컴퓨터를 쓰기에

grub 실행시 기본 OS를 윈도우로 맞추어야 한다.

그래서 수정을 해야 하는 것이다.


  • 터미널을 열어 su 명령어로 root 권한을 갖는다.
(갖는다고 해야 할지 로그인 해야 한다고 해야 할지 정확히는 모름.)

su

  •   다음 명령어로 grub.conf파일을 본다.
cat /boot/grub/grub.conf

그럼 다음과 같은 글이 나올 것이다.

------------------------------------------------------------------

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd2,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd2,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.12-1.1381_FC3)
     root (hd2,0)
     kernel /vmlinuz-2.6.12-1.1381_FC3 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
     initrd /initrd-2.6.12-1.1381_FC3.img
title Fedora Core (2.6.9-1.667)
     root (hd2,0)
     kernel /vmlinuz-2.6.9-1.667 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
     initrd /initrd-2.6.9-1.667.img
title Other
     rootnoverify (hd0,0)
     chainloader +1
------------------------------------------------------------------

여기서 default는 아무런 키를 입력하지 않았을 때 작동하는 OS 번호(?)이다.

0부터 시작한다.

나는 윈도우(즉, Other)를 하고 싶으므로 0을 2로 바꾸어야 한다.

그 외에 다른 내용이 더 있으나

나중에 grub에 대해서 글 적을 때 적어야겠다.

아무튼 난 다음 명령어를 써서 수정하였다.


vi /boot/grub/grub.conf

바꾼 내용은 다음과 같다.

------------------------------------------------------------------
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd2,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/hda
default=2
timeout=5
splashimage=(hd2,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.12-1.1381_FC3)
     root (hd2,0)
     kernel /vmlinuz-2.6.12-1.1381_FC3 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
     initrd /initrd-2.6.12-1.1381_FC3.img
title Fedora Core (2.6.9-1.667)
     root (hd2,0)
     kernel /vmlinuz-2.6.9-1.667 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
     initrd /initrd-2.6.9-1.667.img
title Windows XP
     rootnoverify (hd0,0)
     chainloader +1
------------------------------------------------------------------

이제 윈도우 XP라는 이름을 가지고 기본 OS로 잡을 것이다.^^
크리에이티브 커먼즈 라이선스
Creative Commons License

글에 잘못된 점, 다른 점, 부족한 점이 있다면 지적해주세요.
댓글, 트랙백, 메일 모두 고맙습니다.

트랙백 주소 :: http://nosyu.pe.kr/trackback/23

댓글을 달아 주세요

  1. NoSyu 2006/07/16 11:09  댓글주소  수정/삭제  댓글쓰기

    제목을 'grub.conf 수정'식으로 했어야 하는데,
    그러지 못하여 나도 잘 찾기 힘든 글이 되었다.
    그렇기에 오히려 기억이 더 잘된 글이기도 하다.

[로그인][오픈아이디란?]