# 초보인데 멀티부팅 문제에 대해서 질문드립니다

**URL:** <https://discourse.ubuntu-kr.org/t/topic/13316>\
**Category:** 자유 게시판\
**Tags:** 설치부팅\
**Created:** [1월 7, 2011, 2:49오후 UTC](https://discourse.ubuntu-kr.org/t/topic/13316 "2011-01-07T14:49:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![distangel](https://discourse.ubuntu-kr.org/letter_avatar_proxy/v4/letter/d/b5ac83/32.png) [@distangel](https://discourse.ubuntu-kr.org/u/distangel)\
**Post date:** [1월 7, 2011, 2:49오후 UTC](https://discourse.ubuntu-kr.org/t/topic/13316/1 "2011-01-07T14:49:46Z")

</div>

노트북 ASUS 1201T를 사용하고 있습니다.

원래 하드에 hda1 에는 xp , hda3(?)인가에 쿠분투를 설치하여 사용하고있었는데

리눅스를 삭제 하게 되었습니다.

Grub가 실행이 안되서인지 로딩이 안되어서

Hiren’s 부팅디스크 로 MBRfix 인가 하면 된다길래 이것 저것 건드렸지만 부팅이 안되길래..

USB를 통하여 다시 우분투를 설치하고 부팅하니 Grub도 뜨고 윈도우xp도 목록에 있길래 되는 줄알았더니

부팅하니

a disk read error occurred

라고 뜨고 안됩니다..ㅠㅠ

어떻게 해야 되나요…?

혹시 이게 중요한가해서 붙입니다..

grub.cfg 내용입니다..ㅠㅠ

### BEGIN /etc/grub.d/00\_header

if [-s $prefix/grubenv]; then  
load\_env  
fi  
set default="0"  
if [${prev\_saved\_entry}]; then  
set saved\_entry=${prev\_saved\_entry}  
save\_env saved\_entry  
set prev\_saved\_entry=  
save\_env prev\_saved\_entry  
set boot\_once=true  
fi

function savedefault {  
if [-z ${boot\_once}]; then  
saved\_entry=${chosen}  
save\_env saved\_entry  
fi  
}

function recordfail {  
set recordfail=1  
if [-n ${have\_grubenv}]; then if [-z ${boot\_once}]; then save\_env recordfail; fi; fi  
}  
insmod ext2  
set root=‘(hd0,5)’  
search --no-floppy --fs-uuid --set c8fefecf-dd65-40da-839b-fbfb3faa941e  
if loadfont /usr/share/grub/unicode.pf2 ; then  
set gfxmode=640x480  
insmod gfxterm  
insmod vbe  
if terminal\_output gfxterm ; then true ; else  
# For backward compatibility with versions of terminal.mod that don’t  
# understand terminal\_output  
terminal gfxterm  
fi  
fi  
insmod ext2  
set root=‘(hd0,5)’  
search --no-floppy --fs-uuid --set c8fefecf-dd65-40da-839b-fbfb3faa941e  
set locale\_dir=($root)/boot/grub/locale  
set lang=ko  
insmod gettext  
if [${recordfail} = 1]; then  
set timeout=-1  
else  
set timeout=10  
fi

### END /etc/grub.d/00\_header

### BEGIN /etc/grub.d/05\_debian\_theme

set menu\_color\_normal=white/black  
set menu\_color\_highlight=black/light-gray

### END /etc/grub.d/05\_debian\_theme

### BEGIN /etc/grub.d/10\_linux

menuentry ‘Ubuntu, 그리고 Linux 2.6.32-21-generic’ --class ubuntu --class gnu-linux --class gnu --class os {  
recordfail  
insmod ext2  
set root=‘(hd0,5)’  
search --no-floppy --fs-uuid --set c8fefecf-dd65-40da-839b-fbfb3faa941e  
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=c8fefecf-dd65-40da-839b-fbfb3faa941e ro quiet splash  
initrd /boot/initrd.img-2.6.32-21-generic  
}  
menuentry ‘Ubuntu, 그리고 Linux 2.6.32-21-generic (복구 모드)’ --class ubuntu --class gnu-linux --class gnu --class os {  
recordfail  
insmod ext2  
set root=‘(hd0,5)’  
search --no-floppy --fs-uuid --set c8fefecf-dd65-40da-839b-fbfb3faa941e  
echo ‘Linux 2.6.32-21-generic을 불러옵니다 …’  
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=c8fefecf-dd65-40da-839b-fbfb3faa941e ro single  
echo ‘가상 램디스크를 불러옵니다.’  
initrd /boot/initrd.img-2.6.32-21-generic  
}

### END /etc/grub.d/10\_linux

### BEGIN /etc/grub.d/20\_memtest86+

menuentry "Memory test (memtest86+)" {  
insmod ext2  
set root=‘(hd0,5)’  
search --no-floppy --fs-uuid --set c8fefecf-dd65-40da-839b-fbfb3faa941e  
linux16 /boot/memtest86+.bin  
}  
menuentry "Memory test (memtest86+, serial console 115200)" {  
insmod ext2  
set root=‘(hd0,5)’  
search --no-floppy --fs-uuid --set c8fefecf-dd65-40da-839b-fbfb3faa941e  
linux16 /boot/memtest86+.bin console=ttyS0,115200n8  
}

### END /etc/grub.d/20\_memtest86+

### BEGIN /etc/grub.d/30\_os-prober

menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {  
insmod ntfs  
set root=‘(hd0,0)’  
search --no-floppy --fs-uuid --set 307c147b7c143dd2  
drivemap -s (hd0) ${root}  
chainloader +1  
}

### END /etc/grub.d/30\_os-prober

### BEGIN /etc/grub.d/40\_custom

# This file provides an easy way to add custom menu entries. Simply type the

# menu entries you want to add after this comment. Be careful not to change

# the ‘exec tail’ line above.

### END /etc/grub.d/40\_custom

---

<div class="post-metadata">

**Author:** ![han9k](https://discourse.ubuntu-kr.org/letter_avatar_proxy/v4/letter/h/db5fbb/32.png) [@han9k](https://discourse.ubuntu-kr.org/u/han9k)\
**Post date:** [1월 7, 2011, 5:07오후 UTC](https://discourse.ubuntu-kr.org/t/topic/13316/2 "2011-01-07T17:07:57Z")

</div>

제가 이렇게 이해했습니다.

xp, 쿠분투 설치한 하드에서  
쿠분투를 삭제했더니 부팅이 안됩니다.  
그래서 우분투를 설치했더니 grub에 운영체제가 다 잡히길래 잘될줄 알았는데 xp로 안들어가집니다.

문제는 쿠분투 지웠을때 MBR이 고장난 상태에서 우분투를 설치하면서  
고장난 윈도 MBR에 우분투와 grub이 들어간 것입니다.

제 생각에는,  
XP) 일단 윈도 CD 넣고 MBR을 고치세요.  
예)  
fixmbr\Device\HardDisk0  
fixboot c:

관련 링크:  
[url:2ljql8qb]http://support.microsoft.com/kb/314058/ko[/url:2ljql8qb]  
[url:2ljql8qb]http://support.microsoft.com/kb/321626/ko[/url:2ljql8qb]

Vista/7)  
복구로 선택하시고 DOS창(Windows Command line)에서 다음과 같이 입력하세요.  
예)  
bootrec /FixMbr  
bootrec /FixBoot  
하시고 리붓하세요. 그럼 xp로 부팅이 될 것입니다.

관련 링크:  
[url:2ljql8qb]http://support.microsoft.com/kb/927392[/url:2ljql8qb]

우분투 LiveCD/USB를 넣고 grub를 c:에 설치하면 grub가 멀티부팅을 할 수 있게 해줍니다. ![:D]( "하하하")  
관련 링크:  
[url:2ljql8qb]http://www.ubuntu.or.kr/viewtopic.php?f=9&t=11833[/url:2ljql8qb]
