리눅스 재설치 후 grub 문제

teraman의 이미지

안녕하십니까
이제 리눅스를 공부해보려고 합니다.
그래서 처음에 xp에 추가로 우분투를 설치해보았습니다.
인터페이스가 한소프트가 더 좋을 것 같아서 바로 우분투 파티션을 지우고 그 위에 한소프트2005를 설치했습니다.
그랬더니 윈도우로는 부팅이 되지 않습니다.
grub이 잘못된 건가요?
아니면 윈도우의 boot.ini 파일을 만져줘야 하는건가요?
저의 현재 상황은 이렇습니다.

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

Disk /dev/hdb: 81.9 GB, 81964302336 bytes
16 heads, 63 sectors/track, 158816 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1       41613    20972826    7  HPFS/NTFS
/dev/hdb2           60404      158802    49592655    f  W95 Ext'd (LBA)
/dev/hdb3           41614       60403     9470160   83  Linux
/dev/hdb5           62412      158802    48580528+   b  W95 FAT32
/dev/hdb6           60404       62412     1012032   82  Linux swap

Partition table entries are not in disk order

-------------------------------------------------------------------------
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,2)
# kernel /boot/vmlinuz-version ro root=/dev/hdb3
# initrd /boot/initrd-version.img
#boot=/dev/hdb
default=1
timeout=10
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
title Haansoft Linux (2.6.9-71hs)
root (hd0,2)
kernel /boot/vmlinuz-2.6.9-71hs ro root=LABEL=/
initrd /boot/initrd-2.6.9-71hs.img
title WindowsXP
rootnoverify (hd0,0)
chainloader +1
-------------------------------------------------------------------------
익명 사용자의 이미지

제 생각으로는 255 head 문제 같습니다.

리눅스로 부팅한 후에

fdisk /dev/hda1
x
h
255
w

순서대로 입력하세요.

그리고 리부팅

그런데 다시 부팅하면 리눅스가 부팅이 안될 수 있습니다.

리눅스가 확장 파티션에 있는게 아니라 될 것도 같은데 잘 모르겠습니다.

익명 사용자의 이미지

잘 못 된게 있네요..

fdisk /dev/hda1

이 아니라

fdisk /dev/hda

입니다.

teraman의 이미지

Anonymous wrote:
잘 못 된게 있네요..

fdisk /dev/hda1

이 아니라

fdisk /dev/hda

입니다.

제 컴퓨터에 하드 디스크는 하나이고 현재 마스터 슬레이브입니다.
즉 hdb 이죠.
그런데도 위와 같이 해야 하는건가요?
리눅스도 부팅이 안될 수 있다 하시니 조금 걱정되네요

익명 사용자의 이미지

teraman wrote:
제 컴퓨터에 하드 디스크는 하나이고 현재 마스터 슬레이브입니다.
즉 hdb 이죠.
그런데도 위와 같이 해야 하는건가요?
리눅스도 부팅이 안될 수 있다 하시니 조금 걱정되네요

프라이머리의 슬레이브란 말씀이시군요.

hdb 맞구요.

음.... fidsk 진입 후에 m 을 누르시면 어떻게 해야할지 이해되실 겁니다.

익명 사용자의 이미지

mbr 이 두번째 디스크에 있으므로 /dev/hdb 에 저장되도록 해야 하는 것인데
아마도 /dev/hda 에 저장하도록 명령된 것 같습니다.

리눅스로 부팅하고 grub-install /dev/hdb 라고 명령을 주어 보세요.

그리고 hd0 은 /dev/hda1 을 말합니다. 그러므로 hd1,0, hd1,2 등으로
수정하여야 할 것이 아닌가 생각합니다.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.