can not edit /etc/fstab

19/05/2008 at 8:00 pm (Linux/Unix) (, , , )

พอดี มี server อยู่ตัวนึงเป็น redhat enterprise 5 ( โหลดมาใช้ตั้งแต่ Redhat เปิดให้ download แรก ๆ นู่น) มัน boot ไม่ขึ้น

Checking filesystems

/:Resize inode not valid.

/:UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY

(i.e., without -a or -p options)

*** An error occurred during the file system check.

*** Dropping you to a shell; the system will reboot

*** When you leave the shell.

Give root password for maintenance

(or type Control-D to continue):

เนื่องจาก มันเช็ค file system แล้วผิดปกติ ประมาณ not clean อะไรประมาณนี้ ที่นี้เราจะแก้ไข /etc/fstab แต่มันเป็น read only ทำให้เราไม่สามารถแก้ไขได้ ถ้ามันขึ้นแบบนี้แล้วให้ใส่ password root 

จากนั้นเข้า single mode ด้วยคำสั่ง init 1

#mount -n -o remount /

แค่นี้ก็แก้ fstab แล้ว

** ไม่ได้ทำบ่อย ๆ ก็ลืมได้ ขอ blog ไว้หน่อย

ลิงค์อ้างถึง ให้ความเห็น