How to Repair a Corrupt MBR and boot into Linux

posted on 27 Nov 2008 23:20 by tonhor  in Linux

เป็นวิธีแก้ไข master boot record ไฟล์ที่มีปัญหา,ข้อมูลหาย

อาจจะเกิดจากกรณี ลง os 2 os ในเครื่องเดียวกัน ทำให้ mbr มีปัญหา แล้ว boot os ไม่ขึ้น

หรือทำการลบมันออกด้วยคำสั่ง fdisk /mbr ในกรณีที่ไวรัสติดอยู่ใน mbr

 

วิธีแก้ไขก็คือเราต้องมีแผ่น boot เพื่อบูตเข้า rescue mode


boot : linux rescue

#chroot /mnt/sysimage
#grub
grub> root (hd0,0)
grub> setup (hd0)
grub> quit
#exit 

 

ปล. ผมลองกับ CentOS นะครับ ซึ่งสำหรับ OS อื่นๆก็เหมือนๆกันครับ


แหล่งข้อมูลและรายละเอียดเพิ่มเติม

 

Comment



smilebig smileopen-mounthed smileconfused smilesad smileangry smiletonguequestionembarrassedsurprised smilewinkdouble winkcry

Tweet

Favourites