Skip to content

Instantly share code, notes, and snippets.

@na0AaooQ
Last active August 29, 2015 14:13
Show Gist options
  • Save na0AaooQ/0dcbf680366225bc46cb to your computer and use it in GitHub Desktop.
Save na0AaooQ/0dcbf680366225bc46cb to your computer and use it in GitHub Desktop.
CentOS 4サーバの/(ルートパーティション)に対するfsck ref: http://qiita.com/na0AaooQ/items/e4c44a41e19bb65427e9
/: 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 passwrd for maintenance
(or type Control-D to continue):
Give root password for maintenance
(or type Control-D to continue): → rootのパスワードを入力します。
# dig www.example.com
# chkconfig --list
# ps awux | grep -v grep | sort
# df -Ph /
Filesystem サイズ 使用 残り 使用% マウント位置
/dev/cciss/c0d0p3 20G 9.4G 8.9G 52% /
#
# cat /etc/fstab
  (省略)
LABEL=/ / ext3 defaults 1 1
  (省略)
# mount
  (省略)
/dev/cciss/c0d0p3 on / type ext3 (rw)
  (省略)
# mount -o ro,remount /
# date > /tmp/write_test.txt
# fsck -y -t ext3 /dev/cciss/c0d0p3
 (省略)
Free inodes count wrong (XXXXXXX, counted=XXXXXXX)
Fix? yes
/: ***** FILE SYSTEM WAS MODIFIED *****
/: ***** REBOOT LINUX *****
(Repair filesystem) 26 # exit
(Repair filesystem) 26 # reboot
# ls -lrta /
# cat /etc/fstab
# df -Ph
# mount
# date >> /tmp/write_test.txt
# date >> /tmp/write_test.txt
# cat /tmp/write_test.txt
# rm /tmp/write_test.txt
# cat /var/log/messages
# dmesg
# ifconfig
# netstat -nr
# ping XX.XX.XX.XX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment