วิธีกู้ GRUB หาย (Error Grub Missing)

Error GRUB  Missing !! (ผมเรียกมันว่า Grub หาย)

ตอนแรกก็ไม่รู้หรอกครับว่ามันคืออะไร !! ผมเริ่มต้นที่ ลง Linux กับ Windows ในเครื่องเดียวกัน และใช้ไปสักพัก Linux เกิดมีปัญหา ผมก็เลยต้องลบ Linux ออกโดยหลังจากที่ลบจะเกิดอาการ GRUB หาย !! ถ้าหากเจอเหตุการณ์นี้แสดงว่า เราลบผิดวิธีครับ...

 ทำความรู้จัก GRUB คร่าวๆ   
GRUB เป็น boot loader ตัวหนึ่งของ GNU Project  ซึ้งพัฒนาขึ้นเพื่อ เป็นตัวจัดการระบบบูท (Multiboot Specification) และมีหน้าที่เริ่มต้นโหลดเคอร์เนลลินุกซ์เข้าสู่หน่วยความจำของเครื่อง จะถูกใช้เมื่อตอนที่เราติดตั้ง OS บนเครื่อง 2 ตัวโดยจะคอยเลือกเคอร์เนลตามลำดับให้เรา
  
 ปัญหาที่มักพบ (ปัญหาของผมเอง) 
 ปัญหาที่ทำให้ GRUB เสียหายที่พบบ่อยๆ
 - ลง OS สองตัวขึ้นไปในเครื่องเดียว  ส่วนมากจะเป็นแบบ Linux and Windows ฟอร์แมต Windows หรือ  Linux ไป จะทำให้ GRUB ถูกลบไปด้วย ในกรณีของผมคือลบ Linux ออกไป แล้ว Boot เครื่องใหม่ ก็จะเปิดปัญหา Error ตามภาพเลยครับ !!




 มาดูวิธีแก้กันครับ 


1. Boot your computer to the Windows 7 DVD (or to a "Repair CD"). At this screen choose to install now. 
2. Select your language and click next.
3. Click the button for "Use recovery tools".
4. Then select "Command Prompt".
5. When open, the command prompt will look like this:
6. The command we will use, bootsect.exe, is in a folder (named boot) on the DVD.
We need to know what drive letter has been assigned the DVD drive to access the folder.
Code:
Type: diskpart
and press Enter
 
Type: select disk 0 (zero)
and press Enter
 
type: list volume
and press Enter
In this screen shot, the 7 DVD is letter: G
7. Use your DVD drive letter and

Code:
Type: exit
and press Enter
 
to close Diskpart
 
Type: G: (use the letter of your DVD drive)
and press Enter
 
Type: cd boot
and press Enter
 
Type: dir
and press Enter
to verify that bootcect.exe is there (if you really need to)
8. To restore the "bootsector code":

Code:
TYPE: bootsect /nt60 SYS /mbr
and press Enter
NOTE: If this method fails to restore the MBR, you can try the bootrec command as it is also a tool for repairing the MBR.
9. When completed successfully,

Code:
Type: exit
and press Enter
This will close the command prompt window.
10. Now select Shut Down or Restart
11. Then you can reboot your computer into Windows.

ขอบคุณแหล่งข้อมูลจาก : http://www.sevenforums.com/tutorials/20864-mbr-restore-windows-7-master-boot-record.html และ http://www.khonkaensoft.com

Share this

Related Posts