การแก้ปัญหา 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
ไม่มีความเห็น