This is G o o g l e's cache of http://www.debianclub.com/node/67 as retrieved on 15 Feb 2007 09:34:23 GMT.
G o o g l e's cache is the snapshot that we took of the page as we crawled the web.
The page may have changed since that time. Click here for the current page without highlighting.
This cached page may reference images which are no longer available. Click here for the cached text only.
To link to or bookmark this page, use the following url: http://www.google.com/search?hl=en&q=cache%3Ahttp%3A%2F%2Fwww.debianclub.com%2Fnode%2F67&btnG=Search


Google is neither affiliated with the authors of this page nor responsible for its content.

User login

Links

debianclub.com
debian.org
ubuntuclub.com
blognone.com

Syndicate

Syndicate content

update kernel แล้วติดอยู่ที่ Grub ทำไงดีครับ

เนื่อง จากได้ update kernel และเปลี่ยน code name เป็น etch แล้วทำให้ไม่สามารถเข้าใช้งาน Debian ได้โดย เวลาเริ่มต้นการทำงานจะติดอยู่ที่ Grub ครับ ขึ้น prompt
grub>
แล้วไม่ทำงานต่อ คาดว่า ไฟล์ที่ใช้ในการกำหนดค่าเริ่มต้นใน /boot/boot/grub/menu.lst จะหายไป มีวิธีแก้ไข อย่างไรบ้างครับ ขอบคุณครับ

ใช้แผ่นติดตั้ง

ต้องทราบโครงสร้างว่า ติดตั้งอะไรไว้ที่ไหนครับ
แต่แนวทางคร่าว ๆ คือบูตด้วยแผ่นติดตั้ง แล้วใช้คำสั่ง grub-install /dev/XXX

แต่ Grub

แต่ Grub ไม่ได้หายนะครับ เตยพิมพ์คำสั่งว่า
grub > kernel /boot/vmlinuz....... เหมือนกับที่อยู่ในเมนูแล้วมันก็สามารถใช้ได้ แต่ผมไม่รู้ว่า kernel ตัวนี้มันชื่ออะไรอะครับ แต่อย่างไรจะลองวิธีด้านบนดูก่อนนะครับ

ใช้คำสั่ง setup

ถ้าบูตได้ก็ง่ายหน่อย :)
สมมุติว่าติดตั้ง /boot ไว้ที่พาร์ติชั่นแรก (hd0,0)
ก็ใช้คำสั่ง
$ sudo grub

grub> root (hd0,0)
grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... yes
 Checking if "/grub/stage2" exists... yes
 Checking if "/grub/e2fs_stage1_5" exists... yes
 Running "embed /grub/e2fs_stage1_5 (hd0)"...  15 sectors are embedded.
succeeded
 Running "install /grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/grub/stage2 /grub/menu.lst"... succeeded
Done.
grub> quit

ตัวอย่างอาจไม่เหมือนเป๊ะนะครับ
เอามาจาก ThaiLinuxCafe - Tips ยามฉุกเฉิน

update-grub

ถ้า ขึ้นเมนู grub> อย่างที่ว่า ก็แสดงว่า grub ยังอยู่ที่ boot record อยู่ แต่ /boot/grub/menu.lst หายอย่างที่ว่าจริงๆ ก็ลองสร้างไฟลที่ว่าใหม่โดยสั่งแบบนี้นะครับ:

# update-grub

ได้แล้วคร

ได้แล้วครับขอบคุณมากครับ