วิธีแก้ปัญหา Boot NetBSD ไม่ได้ เนื่องจากการปรับแต่งค่าเริ่มต้นผิดพลาด


การแก้ปัญหา Boot ไม่ได้ในลักษณะนี้ให้ทำการแก้ไขใน single user mode

การแก้ปัญหา Boot ไม่ได้ในลักษณะนี้ให้ทำการแก้ไขใน single user mode โดยมีวิธีการดังนี้

1. ระบุรูปแบบการ boot โดยกำหนด flag เป็น -s โดย ระบบ boot จะรอรับให้ผู้ใช้กำหนดรูปแบบการ boot ซึ่งในช่วงเวลานั้นผู้ใช้ต้องกดปุ่มใด (ยกเว้น Enter)  เพื่อเข้าสู่ prompt  แล้วพิมพ์คำว่า boot -s <Enter>

2. ให้พิมพ์คำสั่งตามรายการด้านล่างตามลำดับ

#fsck -p ; mount -va
- Check the filesystems with fsck(8), then make them available with mount(8).

#set -E
Enable command line editing.

#TERM=vt220 ; export TERM
Set and export the TERM variable, to permit editors such as vi(1) to work. Note: You may need to use a different terminal type from 'vt220', depending on the console type.

#sh /etc/rc.d/network start
Bring up the network. If you have any nfs mounted filesystems you may want to do this before the fsck and mount. If you have a system prior to NetBSD 1.5, the command to use is sh /etc/netstart.

หมายเหตุ  วิธีการนี้สามารถใช้ในการแก้ปัญหาเมื่อลืม password root ได้ด้วย โดยการใช้คำสั่ง passwd หลังคำสั่ง mount

 Ref: http://www.netbsd.org/Documentation/misc/#why-single-user

คำสำคัญ (Tags): #user#single#boot#netbsd
หมายเลขบันทึก: 44903เขียนเมื่อ 16 สิงหาคม 2006 11:30 น. ()แก้ไขเมื่อ 7 มิถุนายน 2012 13:17 น. ()สัญญาอนุญาต: จำนวนที่อ่านจำนวนที่อ่าน:


ความเห็น (0)

ไม่มีความเห็น

พบปัญหาการใช้งานกรุณาแจ้ง LINE ID @gotoknow
ClassStart
ระบบจัดการการเรียนการสอนผ่านอินเทอร์เน็ต
ทั้งเว็บทั้งแอปใช้งานฟรี
ClassStart Books
โครงการหนังสือจากคลาสสตาร์ท