Last active
August 29, 2015 14:13
-
-
Save na0AaooQ/0dcbf680366225bc46cb to your computer and use it in GitHub Desktop.
CentOS 4サーバの/(ルートパーティション)に対するfsck ref: http://qiita.com/na0AaooQ/items/e4c44a41e19bb65427e9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/: 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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Give root password for maintenance | |
(or type Control-D to continue): → rootのパスワードを入力します。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dig www.example.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# chkconfig --list | |
# ps awux | grep -v grep | sort |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# date |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) | |
(省略) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mount -o ro,remount / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# date > /tmp/write_test.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fsck -y -t ext3 /dev/cciss/c0d0p3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(省略) | |
Free inodes count wrong (XXXXXXX, counted=XXXXXXX) | |
Fix? yes | |
/: ***** FILE SYSTEM WAS MODIFIED ***** | |
/: ***** REBOOT LINUX ***** | |
(Repair filesystem) 26 # exit | |
(Repair filesystem) 26 # reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cat /var/log/messages | |
# dmesg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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