Force fsck on the next boot sequence
เมื่อต้องการให้ Linux ทำ file system check ทุก partition หลังจากที่ได้ reboot แล้ว สามารถทำได้โดยใช้คำสั่งดังนี้ (root user)
- สร้างไฟล์ /forcefsck ที่ root directory เพื่อบังคับให้ reboot หรือ เปิดเครื่องครั้งต่อไปทำการ full file system check
- สร้างไฟล์ /forcefsck ด้วยคำสั่ง
123[root@Ezylinux ~]# touch /forcefsck - reboot the system
123[root@Ezylinux ~]# reboot
- สร้างไฟล์ /forcefsck ด้วยคำสั่ง
- ใช้คำสั่ง shutdown ด้วย option -F เพื่อ force fsck
123[root@Ezylinux ~]# shutdown -rF now